ATMega128

20140514 - Time Counter

Owen.K 2014. 5. 14. 13:47

14. 8bit Timer/Counter0 with PWM and Asynchronous operation


TIMSK 레지스터

Bit 1 – OCIE0: Timer/Counter0 Output Compare Match Interrupt Enable

- 비교해서 일치하면 인터럽트 발생.

Bit 0 – TOIE0: Timer/Counter0 Overflow Interrupt Enable

- 255를 넘어서면 인터럽트 발생.