superbrew
Member
Hello, I am new to microcontrollers. I am using MikroC and the OshonSoftware simulator. I am trying to display some text on the LCD module of the simulator. I am able to get to work if I complile my code using a 16F877, but it does not work if I compile as a 16F88. This is what I am using as code:
void main(){
TRISB = 0x00;
LCD_INIT(&PORTB);
LCD_CMD(LCD_CLEAR);
LCD_OUT(1,1,"A");
}
I have the LCD display set using 2 x 16, PORTB as data, interface 4-bit high, RS line PORTB 2, E line PORTB 3, RW not used.
I would like to get it to work with 16F88, as that is what I have on hand. Thank you.
void main(){
TRISB = 0x00;
LCD_INIT(&PORTB);
LCD_CMD(LCD_CLEAR);
LCD_OUT(1,1,"A");
}
I have the LCD display set using 2 x 16, PORTB as data, interface 4-bit high, RS line PORTB 2, E line PORTB 3, RW not used.
I would like to get it to work with 16F88, as that is what I have on hand. Thank you.