OUTL and DIRL
Speaker337
Posts: 14
I am trying to set up a mobile platform that can be controlled from a DVR using PTZ codes. There are three boards. The first board takes codes from the DVR and condenses the info to a single byte and sends it out via radio. The second board will be used for all sensors on the mobile platform. Currently it is only handling the radio receiver. The third board handles the driving of the mobile platform. I am having a difficulty with the second board. When I try to use pins 0 - 7 for output it fails. As long as I use debugs to monitor what is happening, everything works flawlessly. When I try to use pins as output, the second board fails within a minute. By fail, I mean that it clears, and then doesn't show anything else. The program called remote_side has two lines near the bottom that are OUTL and DIRL. If I comment these two lines out it works great, but as soon as I make those two lines active, it fails. I guess I can use a serial connection between boards two and three rather than 8 lines in parallel. That is what I will try next, but I am still very curious about why those two lines of code cause it to fail. Any ideas?
Comments
DIRL sets the direction of the I/O pins. If the I/O pin is in input mode, it can't short circuit.