PDA

View Full Version : 10 bit PWM 16F1824



dsicon
- 3rd April 2015, 19:04
Hi all
amazing how fast the rust grows when you put this stuff down for a little bit

i thought for sure there was a PBP high level command for PWM that would do 10 bit, but it seems not, just wanted to confirm that is true, 8 bit only ?

i guess i banged the registers when i did 10 bit but it was quite a while ago and i don't even know which of many projects

my chip for new project is 16F1824
(yes i saw the recent post about 16F1509)
any other tips, code snpis or pitfalls to watch for ?
i did a search for 10bit PWM but did not see much, maybe i did not do the search right
thanks

Acetronics2
- 4th April 2015, 14:24
Darrel wrote a 10 bits PWM code snippet ...


i did a search for 10bit PWM but did not see much, maybe i did not do the search right


may be yes ...

Alain

dsicon
- 4th April 2015, 17:39
wow, thanks a lot Alain
this exactly what i was hoping for
i got it to compile fine using PBP 3.0.7.4 and MPASM 5.49
i won't know if it works for about a week when the hardware is ready

as mentioned the chip is 16F1824, in the config section Darrel commented something about 18F only, should i be concerned about that ?
and if so is it a big deal to alter the code ?
i only need one channel of PWM (at least i think so, you know how these things grow though)

Acetronics2
- 4th April 2015, 22:07
the test program was tested (!) aboard a pic 18F ...

that's the one and only reason of those lines here.

Alain