BS2 pin13 not working
Imran
Posts: 20
Hi ,
BS2 pin 13 on the Professional Dev Board·does give an output, but it does accept inputs. Why is that.
Regards
·
BS2 pin 13 on the Professional Dev Board·does give an output, but it does accept inputs. Why is that.
Regards
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
The result of this is that you can set the pin as OUTPUT HIGH, OUTPUT LOW, or INPUT. When you set it to input, both transistors are turned 'off'. In the "INPUT" state, the pin has a 'high-impedance' to ground (like 1 to 10 MegOhm) -- which allows any device external to the PIC to set the pin to +5 or to ground without interference from the PIC chip.
Now, if, inadvertently, you tie a PIC I/O pin to ground through a low-impedance path (less than 220 ohms or so) and THEN make the PIC pin an OUTPUT HIGH, the driver transistor on that pic pin will basically destroy itself. It will act like a fuse. It will conduct as much current as it can, get hot, and melt. After that, you can command the BS2 to OUTPUT HIGH on that pin all you want -- there's no transistor there anymore to make the internal connection to Vdd.
This doesn't damage the input register, so you can still use that pin for input.
Now, what can you do next? Well, you can mark that BS2 as 'damaged, but useable'. Or you can return the BS2 to Parallax, and for a fee they'll send you a new one. And probably, when you're prototyping, you should put 220 ohm resistors in series with I/O pins to prevent this damage in the future.