PDA

View Full Version : COUNT and HPWM resources used



RussMartin
- 16th March 2008, 06:11
I see from the DS that the 12F683 uses timer 2 for PWM (the CCP module).

I assume, then, that the PBP statement HPWM is making use of this resource.

Does using the PBP statement COUNT conflict with statement HPWM in any fashion? (Put another way, what resources does COUNT use?)

I did try a search and looked at some other threads, but haven't seen anything that answers this question.

Thanks, everyone!

mackrackit
- 16th March 2008, 15:26
As far I as I know there is not a conflict. COUNT is only reading if the pin is high or low and checks this in a certain time period ( sure you know that ). Pure soft ware .

So you could use a COUNT input to trigger the HPWM routine.