Sunteți pe pagina 1din 1

TCNTn- TIMER/COUNTER REGISTOR: Upon reset content of TCNTn =0, It counts up with each pulse.

Either load TCNTn or read. TOVn- timer overflow flag; set in case of overflow. TCCRn- TIMER/COUNTER control REGISTOR: setting mode of operation. OCRn- output compare resistor; compare OCRn & TCNTn; if equal then OCFn flag set. TCCR0 registor: FOC0 WGM00 COM01 COM00 WGM01 CS02 CS01 CS00

TIFR: TIMER/COUNTER INTERRUPT FLAG REGISTOR; OCF2 TOV2 ICF1 OCF1A OCF1B TOV1 OCF0 TOV0

S-ar putea să vă placă și