Hey
The target device is a 12F683
#include <p12F683.inc>
__config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _IESO_OFF & _FCMEN_OFF)
I am going through some tutorials and this is at the top of the program.
What's going on here? Am I turning things off or on? Are these defaults?
Also to set the internal oscillator to 8Mhz bit 4,5 and 6 of the OSCCON register need to be set to 1.
so why does this tutorial tell me to use 0x70 which isn't that 112? Wouldn't I use 0x6F? and put that into OSCCON?
Thankyou.
The target device is a 12F683
#include <p12F683.inc>
__config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _IESO_OFF & _FCMEN_OFF)
I am going through some tutorials and this is at the top of the program.
What's going on here? Am I turning things off or on? Are these defaults?
Also to set the internal oscillator to 8Mhz bit 4,5 and 6 of the OSCCON register need to be set to 1.
so why does this tutorial tell me to use 0x70 which isn't that 112? Wouldn't I use 0x6F? and put that into OSCCON?
Thankyou.