Jump to content
Sign in to follow this  
madeinoz

Custom Wizard Template Error

Recommended Posts

I've just created my own template for the 16F873A based on a modified wizard template for the 16F877. I just removed the additional ports, however when i preview or try to generate the code I get an error "invalid combination of settings for ADC" Is there anywhere else I need to modify?

 

regards,

 

Stephen

 

include "../common/data.boost.wizard.lists"

Modules
{
"Target" $TARG
{
	"Configuration"
	"Target processor configuration word"
	{
		"Power Up Timer" $CONF_POWER_UP
		"Power Up Timer"
		ETYPE_SELECTION:"YesNo":0

		"Brown Out Reset" $CONF_BROWN_OUT_RESET
		"Brown Out Reset"
		ETYPE_SELECTION:"YesNo":0

		"Watchdog Timer" $CONF_WATCH_DOG
		"Watchdog Timer"
		ETYPE_SELECTION:"YesNo":0

		"Low Voltage Programming" $CONF_LOW_VOLT_PROG
		"Low Voltage Programming"
		ETYPE_SELECTION:"YesNo":1

		"Data Code Protect" $CONF_DATA_CODE_PROTECT
		"Data Code Protect"
		ETYPE_SELECTION:"YesNo":0

		"Debug (ICD)" $CONF_DEBUG
		"Debug (ICD)"
		ETYPE_SELECTION:"YesNo":0

		"Oscillator" $CONF_OSCILLATOR
		"Oscillator type"
		ETYPE_SELECTION:"Oscillator":1

		"Code Protection" $CONF_CODE_PROTECT
		"Code Protection"
		ETYPE_SELECTION:"YesNo":0
	}
}
"I/O Ports" $
{
	"Port A" $PORTA
	{
		"Port A pin configuration"
		"Port A pin configuration"
		{
			"RA0" $RA0_CONF
			"Pin number 0"
			ETYPE_SELECTION:"PinConfAD":0

			"RA1" $RA1_CONF
			"Pin number 1"
			ETYPE_SELECTION:"PinConfAD":0

			"RA2" $RA2_CONF
			"Pin number 2"
			ETYPE_SELECTION:"PinConfVRef-":0

			"RA3" $RA3_CONF
			"Pin number 3"
			ETYPE_SELECTION:"PinConfVRef+":0

			"RA4" $RA4_CONF
			"Pin number 4"
			ETYPE_SELECTION:"PinConf":0

			"RA5" $RA5_CONF
			"Pin number 5"
			ETYPE_SELECTION:"PinConfAD":0
		}

		#include "../common/data.boost.wizard.porta6.val"
	}
	"Port B" $PORTB
	{
		#include "../common/data.boost.wizard.portb.conf"
		#include "../common/data.boost.wizard.portb.val"

		"Port Change Interrupt"
		"Port Change Interrupt that is triggered by changing inputs on RB7:RB4 pins"
		{
			"Port Change Interrupt"  $RB_CHANGE_INTER
			"Port Change Interrupt that is triggered by changing inputs on RB7:RB4 pins. These pins need to be configured as inputs."
			ETYPE_SELECTION:"EnableDisable":0
		}

		"External Interrupt"
		"External Interrupt that is triggered by changing input on RB0 pin"
		{
			"External Interrupt" $RB_EXT_INTER
			"External Interrupt that is triggered by changing input on RB0 pin. This pin needs to be configured as input."
			ETYPE_SELECTION:"EnableDisable":0
		}
	}
	"Port C" $PORTC
	{
		#include "../common/data.boost.wizard.portc.conf"
		#include "../common/data.boost.wizard.portc.val"
	}

}
"Timers" $
{
	#include "../common/data.boost.wizard.timer0"
	#include "../common/data.boost.wizard.timer1"
	#include "../common/data.boost.wizard.timer2"
}
}

 

$CONFIG_WORD

$CLOCK

$TIMER0_HANDLER
$TIMER1_HANDLER
$TIMER2_HANDLER

void interrupt( void )
{
$RB_CHANGE_INTERRUPT
$RB_EXTERNAL_INTERRUPT
$TIMER0_INTERRUPT
$TIMER1_INTERRUPT
$TIMER2_INTERRUPT
}

void main( void )
{
$TRISA
$TRISB
$TRISC

$ADCON1

$PORTA
$PORTB
$PORTC

$TIMER0_CONFIG
$TIMER1_CONFIG
$TIMER2_CONFIG

$INTERRUPT_CONFIG

//Endless loop
while( 1 );
}

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...