27.12.2012 Views

Atmel AT89C51ID2 Data Sheet - Keil

Atmel AT89C51ID2 Data Sheet - Keil

Atmel AT89C51ID2 Data Sheet - Keil

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4289A–8051–09/03<br />

– FCLK CPU and FCLK PERIPH , for CKRL0xFF<br />

In X2 Mode:<br />

In X1 Mode:<br />

F CPU<br />

F CPU<br />

Timer 0: Clock Inputs Figure 3. Timer 0: Clock Inputs<br />

FCLK PERIPH :6<br />

T0 pin<br />

Sub Clock<br />

Gate<br />

INT0<br />

TR0<br />

0<br />

1<br />

SCLKT0<br />

OSCCON<br />

= FCLKPERIPH<br />

= FCLKPERIPH<br />

0<br />

1<br />

C/T<br />

TMOD<br />

F OSCA<br />

= ----------------------------------------------<br />

2 × ( 255 – CKRL)<br />

F OSCA<br />

= ----------------------------------------------<br />

4 × ( 255 – CKRL)<br />

Control<br />

Timer 0<br />

<strong>AT89C51ID2</strong><br />

Note: The SCLKT0 bit in OSCCON register allows to select Timer 0 Subsidiary clock.<br />

SCLKT0 = 0: Timer 0 uses the standard T0 pin as clock input (Standard mode)<br />

SCLKT0 = 1: Timer 0 uses the special Sub Clock as clock input, this feature can be use<br />

as periodic interrupt for time clock.<br />

21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!