Jump to content
mityeltu

16F1519 Configuration Bits

Recommended Posts

#pragma DATA _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF
#pragma DATA _CONFIG2, _WRT_OFF & _LVP_OFF & _STVREN_OFF & _ULPBOR_OFF & _BORV_19 & _VCAPEN_OFF

I am trying to get the subject chip to work, but the BoostC compiler keeps complaining about the configuration buts I have.

 

This above is what I have (this crazy forum won't let me put the code anywhere but at the top of this.... why doesn't anything ever work right??????)

 

Any way, the error has to do with _VCAPEN_OFF parameter. It keeps complaining that this is an unknown identified and an invalid operand. I looked in the .h file for the 16f1519 and this item is listed for config2. I tried includeing PIC16F1519.h and all that did was throw a huge number of errors for having variables that already exist.

 

Can anyone explain what I have done wrong here?

 

Just so you know, there is NOTHING in the main program except

while(1)

{}

Share this post


Link to post
Share on other sites

Works for me (SB V7.30)

 

Just done a copy and paste and it compiles without error.

 

Maybe you have a sneaky character in there somewhere.

 

Cheers

 

Reynard

 

ps. Are you compiling for a PIC16LF1519 which doesn't have _VCAPEN ?

Edited by Reynard

Share this post


Link to post
Share on other sites

I'm an idiot.

 

Yes, I was trying to comile for the LF version.

 

Thak you. That fixed it. My father-in-law always said you have to be smarter than the piece of equipment you're working with.... that explains alot.

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...

×
×
  • Create New...