Page 1 of 1
LCD Port D 16F1939
Posted: Tue Jul 17, 2012 9:23 am
by Jan Lichtenbelt
I use just a test flowcode (LCD start, clear and string "TEST") to test the LCD on the EB006-30 board on port D. I use the 40 pins 16F1939 microcontroller. But the LCD does not show the text. Is there a reason that I cannot use the prot D?
kind regards
Jan Lichtenbelt
Re: LCD Port D 16F1939
Posted: Tue Jul 17, 2012 10:35 am
by Enamul
Hi,
I think you that this particular PIC has built-in capacitive sensor which has analog input CPS8-15 mapped in PORTD...which has to be disabled for normal digital I/O operation.
Jan Lichtenbelt wrote:I use just a test flowcode (LCD start, clear and string "TEST") to test the LCD on the EB006-30 board on port D. I use the 40 pins 16F1939 microcontroller. But the LCD does not show the text.
To do this add the following C code in the beginning of the program...
Hope this will help.
Enamul
Re: LCD Port D 16F1939
Posted: Tue Jul 17, 2012 12:00 pm
by Benj
Hi Jan,
Please can you confirm that this works to solve the problem and I will add the lines of code to the init section of the FCD file so this problem is automatically fixed in future revisions.
Re: LCD Port D 16F1939
Posted: Tue Jul 17, 2012 1:24 pm
by Jan Lichtenbelt
Hi Ben,
This extention of 2 lines C-code let work the LCD correctly on the D-Port of the 16F1939.
Kind regards
Jan Lichtenbelt
Re: LCD Port D 16F1939
Posted: Tue Jul 17, 2012 2:13 pm
by Enamul
Hi,
I was thinking it should work but as I don't have the IC with me..
I feel I should keep quite until your answer...Thanks Jan for the reply..
Enamul