setting configuration bits with pragma

Status
Not open for further replies.

tinto

Junior Member level 2
Joined
Mar 23, 2011
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Kerala, India
Activity points
1,413
I need to set the configuration bits in PIC16F877A using pragma directive. Following are the configurations I need to set:

oscillator: HS
code protection: OFF
data protection : OFF
power up timer: disabled
watchdog timer: disabled
brown out reset: enabled
low voltage programming: disabled
debug enable: OFF

I am using mikroC.
 

MikroC Pro does not allow the use of "pragma"

Configuration bits can only be set from the IDE project settings.

I do not know if MikroC (not pro) works the same, but I imagine that it does.

Many have asked for the ability to set config in code, but there is no sign that this will be implemented.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…