Z80
Full Member level 1
Weird problem
I am having this very annoying problem.
I have a board with a PIC16F876A and everything works fine. Well, yesterday I mounted a LCD on it (manufacturer Jean, part ID 16201S). It is connected to PORTB and PORTA (it has 11 inputs). When I configure the appropriate pins from PORTA and PORTB as outputs, everything stops working. And everything means that the PIC seems to be dead. When I remove the lines that configure the ports from the source code, all is OK.
I have tested if the pins are short circuited and they aren't. The PIC is connected to the LCD module through 10 KOhms resistors. I am using 20MHz crystal.
I'm suspecting that the problem is (maybe?) a parasitic capacitance caused by one of the wires that connect the LCD and the PIC, it is passing near the crystal. I'm suspecting that 'cause the PIC resets when I close my hand to the crystal. Note that this wasn't happening before mounting the LCD!
I haven't been too careful with the ground circuit either, it has some loops (I am using a test board). Last, the main decopupling capacitors (470uF) may be too small for the power consumption of the LCD. I have used 100nF capacitors for each separate chip. By the way, there is an I2C memory on the board, and a low-pass active filter connected to the PWM output of the PIC.
Should putting bigger decoupling capacitors help? Or am I looking in the wrong place? Also, should I care for ground circuit loops? This hasn't caused me problems in digital circuitry untill now.
I have completely ran out of ideas, any help would be much appreciated. Thank you in advance.
I am having this very annoying problem.
I have a board with a PIC16F876A and everything works fine. Well, yesterday I mounted a LCD on it (manufacturer Jean, part ID 16201S). It is connected to PORTB and PORTA (it has 11 inputs). When I configure the appropriate pins from PORTA and PORTB as outputs, everything stops working. And everything means that the PIC seems to be dead. When I remove the lines that configure the ports from the source code, all is OK.
I have tested if the pins are short circuited and they aren't. The PIC is connected to the LCD module through 10 KOhms resistors. I am using 20MHz crystal.
I'm suspecting that the problem is (maybe?) a parasitic capacitance caused by one of the wires that connect the LCD and the PIC, it is passing near the crystal. I'm suspecting that 'cause the PIC resets when I close my hand to the crystal. Note that this wasn't happening before mounting the LCD!
I haven't been too careful with the ground circuit either, it has some loops (I am using a test board). Last, the main decopupling capacitors (470uF) may be too small for the power consumption of the LCD. I have used 100nF capacitors for each separate chip. By the way, there is an I2C memory on the board, and a low-pass active filter connected to the PWM output of the PIC.
Should putting bigger decoupling capacitors help? Or am I looking in the wrong place? Also, should I care for ground circuit loops? This hasn't caused me problems in digital circuitry untill now.
I have completely ran out of ideas, any help would be much appreciated. Thank you in advance.