EEVblog Electronics Community Forum
A Free & Open Forum For Electronics Enthusiasts & Professionals
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire forum
Google
Bing
Home
Help
Search
About us
Links
Login
Register
EEVblog Electronics Community Forum
»
General
»
General Technical Chat
»
Why are the commands in includes in MPASM suite, different to expected?
« previous
next »
Print
Search
Pages: [
1
]
Go Down
Author
Topic: Why are the commands in includes in MPASM suite, different to expected? (Read 2043 times)
0 Members and 1 Guest are viewing this topic.
iamwhoiam
Contributor
!
Posts: 37
Why are the commands in includes in MPASM suite, different to expected?
«
on:
June 03, 2012, 10:55:16 pm »
Hi folks
Just been following a tutorial, and instead of _DATA_CP_OFF, inside "P16F628A.INC" the directive:
Code:
[Select]
_DATA_CP_OFF
is changed to:
Code:
[Select]
DATA_CP_OFF
NO leading "_" underscore... :-S
Any ideas why?
TIA
Logged
Mechatrommer
Super Contributor
Posts: 11630
Country:
reassessing directives...
Re: Why are the commands in includes in MPASM suite, different to expected?
«
Reply #1 on:
June 04, 2012, 07:23:42 am »
Quote from: iamwhoiam on June 03, 2012, 10:55:16 pm
Any ideas why?
no idea! ask the "creator" (or from where you get the file). you edit either your file or the inc to make them compatible, then you good to go. but changing the later is not advisable.
Logged
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
oPossum
Super Contributor
Posts: 1415
Country:
Very dangerous - may attack at any time
Re: Why are the commands in includes in MPASM suite, different to expected?
«
Reply #2 on:
June 04, 2012, 12:36:03 pm »
The first is typically used with the __config directive for parts with one config word. (most 10F, 12F, & 16F)
The second is typically used with the config directive for parts with several config words (18F)
Logged
codeboy2k
Super Contributor
Posts: 1836
Country:
Re: Why are the commands in includes in MPASM suite, different to expected?
«
Reply #3 on:
June 04, 2012, 08:57:54 pm »
identifiers that
1) begin with a single underscore; or
2) contain a double underscore anywhere in the identifier
are reserved for the C or C++ implementation and should not be used by authors or library authors.
Chances are they wanted the MPASM libraries to be standards compliant.
Logged
Print
Search
Pages: [
1
]
Go Up
« previous
next »
Share me
Smf
EEVblog Electronics Community Forum
»
General
»
General Technical Chat
»
Why are the commands in includes in MPASM suite, different to expected?
There was an error while thanking
Thanking...
EEVblog Main Site
EEVblog on Youtube
EEVblog on Twitter
EEVblog on Facebook
EEVblog on Odysee