Registers
1560
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Universal Parallel Port (uPP)
32.3.5 uPP Interface Configuration Register (UPICR)
The uPP interface configuration register (UPICR) controls the enable state and polarity of each uPP
interface channel’s pins. The polarity selection applies regardless of channel direction. The signal enable
states only apply in either receive or transmit mode, but never both. The UPICR is shown in
and described in
NOTE:
When initializing the uPP peripheral, the uPP interface configuration register (UPICR) must
be programmed using a single, 32-bit write. Writing UPICR fields one-by-one can lead to
unexpected results.
Figure 32-20. uPP Interface Configuration Register (UPICR)
31
30
29
28
27
24
Reserved
TRISB
CLKINVB
CLKDIVB
R-0
R/W-0
R/W-0
R/W-0
23
22
21
20
19
18
17
16
Reserved
WAITB
ENAB
STARTB
WAITPOLB
ENAPOLB
STARTPOLB
R-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
15
14
13
12
11
8
Reserved
TRISA
CLKINVA
CLKDIVA
R-0
R/W-0
R/W-0
R/W-0
7
6
5
4
3
2
1
0
Reserved
WAITA
ENAA
STARTA
WAITPOLA
ENAPOLA
STARTPOLA
R-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 32-15. uPP Interface Configuration Register (UPICR) Field Descriptions
Bit
Field
Value
Description
31-30
Reserved
0
Reserved
29
TRISB
Channel B high-impedance state. Controls interface Channel B while idle in transmit mode. Only applies
when Channel B is configured in transmit mode using the MODE bit in the uPP channel control register
(UPCTL).
0
Channel B drives value from the VALB bit in the uPP interface idle value register (UPIVR) while idle.
1
Channel B data pins are in a high-impedance state while idle.
28
CLKINVB
Channel B clock inversion. Controls clock signal polarity for interface Channel B.
0
Clock is not inverted. Channel B signals align on rising edge of clock.
1
Clock is inverted. Channel B signals align on falling edge of clock.
27-24
CLKDIVB
0-Fh
Clock divisor for Channel B. Only used when interface Channel B is configured in transmit mode using
the MODE bit in the uPP channel control register (UPCTL). Applied divisor equals C 1.
23-22
Reserved
0
Reserved
21
WAITB
Channel B WAIT signal enable. Controls use of WAIT signal for interface Channel B. Only applied when
Channel B is configured in transmit mode using the MODE bit in the uPP channel control register
(UPCTL). In receive mode, WAIT is always driven low.
0
WAIT signal is disabled. Channel B ignores WAIT in transmit mode.
1
WAIT signal is enabled. Channel B honors WAIT in transmit mode.
20
ENAB
Channel B ENABLE Signal Enable. Controls use of ENABLE signal for interface Channel B. Only
applied when Channel B is configured in receive mode using the MODE bit in the uPP channel control
register (UPCTL). In transmit mode, ENABLE is always driven.
0
ENABLE signal is disabled. Channel B ignores ENABLE in receive mode.
1
ENABLE signal is enabled. Channel B honors ENABLE in receive mode.