PDA

View Full Version : Please i need help for pic18f4520 ;; please help me



engoneman
- 25th August 2012, 12:43
I am new with microcontroller ; and i start using pic18f4520 and MPLAB program .
now ; i want to use the internal oscillator of the pic ; what should i do??
can any one help me with very simple program and valid for MPLAB and HI-TECH compiler .
let us say that this is the code :
#include <pic18.h>
void main ()
{
TRISD=0;
PORTD=255;
}
what i have to add to make the internal oscillator working ???
please help ??

Acetronics2
- 25th August 2012, 13:39
Hi, Engoneman


i want to use the internal oscillator of the pic ; what should i do??


The obvious answer is : READ the pic Datasheet, oscillator section - and learn how the oscillator is working ... :rolleyes:


can any one help me with very simple program and valid for MPLAB and HI-TECH compiler

May be you could find more help aboard the RIGHT forum aka Microchip/MPLAB or Hi-TECH Forum ...

Alain