EasyManua.ls Logo

Sharp LH79524 - Page 451

Sharp LH79524
555 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Timers LH79524/LH79525 User’s Guide
15-16 Version 1.0
10:9 CMP0
Output Value Select Timer/Counter Operation: Programs the value (when a
compare match occurs) output on CTCMP1A when the CNT1 Register matches
the T1CMP0 Register.
00 = No change occurs to the output CTCMP1A
01 = Output 0 to CTCMP1A
10 = Output 1 to CTCMP1A
11 = Toggle the output to CTCMP1A
PWM Operation:
00 = Invalid
01 = Active LOW PWM output polarity
10 = Active HIGH PWM output polarity
11 = Invalid
IMPORTANT: CMP1 and CMP0 must be programmed to the same polarity.
8:7 CAPB
Input Edge Select Selects the rising edge, falling edge, both edges, or ignores
all changes of the input signal that is used as the capture trigger. This field and
the capture function are inactive in PWM mode.
00 = Capture input CTCAP1B is ignored
01 = Rising edge of CTCAP1B
10 = Falling edge of CTCAP1B
11 = Both edges of CTCAP1B
6:5 CAPA
Input Edge Select Selects the rising edge, falling edge, both edges, or ignores
all changes of the input signal that is used as the capture trigger. This field and
the capture function are inactive in PWM mode.
00 = Capture input CTCAP1A is ignored
01 = Rising edge of CTCAP1A
10 = Falling edge of CTCAP1A
11 = Both edges of CTCAP1A
4:2 SEL
Count Clock Select Specifies the timer clock divisor. The timer must be
stopped (with the CS bit) before programming the divisor.
000 = HCLK/2
001 = HCLK/4
010 = HCLK/8
011 = HCLK/16
100 = HCLK/32
101 = HCLK/64
110 = HCLK/128
111 = CTCLK
1CS
Start/Stop Timer 1 Specifies whether Timer 1 count is stopped or started. This
bit must be programmed to 0 before programming the SEL field in this register.
For more information, see Section 15.1.1.
0 = Stop Timer 1
1 = Start Timer 1
0 CCL
Timer 1 Count Clear Programming a 1 clears the timer count value. This bit
always reads as 0.
1 = Clears CNT1 contents to 0x0000
0 = Ignored; no effect
Table 15-19. CTRL1 Register Definitions (Cont’d)
BITS NAME DESCRIPTION

Table of Contents

Related product manuals