Jump to content
Sign in to follow this  
emte

Inconsistant Pragma Variable Names

Recommended Posts

In my recent issues with Timer2 in the 18Fxx2 i discovered a variance

in the namings for the same variables from chip to chip.

 

i do understand that there is more than one person who creates the

device register variable maps, but should these elements not be consistant?

 

ie:

18F452:

_OSCS_ON_H1 & _HS_OSC_H1

_BOR_OFF_2L

_STVR_ON_4L

 

18F4620:

_OSC_HS_H1 /* this one is not fully a duplicate as it combines two flags */

_BOREN_OFF_2L

_STVREN_ON_4L

 

This is more of an exposure of a minor detail that most people probably do

not run across, but i was supprised to see that these differences were there.

Share this post


Link to post
Share on other sites
In my recent issues with Timer2 in the 18Fxx2 i discovered a variance

in the namings for the same variables from chip to chip.

 

ie:

18F452:

_OSCS_ON_H1 & _HS_OSC_H1

_BOR_OFF_2L

_STVR_ON_4L

 

18F4620:

_OSC_HS_H1 /* this one is not fully a duplicate as it combines two flags */

_BOREN_OFF_2L

_STVREN_ON_4L

I don't see _OSC_HS_H1 defined at all for the PIC18F4620, so I really dont see the problem.

 

Regards

Dave

Share this post


Link to post
Share on other sites
I don't see _OSC_HS_H1 defined at all for the PIC18F4620, so I really dont see the problem.

 

Regards

Dave

 

Really? ... emte goes to check IDE and compiler versions ...

 

If it does persist, it means that for every device with pragma variants, one will

have to use another pragma block.

Just bulky and an annoyance, nothing critical though.

Share this post


Link to post
Share on other sites

emte,

If it does persist, it means that for every device with pragma variants, one will

have to use another pragma block.

That may be the way Microchip (in their wisdom) have done it.

 

Regards

Dave

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