Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC IDC header substitute/clone for PICkit 2 etc

Status
Not open for further replies.

AlGeorge

New Member
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?
 
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:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top