P
Pete Verdon
Hi,
I'm currently designing a device based around a PIC microcontroller.
However, in getting to this point I have rather leapfrogged over more
basic electronics - I'm a software developer by trade. Any general
advice people care to give is welcome, but my specific question today is
whether I need to include resistors in digital input lines. That is, can
a pin which is configured on the chip as a digital input be connected
directly to a push-to-make button and thence to the power rail, or
should I include a resistor in series to limit the current that can
flow? (I'm aware that I will also need debounce, but intend to implement
this in firmware since the PIC is not working very hard).
The IC, if it matters, is Microchip's PIC16F914:
http://www.microchip.com/stellent/groups/picmicro_sg/documents/devicedoc/en020956.pdf
Thanks,
Pete
I'm currently designing a device based around a PIC microcontroller.
However, in getting to this point I have rather leapfrogged over more
basic electronics - I'm a software developer by trade. Any general
advice people care to give is welcome, but my specific question today is
whether I need to include resistors in digital input lines. That is, can
a pin which is configured on the chip as a digital input be connected
directly to a push-to-make button and thence to the power rail, or
should I include a resistor in series to limit the current that can
flow? (I'm aware that I will also need debounce, but intend to implement
this in firmware since the PIC is not working very hard).
The IC, if it matters, is Microchip's PIC16F914:
http://www.microchip.com/stellent/groups/picmicro_sg/documents/devicedoc/en020956.pdf
Thanks,
Pete