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] pic 16f1824 problem with internal oscillator

Status
Not open for further replies.
void main()
{
OSCCON=0x70; //setting oscillator to 8Mhz
ANSELA=0X00; //setting porta as digital
UART1_init(9600); // uart initialized with 9600
APFCON0=0X84; //tx and rx setup on porta
while(1)
{
uart1_write('*'); //writing * to terminal

}
}




this is the simple code i finally used
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top