Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] 16f628A simple code in c

Status
Not open for further replies.

Ajay_sho

Junior Member level 1
Joined
Oct 19, 2010
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,430
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
}
:roll:pls suggest where i m wrong.
rgds
ajay
 

could you please post your schematic so that i can help you.
 

i thing code is perfect,
 

problem has been solved actualy internal osc. is not working with this config, so i change just intrc_osc_oscout in place intosc_osc_noclkout.
thanks
ajay
 

hi all
i m in problem again first i want to know about config of uC , i m using mikroc for code and winpic for programming in mokroc their is config word and in winpic also having config word ,can you tell which one will store on my uC also i m unable to make portA as output can any one help me,can you have any code to make portA as output to drive my 2x16 lcd.
rgds
ajay
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top