Sharp LH79524 User Manual page 458

Table of Contents

Advertisement

LH79524/LH79525 User's Guide
BITS NAME
10:9
8:7
6:5
4:2
1
0
Table 15-31. CTRL2 Register Definitions (Cont'd)
Output Value Select Timer/Counter Operation: Programs the value (when a
compare match occurs) output on CTCMP2A when the CNT2 Register matches
the T2CMP0 Register.
00 = No change occurs to the output CTCMP2A
01 = Output 0 to CTCMP2A
10 = Output 1 to CTCMP2A
11 = Toggle the output to CTCMP2A
CMP0
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.
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.
CAPB
00 = Capture input CTCAP2B is ignored
01 = Rising edge of CTCAP2B
10 = Falling edge of CTCAP2B
11 = Both edges of CTCAP2B
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.
CAPA
00 = Capture input CTCAP2A is ignored
01 = Rising edge of CTCAP2A
10 = Falling edge of CTCAP2A
11 = Both edges of CTCAP2A
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
SEL
011 = HCLK/16
100 = HCLK/32
101 = HCLK/64
110 = HCLK/128
111 = CTCLK
Start/Stop Timer 2 Specifies whether Timer 2 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.
CS
0 = Stop Timer 2
1 = Start Timer 2
Timer 2 Count Clear Programming a 1 clears the timer count value. This bit
always reads as 0.
CCL
1 = Clears CNT2 contents to 0x0000
0 = Ignored; no effect
DESCRIPTION
Version 1.0
Timers
15-23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lh79525

Table of Contents