Sharp LH79524 User Manual page 451

Table of Contents

Advertisement

Timers
BITS NAME
10:9
8:7
6:5
4:2
1
0
15-16
Table 15-19. CTRL1 Register Definitions (Cont'd)
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
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 CTCAP1B is ignored
01 = Rising edge of CTCAP1B
10 = Falling edge of CTCAP1B
11 = Both edges of CTCAP1B
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 CTCAP1A is ignored
01 = Rising edge of CTCAP1A
10 = Falling edge of CTCAP1A
11 = Both edges of CTCAP1A
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 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.
CS
0 = Stop Timer 1
1 = Start Timer 1
Timer 1 Count Clear Programming a 1 clears the timer count value. This bit
always reads as 0.
CCL
1 = Clears CNT1 contents to 0x0000
0 = Ignored; no effect
DESCRIPTION
Version 1.0
LH79524/LH79525 User's Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lh79525

Table of Contents