it's a bit more than if pin is high... IF the according pin is at the rising edge of the signal... this ensure the right timing. Use interrupt source INT0, INT1 or else you can have on the rising edge... will be really easy now. The only thing you have to care about is the timing and latency in the other routines to get interrupt as quick as possible.
For the HPWM frequency and duty cycle, try
HPWM 1,64,3600 ' supposed to send HPWM 3.6KHZ at 25% duty
i don't know how accurate it will be. In my purpose i always set all the register myself. In your datasheet they tell you how to calculate everything.
Last edited by mister_e; - 22nd February 2005 at 19:29.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks