Question about using TX/RX pins as regular digital pins
hello,
know whether possible use pin 0 (rx) / pin 1 (tx) on atmega328p chipset (pro mini arduino board 16mhz / 5v) regular digital input ports @ same time.
problem following : since run out of available ports on arduino board, use port 0 , port 1 connect 2 push buttons.
issue these 2 ports used tx/rx serial ports usb link upload sketchs / print on console debugging.
when connect board pc update sketch , debug it, push buttons don't work port "seen" on.
imagine once sketch has been validated , don't need usb link longer, upload final sketch tx / rx ports input , push button work...
concern : if that, stuck afterwards when want use usb connection again? (tx not responding , impossible communicate chipset?)
thanks again support.
know whether possible use pin 0 (rx) / pin 1 (tx) on atmega328p chipset (pro mini arduino board 16mhz / 5v) regular digital input ports @ same time.
problem following : since run out of available ports on arduino board, use port 0 , port 1 connect 2 push buttons.
issue these 2 ports used tx/rx serial ports usb link upload sketchs / print on console debugging.
when connect board pc update sketch , debug it, push buttons don't work port "seen" on.
imagine once sketch has been validated , don't need usb link longer, upload final sketch tx / rx ports input , push button work...
concern : if that, stuck afterwards when want use usb connection again? (tx not responding , impossible communicate chipset?)
thanks again support.
you're misunderstanding here, i'm not sure you're unclear on.
you should able put push button on pins on uno no problem. use open button , have connect ground when pressed (ie, normal best practice push buttons). in sketch, don't serial.begin()
when buttons aren't pressed, it's wire, won't interfere upload, , on uno, there's series resistor on tx/rx lines (between '328p , serial adapter) can drive lines ground (by pushing button) , not harm serial adapter.
on '328p or other basic avr (the 32u4 on micro/leo/etc different), chip reset (reset pin capacitively coupled dtr pin of serial adapter) when serial connection opened, , bootloader runs after reset - bootloader run regardless of unholy things sketch (you've reset chip, , sketch hasn't done whatever awful things).
you should able put push button on pins on uno no problem. use open button , have connect ground when pressed (ie, normal best practice push buttons). in sketch, don't serial.begin()
when buttons aren't pressed, it's wire, won't interfere upload, , on uno, there's series resistor on tx/rx lines (between '328p , serial adapter) can drive lines ground (by pushing button) , not harm serial adapter.
on '328p or other basic avr (the 32u4 on micro/leo/etc different), chip reset (reset pin capacitively coupled dtr pin of serial adapter) when serial connection opened, , bootloader runs after reset - bootloader run regardless of unholy things sketch (you've reset chip, , sketch hasn't done whatever awful things).
Arduino Forum > Using Arduino > Microcontrollers > Question about using TX/RX pins as regular digital pins
arduino
Comments
Post a Comment