![]() |
Forum Index : Microcontroller and PC projects : Setting multiple pins simultaneously
![]() ![]() |
|||||
Author | Message | ||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7559 |
But on the RPxxxx you have the pad between the junction of the output buffer and the input buffer. You can read back what the output buffer is set to (but there's no point really). However, the pad can disable the pin so you aren't seeing it at all. :) You can *simulate* things like I2C on the RPxxxx. It's output is totem pole though, and the top device can't be disabled so there is no open drain output. True I2C is actually impossible. You have to force the pin to output low then switch IO mode between input (Hi-Z) and output (low). Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2147 |
@Nimue Nice project... retro to the max!!! |
||||
circuit Senior Member ![]() Joined: 10/01/2016 Location: United KingdomPosts: 270 |
Nimue, just in case you had not noticed, a very useful new command was introduced in the first Release Candidate (RC0), allowing direct editing of bits in an integer variable. This gives a very simple method of setting specific bits in a control integer for various interfaces including sending values to PORT(). Peter introduced this as a method for setting flags and subsequently withdrew it an alternative method of flag handling. It then became obvious that it had other applications including setting values for PORT() and also for sending binary strings to power logic shift registers (I use the TPIC6A596) and Peter was requested to reintroduce it, which he kindly did. Edited 2025-05-16 17:49 by circuit |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |