| Electronic Components Datasheet Search |
|
C8051F331 Datasheet(PDF) 180 Page - Silicon Laboratories |
|
|
|||||||||||||||||||||||||||||
C8051F331 Datasheet(HTML) 180 Page - Silicon Laboratories |
|
180 / 216 page ![]() C8051F330/1/2/3/4/5 180 Rev. 1.5 The C/T0 bit (TMOD.2) selects the counter/timer's clock source. When C/T0 is set to logic 1, high-to-low transitions at the selected Timer 0 input pin (T0) increment the timer register (Refer to Section “14.1. Priority Crossbar Decoder” on page 127 for information on selecting and configuring external I/O pins). Clearing C/T selects the clock defined by the T0M bit (CKCON.3). When T0M is set, Timer 0 is clocked by the system clock. When T0M is cleared, Timer 0 is clocked by the source selected by the Clock Scale bits in CKCON (see SFR Definition 18.3). Setting the TR0 bit (TCON.4) enables the timer when either GATE0 (TMOD.3) is logic 0 or the input signal /INT0 is active as defined by bit IN0PL in register IT01CF (see SFR Definition 9.11). Setting GATE0 to ‘1’ allows the timer to be controlled by the external input signal /INT0 (see Section “9.3.5. Interrupt Register Descriptions” on page 91), facilitating pulse width measurements Setting TR0 does not force the timer to reset. The timer registers should be loaded with the desired initial value before the timer is enabled. TL1 and TH1 form the 13-bit register for Timer 1 in the same manner as described above for TL0 and TH0. Timer 1 is configured and controlled using the relevant TCON and TMOD bits just as with Timer 0. The input signal /INT1 is used with Timer 1; the /INT1 polarity is defined by bit IN1PL in register IT01CF (see SFR Definition 9.11). Figure 18.1. T0 Mode 0 Block Diagram 18.1.2. Mode 1: 16-bit Counter/Timer Mode 1 operation is the same as Mode 0, except that the counter/timer registers use all 16 bits. The counter/timers are enabled and configured in Mode 1 in the same manner as for Mode 0. TR0 GATE0 /INT0 Counter/Timer 0 X X Disabled 1 0 X Enabled 1 1 0 Disabled 111 Enabled Note: X = Don't Care TC LK TL0 (5 b its) TH 0 (8 b its ) TF 0 TR 0 TR 1 TF 1 IE 1 IT 1 IE 0 IT 0 Interrupt TR 0 0 1 0 1 SYS C L K P re -sc aled C lock CK CO N T 3 M H T 3 M L S C A 0 S C A 1 T 0 M T 2 M H T 2 M L T 1 M TM O D T 1 M 1 T 1 M 0 C / T 1 G A T E 1 G A T E 0 C / T 0 T 0 M 1 T 0 M 0 GA T E 0 /IN T 0 T0 C rossbar IT 0 1 C F I N 1 S L 1 I N 1 S L 0 I N 1 S L 2 I N 1 P L I N 0 P L I N 0 S L 2 I N 0 S L 1 I N 0 S L 0 IN 0 P L XO R |
|
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 |