| поискавой системы для электроныых деталей |
|
PIC17C752-08/CL датащи(PDF) 103 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC17C752-08/CL датащи(HTML) 103 Page - Microchip Technology |
|
103 / 328 page ![]() © 1998 Microchip Technology Inc. DS30289A-page 103 PIC17C7XX 13.1.2 TIMER1 AND TIMER2 IN 16-BIT MODE To select 16-bit mode, set the T16 bit. In this mode TMR2 and TMR1 are concatenated to form a 16-bit timer (TMR2:TMR1). The 16-bit timer increments until it matches the 16-bit period register (PR2:PR1). On the following timer clock, the timer value is reset to 0h, and the TMR1IF bit is set. When selecting the clock source for the 16-bit timer, the TMR1CS bit controls the entire 16-bit timer and TMR2CS is a “don’t care”, however ensure that TMR2ON is set (allows TMR2 to increment). When TMR1CS is clear, the timer increments once every instruction cycle (Fosc/4). When TMR1CS is set, the timer increments on every falling edge of the RB4/TCLK12 pin. For the 16-bit timer to increment, both TMR1ON and TMR2ON bits must be set (Table 13-2). TABLE 13-2: TURNING ON 16-BIT TIMER T16 TMR2ON TMR1ON Result 11 1 16-bit timer (TMR2:TMR1) ON 10 1 Only TMR1 increments 1x 0 16-bit timer OFF 01 1 Timers in 8-bit mode 13.1.2.1 EXTERNAL CLOCK INPUT FOR TMR2:TMR1 When TMR1CS is set, the 16-bit TMR2:TMR1 incre- ments on the falling edge of clock input TCLK12. The input on the RB4/TCLK12 pin is sampled and synchro- nized by the internal phase clocks twice every instruc- tion cycle. This causes a delay from the time a falling edge appears on RB4/TCLK12 to the time TMR2:TMR1 is actually incremented. For the external clock input timing requirements, see the Electrical Specification section. FIGURE 13-5: TMR2 AND TMR1 IN 16-BIT TIMER/COUNTER MODE RB4/TCLK12 Fosc/4 TMR1ON (TCON2<0>) TMR1CS (TCON1<0>) TMR1 x 8 PR1 x 8 Reset Equal Set Interrupt TMR1IF (PIR1<4>) 1 0 Comparator<8> Comparator x16 TMR2 x 8 PR2 x 8 MSB LSB |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |