You can't change config settings with @ DEVICE at runtime.
You can't change config settings with @ DEVICE at runtime.
I've never had to do it so it didn't occur to me that you couldn't change this during runtime; I could think of situations when you might want to switch between running PWM to different devices at run time. I had to go back and look:
"15.1 Configuration Bits
The configuration bits can be programmed (read as ‘0’), or left unprogrammed (read as ‘1’), to select various device configurations. These bits are mapped
in program memory locations 2007h and 2008h. The user will note that address 2007h is beyond the user program memory space which can be accessed only during programming."
I don't have an application for this, but I would have thought you could(switch between RB.0 and RB.3) at run-time. Hmmm... learn something new...
The Frequency it not my probl ok for this point ,but my probl is the switching betwen rb.0 and rb.3
thank you for help
Being you want to change pins why not use the software PWM.
Dave
Always wear safety glasses while programming.
Bookmarks