Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:20 16 Sep 2025 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : PORT command in frimware 5.1+...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 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: Thailand
Posts: 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 Zealand
Posts: 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 Kingdom
Posts: 10397
Posted: 10:43pm 12 May 2016
Copy link to clipboard 
Print this post

  Quote  I seem to recall that earlier versions of MMBASIC did not allow more then two groups of numbers when setting the port.


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 Zealand
Posts: 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!
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025