SX Users Manual Rev. 3.1
168
© 2000 Scenix Semiconductor, Inc. All rights reserved.
www.scenix.com
Chapter 8 Multi-Function Timers
8.3
Timer Pin Assignments
The following table lists the I/O port pins associated with the Timer T1 and Timer T2 I/O functions.
8.4
Timer Control Registers
There are two 8-bit control registers associated with each timer, called the Control A and Control B
registers. The Control A register contains the interrupt enable bits and interrupt flag bits associated
with the timer. (Interrupts are caused by comparison, capture, and overflow events.) The Control B
register contains bits for setting the timer operating mode, the clock prescaler divide-by factor, and the
input signal edge sensitivity. Each Control B register also contains one device configuration bit not
related to operation of the multi-function timers.
The register formats are shown in the following tables.
Table 8-1 Timer T1/T2 Pin Assignments
I/O Pin
Timer T1/T2 Function
RB4
Timer T1 Capture Input 1
RB5
Timer T1 Capture Input 2
RB6
Timer T1 PWM/Compare Output
RB7
Timer T1 External Event Clock Source
RC0
Timer T2 Capture Input 1
RC1
Timer T2 Capture Input 2
RC2
Timer T2 PWM/Compare Output
RC3
Timer T2 External Event Clock Source