A AlGeorge New Member Dec 18, 2009 #1 Hi I wish to debug PIC12F683/PIC10F206/PIC16f684, which require a header part ICD Header, AC162059 etc which are quite expensive. Does anyone have any information for clone or alternatives which enable debugging the various chips that need header connectors?
Hi I wish to debug PIC12F683/PIC10F206/PIC16f684, which require a header part ICD Header, AC162059 etc which are quite expensive. Does anyone have any information for clone or alternatives which enable debugging the various chips that need header connectors?
P Pommie Well-Known Member Most Helpful Member Dec 18, 2009 #2 I normally develop the code on a bigger chip like the 16F88 and then port it to the smaller chip. You can do things like, Code: #ifdef __16F88 #include <p16f88.inc> __config _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_ON & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_IO __config _CONFIG2, _IESO_OFF & _FCMEN_OFF #endif #ifdef __12F683 #include <p12F683.inc> __config _FCMEN_ON & _IESO_OFF & _CP_OFF & _CPD_OFF & _BOD_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT #endif and further on on the code, Code: #ifdef __16F88 movlw B'01110000' ;select 8MHz clock movwf OSCCON clrf ANSEL ;no ADCs #endif So that you only have to select the device and the assembler will assemble the right code. Mike. Last edited: Dec 18, 2009
I normally develop the code on a bigger chip like the 16F88 and then port it to the smaller chip. You can do things like, Code: #ifdef __16F88 #include <p16f88.inc> __config _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_ON & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_IO __config _CONFIG2, _IESO_OFF & _FCMEN_OFF #endif #ifdef __12F683 #include <p12F683.inc> __config _FCMEN_ON & _IESO_OFF & _CP_OFF & _CPD_OFF & _BOD_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT #endif and further on on the code, Code: #ifdef __16F88 movlw B'01110000' ;select 8MHz clock movwf OSCCON clrf ANSEL ;no ADCs #endif So that you only have to select the device and the assembler will assemble the right code. Mike.