PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Oct 25, 2010 9:55 pm |
|
|
| Quote: |
The data sheet talks about the option register but does not give the address.
|
Use the set_options() function for this. The code for it is in this file:
| Quote: | | c:\program files\picc\examples\ex_macro.c |
Put the set_options() code above main(), and then call the function
in main() with your desired value (use a constant). Look at the PIC data
sheet in the section on the OPTION register to see what bits to set or
clear in the parameter for set_options() to get your desired results. |
|