PDA

View Full Version : 16F777 fuse problem - BOREN_1



AndrewC
- 20th November 2008, 20:35
Just started using a 16F777, mainly because I want to use the three hardware PWM modules.
Tried to write a BLINKY
Used a couple of lines of fuse settings


;Program Configuration Register 1
@ __CONFIG _CONFIG1, _CP_OFF & _CCP2_RC1 & _DEBUG_OFF & _VBOR_2_0 & BOREN_0 & _MCLR_OFF & _PWRTE_OFF & _WDT_OFF & _INTRC_IO
;Program Configuration Register 2
@ __CONFIG _CONFIG2, _BORSEN_1 & _IESO_OFF & _FCMEN_OFF


These are basically used straight from the MPASM P16F777.inc file

When I compile I get a

Symbol not previously defined (BOREN_0)

Any clues as to what I'm doing wrong ? BOREN_0 is definitely in the list of Config byte 1 options.

I seem to have a love/hate relationship with fuses - we get along fine for a while and then they bite me in the arse :(

TIA, Andrew

mister_e
- 20th November 2008, 20:39
try _BOREN_0 ;)

AndrewC
- 20th November 2008, 20:48
... another "duh", Ctrl C Ctrl V should come with a health warning :(

Still, would you believe I've spent the last 4 weeks debugging a $6M system which was working backwards, because our manufacturing had swapped two gas lines. Then I come home and do this ....

thanks :)