Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.
 

hexreader

Advanced Member level 2
Joined
Apr 7, 2011
Messages
537
Helped
194
Reputation
392
Reaction score
196
Trophy points
1,323
Location
England
Activity points
4,763
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top