C8051F581-IMR Silicon Labs, C8051F581-IMR Datasheet - Page 335

no-image

C8051F581-IMR

Manufacturer Part Number
C8051F581-IMR
Description
8-bit Microcontrollers - MCU 50MIPS 128kB 8kB SPI
Manufacturer
Silicon Labs
Datasheet

Specifications of C8051F581-IMR

Rohs
yes
Core
8051
Processor Series
C8051
Data Bus Width
8 bit
29.3.1. Edge-triggered Capture Mode
In this mode, a valid transition on the CEXn pin causes PCA1 to capture the value of the PCA1 coun-
ter/timer and load it into the corresponding module's 16-bit capture/compare register (PCA1CPLn and
PCA1CPHn). The CAPP1n and CAPN1n bits in the PCA1CPMn register are used to select the type of
transition that triggers the capture: low-to-high transition (positive edge), high-to-low transition (negative
edge), or either transition (positive or negative edge). When a capture occurs, the Capture/Compare Flag
(CCFn) in PCA1CN is set to logic 1. An interrupt request is generated if the CCFn interrupt for that module
is enabled. The CCFn bit is not automatically cleared by hardware when the CPU vectors to the interrupt
service routine, and must be cleared by software. If both CAPP1n and CAPN1n bits are set to logic 1, then
the state of the Port pin associated with CEXn can be read directly to determine whether a rising-edge or
falling-edge caused the capture.
Note: The CEXn input signal must remain high or low for at least 2 system clock cycles to be recognized by the
Port I/O
hardware.
Crossbar
CEXn
Figure 29.4. PCA1 Capture Mode Diagram
W
M
P
1
6
1
n
x
PCA1CPMn
E
C
O
M
1
n
x
C
A
P
P
1
n
Rev. 1.2
C
A
P
N
1
n
0
1
M
A
T
n
1
0 0 0 x
O
G
T
1
n
W
P
M
1
n
E
C
C
F
1
n
0
1
C
F
1
C
R
1
PCA1CN
C
C
F
1
1
C
C
F
1
0
C
C
F
9
PCA1
Timebase
C
C
F
8
C8051F58x/F59x
C
C
F
7
PCA1 Interrupt
C
C
F
6
Capture
PCA1CPLn
PCA1L
PCA1CPHn
PCA1H
335

Related parts for C8051F581-IMR