| Electronic Components Datasheet Search |
|
ATPL00B Datasheet(PDF) 50 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATPL00B Datasheet(HTML) 50 Page - ATMEL Corporation |
|
50 / 152 page ![]() Atmel ATPL00B [datasheet] 43028A-ATPL - 9/12 50 „0‟: Timer operation mode. Input from internal clock system M(1:0): Operation modes “00”: Mode 0: 8048 13bit timer, TLi used as 5 bit preescaler “01”: Mode 1: 16 bit timer/counter composed by concatenated THi and TLi “10”: Mode 2: 8 bit with auto reload (TLi <= THi) timer/counter “11”: Mode 3: timer 1 stopped Timer 0 runs as two 8-bit independent timer/counters: TL0 is a timer/counter controlled by timer 0 control bits TH0 is a timer controlled by timer 1 control bits Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 B it 0 TCON TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 TF1: Timer 1 overflow flag, set by hardware overflow and cleared by software or by hardware when interrupt routine is vectored TR1: Timer 1 run control bit, when set turns on timer/counter 1 TF0: Timer 0 overflow flag, set by hardware overflow and cleared by software or by hardware when interrupt routine is vectored TR0: Timer 0 run control bit, when set turns on timer/counter 0 IE1: Interrupt 1 edge flag, set by hardware when an external interrupt edge is detected and cleared by software or by hardware when interrupt routine is vectored IT1: Interrupt 1 type control bit. “‟1‟/‟0‟” to specify “falling edge/low level” trigger for external interruption 1 IE0: Interrupt 0 edge flag, set by hardware when an external interrupt edge is detected and cleared by software or by hardware when interrupt routine is vectored IT0: Interrupt 0 type control bit. “‟1‟/‟0‟” to specify “falling edge/low level” trigger for external interruption 0 5.1.1 Timer Mode 0 The timer (0 or 1) into Mode 0 looks like a 13-bit timer: an 8-bit counter (all 8 bits of THx) with a divide-by-32 preescaler (the lower 5 bits of TLx), see Figure 5-1. As the count rolls over from all 1s to all 0s, it sets the Timer interrupt flag TFi. The counter input is enabled to the Timer when TRi=1 and either GATE=0 or INT1=1. When GATE=1 the Timer can be controlled by external input INTx, to facilitate pulse width measurements. TRx is a control bit in the Special Function Register TCON. Figure 5-1. Timer 0 (or Timer 1) in modes 0,1 CLK 1/(3 x (TPR(1:0) + 1)) TL0 TH0 TF0 13/16 bits timer 5/8 bits 8 bits „1‟ „0‟ T0 pin TR0 GATE 0 /INT0 pin C/T0 Interrupt Control Hardware |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |