The 12F’s are pretty simple to use… You basically need to determine which pins will be Analog and which pins will be Digital within your application. Accordingly configure TRISIO, CMCON and ANSEL at the start of your program.
The only other thing to remember is to preserve your Calibration and Bandgap bits when programming. That’s all there is to it. For a sample 12F program go look in the “General” section of this forum and see “Sound Command with 12-bit MCU's.”
Personally, if you’re intending to play with comparators and PWM, then I’d look at the 16F628 which is more suitable, as the little 8-pin PIC’s don’t have any hardware PWM modules which make life so easy.
Melanie
Bookmarks