hi every body..
as a newbies, i need help n some advise from anyone who willing to help me..
im doing a temperature measurement project.. i try to display the result on three type of display which is a row of ten leds display, lcd and by pc.. the leds works just find but my lcd keep display black boxes ..im using pic 16f877 and 16X2 lcd..
im using a microcode studio pic basic pro..
ive put some value of LCD_INITMS = 500..but unlucky for me..the screen now display only one row of black box..ive try to change the value of screen contrast..still..either wont display anything or black box..beside..i also ve try a fix value of contrast by either conect it directly to the ground or to the vdd..still ..the same result..or..is that anything wrong with my code?any suggestion for better code?n one more thing..ive a doubt on DEFINE LCD_DBIT..if im using all portD for the data line which is 8bits use in total..is it right by wrinting DEFINE LCD_DBIT 0?
hi sixty,
For the contrast, you require a 10K0 variable resistor [Pot], connect the one end of the resistor to +5V and the other end to 0V, the wiper goes to VO, which is pin 3 on my version on the LCD. Adjust the Pot to that you can just see the LCD pixel blocks.
I have a Proton Lite[ demo version] I'll give at go, let you know.
My project board is wired for PORTB as 8 data and PORTE as control, so I'll need to reconfigure.
hi sixty,
Run into a problem, the Micro compiler 'assembler' listing is not directly compatible with my MPLAB assembler.
I use the MPLAB programmer function to program my PIC's.
The attached reduced version of your source code, runs OK on my OS PIC Sim.
hi sixty,
Run into a problem, the Micro compiler 'assembler' listing is not directly compatible with my MPLAB assembler.
I use the MPLAB programmer function to program my PIC's.
The attached reduced version of your source code, runs OK on my OS PIC Sim.
hi eric..
thanks for giving a shot..ive fit the 10k pot..but..unlucky for me it still display black box...now i realy screwed..even your attached code did display the same thing..black box..looking at the previous tread send by others..it make me think, is that possibly coz by using the pot d as the data line?
There are various types of 4 line displays, some are simply a pair of two line displays, on alternate lines, and you select which display to use. It sounds like you're only accessing one of the displays? - you need to study the datasheet for your particular display.