New Haven LCD NHD-C0220AZ-FSW-FTW with CY8C3866LTI-030 | Cypress Semiconductor
New Haven LCD NHD-C0220AZ-FSW-FTW with CY8C3866LTI-030
I wanted to share an issue I had when trying to communicate with a New Haven LCD.
It is a 2x20 character LCD with 4-bit data interface.
I dragged and dropped a Char_LCD component to my design and compiled to generate the LCD.h and LCD.c (the name of my component).
the issue I had was the inhability to print a string on either the first or second line if it was longer than 7 or 8 characters.
I performed several tests and analyze the code to figure out that there's a DO-WHILE in the function LCD_IsReady().
So far, this function waits for the bit 4 is not 0. I commented the DO and the WHILE but I let the code between the brackets uncommented.
Now, everything is working fine. I posted the code below if it can help anyone.