If you are are using MPSAM and you have the correct chip selected in MCS then try
and then add then lineCode:@ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_ON
See if that worksCode:DEFINE OSC 20
If you are are using MPSAM and you have the correct chip selected in MCS then try
and then add then lineCode:@ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_ON
See if that worksCode:DEFINE OSC 20
is it not compiling correctly or is it that portb.2 isn't toggling in your circuit?
if it's that it's not working in your circuit, it could be a couple of things; no pull-up resistor on MCLR, oscillator not correct or not functioning correctly (capacitors), RB.2 not set to digital or not set to an output
Cheers
Rob
Bookmarks