Hi,
I have a 2x16 LCD and a PIC16f690.
I just cant make them work together. Is that possible, that this PIC is not able to do this?
I connect the pins like in the image but i used the internal oscillator.
And here is an example code. Its simple but is should work, but there is nothing on the display. I also used a resistor to set the contrast.
Any help is much appreciated
I have a 2x16 LCD and a PIC16f690.
I just cant make them work together. Is that possible, that this PIC is not able to do this?
I connect the pins like in the image but i used the internal oscillator.
And here is an example code. Its simple but is should work, but there is nothing on the display. I also used a resistor to set the contrast.
CSS:
#include <TestLCD.h>
#fuses nomclr
#include <LCD.C>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define LCD_ENABLE_PIN PIN_C2
#define LCD_RS_PIN PIN_C0
#define LCD_RW_PIN PIN_C1
#define LCD_DATA4 PIN_C3
#define LCD_DATA5 PIN_C4
#define LCD_DATA6 PIN_C5
#define LCD_DATA7 PIN_C6
#include <lcd.c>
void main()
{
lcd_init();
lcd_init();
delay_ms(1000);
lcd_putc("\fReady...\n");
while(TRUE)
{
lcd_putc('\f');
lcd_gotoxy(3, 1);
printf(lcd_putc, "Temperature:");
delay_ms(1000);
}
}