gauauu Posted March 28, 2018 Share Posted March 28, 2018 In a recent status update discussion, @CPUWIZ mentioned that you can use all the controller pins (other than +v and gnd) as output. I've used the SWCHA pins as output using SWACNT, but I haven't seen documentation explaining how to use INPT0-5 as output. Was I misunderstanding what he said, or is there some way to accomplish this? Quote Link to comment Share on other sites More sharing options...
CPUWIZ Posted March 28, 2018 Share Posted March 28, 2018 You can flip any of the pins and just write to them. The inputs are not affected, when you write. I use this for my MCP devkit and so does Eckhardt for his devkit / dumper. 1 Quote Link to comment Share on other sites More sharing options...
CPUWIZ Posted March 28, 2018 Share Posted March 28, 2018 Just look at devos0.2 source for what I am talking about, the 7800 joystick ports are connected the same way. Quote Link to comment Share on other sites More sharing options...
gauauu Posted March 28, 2018 Author Share Posted March 28, 2018 Huh, so you can just write to them directly, and it works as output? I'll be jiggered. Just look at devos0.2 source for what I am talking about, the 7800 joystick ports are connected the same way. My google-fu is failing me. Where can I find the source you speak of? Thanks! Quote Link to comment Share on other sites More sharing options...
CPUWIZ Posted March 28, 2018 Share Posted March 28, 2018 https://web.archive.org/web/20161019151621/http://home.arcor.de/estolberg/tools/index.html Quote Link to comment Share on other sites More sharing options...
alex_79 Posted March 28, 2018 Share Posted March 28, 2018 Only pins connected to the RIOT are bidirectional (pins 1-4 on each port), while the TIA ones (pins 5,6 and 9) are inputs only.Actually you can use the TIA function to discharge the paddle lines (pins 5 and 9 on each port) as another (sort of) output.There are some restrictions, though:- you need pullup resistors on the paddle lines or they'll stay low after the caps are discharged.- charge and discharge of the capacitors will take some time (which depends on the value of the pullup resitors)- You can only charge/discharge all 4 paddle lines at once. 1 Quote Link to comment Share on other sites More sharing options...
gauauu Posted March 29, 2018 Author Share Posted March 29, 2018 Ugh, that sounds complicated. Thanks for the info. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.