11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Library Functions__CONFIGSynopsis#include __CONFIG(n, data)DescriptionThis macro is used to program the configuration fuses that set the device into various modes ofoperation.The macro accepts a number corresponding to the configuration register it is to program, thenthe value it is to update it with.Macros have been defined to give a more readble name to the configuration register, also maskshave been created to describe each programmable attribute available on each device. These attributemasks can be found tabulated in this manual in the Features and Runtime Environment section.Multiple attributes can be selected by ANDing them together.Example#include __CONFIG(FOSC, XTPLL4)__CONFIG(FWDT, WDTDIS)__CONFIG(FBORPOR, MCLREN & BORDIS)voidmain (void){}116

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!