Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9641
Posted: 09:02pm 12 May 2016
Copy link to clipboard
Print this post
Page 65 of the standard 5.1 manual mentions under the PORT command that you can specify additional groups of pins to make up the port. This was always supported, but can you now specify more then TWO groups of pins?
Example: PORT (47,4,52,2,58,1) = %B1111111
The example assumes a 100-pin MM+ device.
Yes?
No?
Smoke makes things work. When the smoke gets out, it stops!
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209
Posted: 10:03pm 12 May 2016
Copy link to clipboard
Print this post
I used
PORT(15,3,21,4,26,1)
before so it should be possible.
Microblocks. Build with logic.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9641
Posted: 10:32pm 12 May 2016
Copy link to clipboard
Print this post
Cool, thanks.
I don't have a 100-pin device handy to test this on, but I will hook up some LED's and a 64-pin chip and run a couple of tests to be sure.
I seem to recall that earlier versions of MMBASIC did not allow more then two groups of numbers when setting the port.Smoke makes things work. When the smoke gets out, it stops!
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10397
Posted: 10:43pm 12 May 2016
Copy link to clipboard
Print this post
Possibly the case but I've certainly used
PORT(3,1,2,1,38,1,37,1,36,1,27,1,26,1,25,1) in V5.0
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9641
Posted: 10:46pm 12 May 2016
Copy link to clipboard
Print this post
WOW!
I need not worry then. Smoke makes things work. When the smoke gets out, it stops!