Pic With Bcd Switch And 2×16 Lcd


Posted in Consumer Electronics by admin - Feb 9, 2010

PIC16F887 Microcontroller and 2×16 LCD. The MCU reads a 9 state hex thumbwheel switch. and presents the result as an integer on the LCD. For some reason it reads the right value only intermittent a. . .


Tags: , ,
Feb
2

2 Responses to “Pic With Bcd Switch And 2×16 Lcd”

  1. quietsounds says:

    Yes! I asked a question about this problem on a forum, and they gave me the same solution. As I am using the pins in IN-LOW mode, i mounted pull-up resistors to VDD +5V and of course it worked right away! Thanks for the tip! No more “loose ends” for me in the future…:-)

  2. yeshe66 says:

    You have forgotten to mount pull-down resistors. One resistor at each input-pin down to GND will do it! choose something between 10kΩ up to 100kΩ and it will fix your problem.

Leave a Reply