I have the dev.board
https://download.mikroe.com/documents/s ... l-v101.pdf
However I cannot even to get any simple blink working, struggling to set oscillator frequency. The board just get very hot and not working.
Can you please provide any blink example for this board? How to set up correctly configuration bits for the oscillator?
I need frequency 80MHz, I use manual from here:
http://ww1.microchip.com/downloads/en/D ... 01250B.pdf
the settings from "Edit Project" are also not help and not change anything.
Code: Select all
program testme
' Declarations section
main:
'FNOSC0_bit = 1
'FNOSC1_bit = 1
'FNOSC2_bit = 0
'
'POSCMOD0_bit = 0 ' EC
'POSCMOD1_bit = 0
'
'FPLLIDIV0_bit = 1 ' div by 6
'FPLLIDIV1_bit = 0
'FPLLIDIV2_bit = 1
'
'FPLLRNG0_bit = 0 ' bypass
'FPLLRNG1_bit = 0
'FPLLRNG2_bit = 0
'
'FPLLMULT0_bit = 1 ' x40
'FPLLMULT1_bit = 1
'FPLLMULT2_bit = 1
'FPLLMULT3_bit = 0
'FPLLMULT4_bit = 0
'FPLLMULT5_bit = 1
'FPLLMULT6_bit = 0
'
'FPLLIDIV0_bit = 0 ' div by 2
'FPLLIDIV1_bit = 0
'FPLLIDIV2_bit = 0
ANSELE = 0
TRISE = 0
ANSELB = 0
TRISB = 0
while (1)
LATE = 0
LATB = 0
delay_ms(100)
LATE = 0xFFFFFFFF
LATB = 0xFFFFFFFF
delay_ms(100)
wend
end.