| Electronic Components Datasheet Search |
|
16C6KA Datasheet(PDF) 73 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
16C6KA Datasheet(HTML) 73 Page - Renesas Technology Corp |
|
73 / 268 page ![]() M16C/6KA Group Rev.1.00 Jul 16, 2004 page 73 of 266 REJ03B0100-0100Z Item Specification Count source • External signal input to TAiIN pin (effective edge can be selected by software) • TB2 overflow, TAj overflow Count operation • Up count or down count can be selected by external signal or software • When the timer overflows or underflows, it reloads the reload register con tents and then continuing counting (Note) Divide ratio 1/ (FFFF16 - n + 1) for up count 1/ (n + 1) for down count n : Set value Count start condition Count start flag is set (= 1) Count stop condition Count start flag is reset (= 0) Interrupt request generation timing The timer overflows or underflows TAiIN pin function Programmable I/O port or count source input TAiOUT pin function Programmable I/O port, pulse output, or up/down count select input Read from timer Count value can be read out by reading timer Ai register Write to timer • When counting stopped When a value is written to timer Ai register, it is written to both reload register and counter • When counting in progress When a value is written to timer Ai register, it is written to only reload register (Transferred to counter at next reload time) Select function • Free-run count function Even when the timer overflows or underflows, the reload register content is not reloaded to it • Pulse output function Each time the timer overflows or underflows, the TAiOUT pin’s polarity is reversed Note: This does not apply when the free-run function is selected. (2) Event counter mode In this mode, the timer counts an external signal or an internal timer’s overflow. Timers A0 and A1 can count a single-phase external signal. Timers A2, A3, and A4 can count a single-phase and a two-phase external signals. Table.FB-2 lists timer specifications and Fig. FB-8 shows the timer Ai mode register in event count mode when counting a single-phase external signal. Table.FB-3 lists timer specifications and Fig. FB-8 shows the timer Ai mode register in event count mode when counting a two-phase external signals. Table.FB-2 Timer specifications in event counter mode (when not processing two-phase pulse signal) Fig.FB-8 Timer Ai mode register in event counter mode Timer Ai mode register Note 1: In event counter mode, the count source is selected by the event / trigger select bit (addresses 038216 and 038316). Note 2: The settings of the corresponding port register and port direction register are invalid. Note 3: Valid only when counting an external signal. Note 4: When an “L” signal is input to the TAiOUT pin, the downcount is activated. When “H”, the upcount is activated. Set the corresponding port direction register to “0”. Symbol Address When reset TAiMR(i = 0, 1) 039616, 039716 0016 W R b7 b6 b5 b4 b3 b2 b1 b0 Operation mode selection bits 0 1 : Event counter mode (Note 1) b1 b0 TMOD0 MR0 Pulse output function selection bit 0 : Pulse is not output (TAiOUT pin is a normal port pin) 1 : Pulse is output (Note 2) (TAiOUT pin is a pulse output pin) Count polarity selection bit (Note 3) MR2 MR1 MR3 0 (Must always be fixed to “0” in event counter mode) TCK0 Count operation type selection bit 01 0 0 : Counts external signal's falling edge 1 : Counts external signal's rising edge Up/down switching factor selection bit 0 : Up/down flag's content 1 : TAiOUT pin's input signal (Note 4) 0 : Reload type 1 : Free-run type Bit symbol Bit name Function RW TCK1 Invalid in event counter mode Can be “0” or “1” TMOD1 Timer A |
|
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 |