- Use the internal RC oscillator to provide Fosc = 64MHz
- Turn on pin RC0 on PORTC
- Wait 500ms
- Turn off pin RC0
- Wait another 500ms.
This is my code:
Code: Select all
void main() {
PORTC = 0x00;
LATC = 0x00;
TRISC.RC0 = 0;
while(1){
LATC.B0 = 1;
Delay_ms(500);
LATC.B0 = 0;
Delay_ms(500);
}
}
MCU Clock Frequency: 64MHz
VREG Sleep: Disabled
LF-INTOSC Low Power: High Power
SOSC Power Selection and Mode: High Power
Extended Instruction Set: Enabled
Oscillator: Internal RC Oscillator
PLL x4: Enabled
FSCM: Disabled
IESO: Disabled
PUT: Enabled
BOR: Enabled in Hardware, SBOREN disabled
BOR Voltage: 1.8V
BOR Power Level: ZPBORMV instead of BORMV is selected
WDT: WDT disabled in hardware; SWDTEN bit disabled
WDT Postscaler: 1:1048576
ECAN Mux: TX and RX on RB2 and RB3
MSSP Address Masking: 7 bit
MCLR: Enabled
Stack Overflow Reset: Disabled
Boot Block Size: 2K
Background Debug: Disabled
Circuit schematic: https://prnt.sc/oE1e9MuxkXpZ