flickertail Posted November 20, 2021 Share Posted November 20, 2021 I am trying to figure out out to drop Pin 1 of each controller port to 0V by setting the pin to output. This is my understanding of how it's done: lda 0 sta SWCHA lda #%00010001 sta SWACNT At this point the pins should have 0V. Then I want to return it to 5V. It's my understanding that I can do this by: lda #%00000000 sta SWACNT Is this correct or do I not understanding how I/O works? I'm basically trying to control some transistors in an external device connected to the control ports. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.