And if using Charles' method.
Be sure to download mister_e's PicMultiCalc.
http://www.mister-e.org/pages/utilitiespag.html
<br>
DT
Hello Everybody,
First of all, thank you for all the great responses. I now have PWM working great on all 5 channels by addressing the registers directly, as suggested by Charles. As an added bonus, the PWM resolution is 10bit.
As Darrel said, it is probably a bit "advanced" for me to start modifying system/library files at this stage.
The 18F6520 also has 12 analog inputs. Are there any "gotchas" or limits on the number of channels when using the ADCIN command?
Andy
Check that same file I listed above pbppic18.lib
I'm not at the house so I can't check it myself.
Search thru the file for ADCIN. Even though you're not comfortable modifying the file, you might be able to get some clues as to how many channels ADCIN will handle. The PBP manual isn't specific enough.
Bookmarks