Ajay_sho
Junior Member level 1
dear all
i m start using pic 16f628a ,my simple code for dispaly mikroelectronika is as below, i have set config cp_off,pwrte_on,wdt_off,lvp_off,intosc_osc_noclkout,hs_osc.
char *text = "mikroElektronika";
void main() {
TRISB = 0; // PORTB is output
Lcd_Init(&PORTB); // Initialize LCD connected to PORTB
Lcd_Cmd(Lcd_CLEAR); // Clear display
Lcd_Cmd(Lcd_CURSOR_OFF); // Turn cursor off
Lcd_Out(1, 1, text); // Print text to LCD, 2nd row, 1st column
}
:rollls suggest where i m wrong.
rgds
ajay
i m start using pic 16f628a ,my simple code for dispaly mikroelectronika is as below, i have set config cp_off,pwrte_on,wdt_off,lvp_off,intosc_osc_noclkout,hs_osc.
char *text = "mikroElektronika";
void main() {
TRISB = 0; // PORTB is output
Lcd_Init(&PORTB); // Initialize LCD connected to PORTB
Lcd_Cmd(Lcd_CLEAR); // Clear display
Lcd_Cmd(Lcd_CURSOR_OFF); // Turn cursor off
Lcd_Out(1, 1, text); // Print text to LCD, 2nd row, 1st column
}
:rollls suggest where i m wrong.
rgds
ajay