Atmel 161 interupts

comp.arch.embedded Atmel 161 interupts

With Atmel's AVR (specifically the 161), is there a way to sync an "sbi PORTC, BIT0" instruction within an interupt handler to the signal that generated that interupt? More specifically, this is the timer2 interupt handler generated by timer2 in PWM mode. The difficulty seems to be caused by using the master clock divided by 8 for the PWM's clock; reading the counter itself doesn't provide the needed resolution.

Hul

- for email, place "keep" in the subject line to clear email filtering -

--
- for email, put the word "keep" in subject line -
Reply to
Hul Tytus
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.