The information herein is given to describe certain components and shall not be considered as a guarantee of
characteristics.
Terms of delivery and rights to technical change reserved.
We hereby disclaim any and all warranties, including but not limited to warranties of non-infringement, regarding
circuits, descriptions and charts stated herein.
Information
For further information on technology, delivery terms and conditions and prices please contact your nearest
Infineon Technologies Office (www.infineon.com).
Warnings
Due to technical requirements components may contain dangerous substances. For information on the types in
question please contact your nearest Infineon Technologies Office.
Infineon Technologies Components may only be used in life-support devices or systems with the express written
approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure
of that life-support device or system, or to affect the safety or effectiveness of that device or system. Life support
devices or systems are intended to be implanted in the human body, or to support and/or maintain and sustain
and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may
be endangered.
Data Sheet, V3.3, Feb. 2005
C167CR
C167SR
16-Bit Single-Chip Microcontroller
Microcontrollers
Never stop thinking.
C167CR, C167SR
Revision History:2005-02V3.3
Previous Version:V3.2, 2001-07
V3.1, 2000-04
V3.0, 2000-02
1999-10 (Introduction of clock-related timing)
1999-06
1999-03 (Summarizes and replaces all older docs)
1998-03 (C167SR/CR, 25 MHz Addendum)
07.97 / 12.96 (C167CR-4RM)
12.96 (C167CR-16RM)
06.95 (C167CR, C167SR)
06.94 / 05.93 (C167)
PageSubjects (major changes since last revision)
allThe layout of several graphics and text structures has been adapted to
company documentation rules, obvious typographical errors have been
corrected.
allThe contents of this document have been re-arranged into numbered
sections and a table of contents has been added.
6BGA-type added to product list
8Pin designation corrected (pin 78)
9Input threshold control added to Port 6
17
…
25Pin diagram and pin description for BGA package added
45Port 6 added to input-threshold controlled ports
Any information within this document that you feel is wrong, unclear or missing at all?
Your feedback will help us to continuously improve the quality of this document.
Please send your proposal (including a reference to this document) to:
•High Performance 16-bit CPU with 4-Stage Pipeline
– 80/60 ns Instruction Cycle Time at 25/33 MHz CPU Clock
– 400/303 ns Multiplication (16 × 16 bits), 800/606 ns Division (32 / 16 bits)
– Enhanced Boolean Bit Manipulation Facilities
– Additional Instructions to Support HLL and Operating Systems
– Register-Based Design with Multiple Variable Register Banks
– Single-Cycle Context Switching Support
– 16 Mbytes Total Linear Address Space for Code and Data
– 1024 Bytes On-Chip Special Function Register Area
•16-Priority-Level Interrupt System with 56 Sources, Sample-Rate down to 40/30 ns
•8-Channel Interrupt-Driven Single-Cycle Data Transfer Facilities via
Peripheral Event Controller (PEC)
•Clock Generation via on-chip PLL (factors 1:1.5/2/2.5/3/4/5),
via prescaler or via direct clock input
•On-Chip Peripheral Modules
– 16-Channel 10-bit A/D Converter with Programmable Conversion Time
down to 7.8 µs
– Two 16-Channel Capture/Compare Units
– 4-Channel PWM Unit
– Two Multi-Functional General Purpose Timer Units with 5 Timers
– Two Serial Channels (Synchronous/Asynchronous and
High-Speed-Synchronous)
– On-Chip CAN Interface (Rev. 2.0B active) with 15 Message Objects
(Full CAN / Basic CAN)
•Up to 16 Mbytes External Address Space for Code and Data
– Programmable External Bus Characteristics for Different Address Ranges
– Multiplexed or Demultiplexed External Address/Data Buses with 8-Bit or 16-Bit
Data Bus Width
– Five Programmable Chip-Select Signals
– Hold- and Hold-Acknowledge Bus Arbitration Support
•Idle and Power Down Modes
•Programmable Watchdog Timer and Oscillator Watchdog
Data Sheet4V3.3, 2005-02
C167CR
C167SR
Summary of Features
•Up to 111 General Purpose I/O Lines,
partly with Selectable Input Thresholds and Hysteresis
•Supported by a Large Range of Development Tools like C-Compilers,
Macro-Assembler Packages, Emulators, Evaluation Boards, HLL-Debuggers,
Simulators, Logic Analyzer Disassemblers, Programming Boards
•On-Chip Bootstrap Loader
•144-Pin MQFP Package
•176-Pin BGA Package
Ordering Information
The ordering code for Infineon microcontrollers provides an exact reference to the
required product. This ordering code identifies:
•the derivative itself, i.e. its function set, the temperature range, and the supply voltage
•the package and the type of delivery.
1)
For the available ordering codes for the C167CR please refer to the “Product CatalogMicrocontrollers”, which summarizes all available microcontroller variants.
Note: The ordering codes for Mask-ROM versions are defined for each product after
verification of the respective ROM code.
This document describes several derivatives of the C167 group. Table 1 enumerates
these derivatives and summarizes the differences. As this document refers to all of these
derivatives, some descriptions may not apply to a specific product.
For simplicity all versions are referred to by the term C167CR throughout this document.
1) The external connections of the C167CR in P-BGA-176-2 are referred to as pins throughout this document,
although they are mechanically realized as solder balls.
1) This Data Sheet is valid for devices manufactured in 0.5 µm technology, i.e. devices starting with and including
design step GA(-T)6.
Data Sheet6V3.3, 2005-02
C167CR
C167SR
General Device Information
2General Device Information
2.1Introduction
The C167CR derivatives are high performance derivatives of the Infineon C166 Family
of full featured single-chip CMOS microcontrollers. They combine high CPU
performance (up to 16.5 million instructions per second) with high peripheral functionality
and enhanced IO-capabilities. They also provide clock generation via PLL and various
on-chip memory modules such as program ROM, internal RAM, and extension RAM.
V
V
AREFAGND
V
DDVSS
XTAL1
XTAL2
RSTIN
RSTOUT
NMI
EA
READY
ALE
RD
WR/WRL
Port 5
16 Bit
Figure 1Logic Symbol
C167CR
Port 0
16 Bit
Port 1
16 Bit
Port 2
16 Bit
Port 3
15 Bit
Port 4
8 Bit
Port 6
8 Bit
Port 7
8 Bit
Port 8
8 Bit
MCL04411
Data Sheet7V3.3, 2005-02
C167CR
C167SR
General Device Information
2.2Pin Configuration and Definition for P-MQFP-144-8
The pins of the C167CR are described in detail in Table 2, including all their alternate
functions. Figure 2 summarizes all pins in a condensed way, showing their location on
the 4 sides of the package.
Note: The P-BGA-176-2 is described in Table 3 and Figure 3.
P0H.0/AD8
P0L.7/AD7
P0L.6/AD6
P0L.5/AD5
P0L.4/AD4
P0L.3/AD3
P0L.2/AD2
P0L.1/AD1
P0L.0/AD0
EA
99
ALE
98
READY
97
96
WR/WRL
95
RD
94
V
SS
93
V
DD
92
P4.7/A23
P4.6/A22/CAN1_TxD
91
90
P4.5/A21/CAN1_RxD
89
P4.4/A20
88
P4.3/A19
P4.2/A18
87
P4.1/A17
86
P4.0/A16
85
OWE
84
83
V
SS
82
V
DD
81
P3.15/CLKOUT
80
P3.13/SCLK
79
P3.12/BHE/WRH
78
P3.11/RxD0
77
P3.10/TxD0
P3.9/MTSR
76
P3.8/MRST
75
P3.7/T2IN
74
P3.6/T3IN
73
DD
MCP04410
Figure 2Pin Configuration P-MQFP-144-8 (top view)
Data Sheet8V3.3, 2005-02
General Device Information
Table 2Pin Definitions and Functions P-MQFP-144-8
C167CR
C167SR
Symbol Pin
No.
P6
P6.0
P6.1
P6.2
P6.3
P6.4
P6.5
P6.6
P6.7
1
2
3
4
5
6
7
8
P8
P8.0
P8.1
P8.2
P8.3
P8.4
P8.5
P8.6
P8.7
9
10
11
12
13
14
15
16
Input
Outp.
IO
O
O
O
O
O
I
I/O
O
IO
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
Function
Port 6 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 6 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 6
is selectable (TTL or special).
The Port 6 pins also serve for alternate functions:
CS0
CS1
CS2
CS3
CS4
HOLD
HLDA
Port 8 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 8 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 8
is selectable (TTL or special).
The following Port 8 pins also serve for alternate functions:
CC16IOCAPCOM2: CC16 Capture Inp./Compare Outp.
CC17IOCAPCOM2: CC17 Capture Inp./Compare Outp.
CC18IOCAPCOM2: CC18 Capture Inp./Compare Outp.
CC19IOCAPCOM2: CC19 Capture Inp./Compare Outp.
CC20IOCAPCOM2: CC20 Capture Inp./Compare Outp.
CC21IOCAPCOM2: CC21 Capture Inp./Compare Outp.
CC22IOCAPCOM2: CC22 Capture Inp./Compare Outp.
CC23IOCAPCOM2: CC23 Capture Inp./Compare Outp.
Data Sheet9V3.3, 2005-02
General Device Information
Table 2Pin Definitions and Functions P-MQFP-144-8 (cont’d)
Port 7 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 7 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 7
is selectable (TTL or special).
The following Port 7 pins also serve for alternate functions:
POUT0PWM Channel 0 Output
POUT1PWM Channel 1 Output
POUT2PWM Channel 2 Output
POUT3PWM Channel 3 Output
CC28IOCAPCOM2: CC28 Capture Inp./Compare Outp.
CC29IOCAPCOM2: CC29 Capture Inp./Compare Outp.
CC30IOCAPCOM2: CC30 Capture Inp./Compare Outp.
CC31IOCAPCOM2: CC31 Capture Inp./Compare Outp.
Port 5 is a 16-bit input-only port with Schmitt-Trigger
characteristic.
The pins of Port 5 also serve as analog input channels for the
A/D converter, or they serve as timer inputs:
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
AN8
AN9
AN10,T6EUDGPT2 Timer T6 Ext. Up/Down Ctrl. Inp.
AN11,T5EUDGPT2 Timer T5 Ext. Up/Down Ctrl. Inp.
AN12,T6INGPT2 Timer T6 Count Inp.
AN13,T5INGPT2 Timer T5 Count Inp.
AN14,T4EUDGPT1 Timer T4 Ext. Up/Down Ctrl. Inp.
AN15,T2EUDGPT1 Timer T5 Ext. Up/Down Ctrl. Inp.
Data Sheet10V3.3, 2005-02
General Device Information
Table 2Pin Definitions and Functions P-MQFP-144-8 (cont’d)
C167CR
C167SR
Symbol Pin
No.
P2
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P2.8
P2.9
P2.10
P2.11
P2.12
P2.13
P2.14
P2.15
47
48
49
50
51
52
53
54
57
58
59
60
61
62
63
64
Input
Outp.
IO
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I
I/O
I
I/O
I
I/O
I
I/O
I
I/O
I
I/O
I
I/O
I
I
Function
Port 2 is a 16-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 2 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 2
is selectable (TTL or special).
The following Port 2 pins also serve for alternate functions:
CC0IOCAPCOM1: CC0 Capture Inp./Compare Output
CC1IOCAPCOM1: CC1 Capture Inp./Compare Output
CC2IOCAPCOM1: CC2 Capture Inp./Compare Output
CC3IOCAPCOM1: CC3 Capture Inp./Compare Output
CC4IOCAPCOM1: CC4 Capture Inp./Compare Output
CC5IOCAPCOM1: CC5 Capture Inp./Compare Output
CC6IOCAPCOM1: CC6 Capture Inp./Compare Output
CC7IOCAPCOM1: CC7 Capture Inp./Compare Output
CC8IOCAPCOM1: CC8 Capture Inp./Compare Output,
EX0INFast External Interrupt 0 Input
CC9IOCAPCOM1: CC9 Capture Inp./Compare Output,
EX1INFast External Interrupt 1 Input
CC10IOCAPCOM1: CC10 Capture Inp./Compare Outp.,
EX2INFast External Interrupt 2 Input
CC11IOCAPCOM1: CC11 Capture Inp./Compare Outp.,
EX3INFast External Interrupt 3 Input
CC12IOCAPCOM1: CC12 Capture Inp./Compare Outp.,
EX4INFast External Interrupt 4 Input
CC13IOCAPCOM1: CC13 Capture Inp./Compare Outp.,
EX5INFast External Interrupt 5 Input
CC14IOCAPCOM1: CC14 Capture Inp./Compare Outp.,
EX6INFast External Interrupt 6 Input
CC15IOCAPCOM1: CC15 Capture Inp./Compare Outp.,
EX7INFast External Interrupt 7 Input,
T7INCAPCOM2: Timer T7 Count Input
Data Sheet11V3.3, 2005-02
General Device Information
Table 2Pin Definitions and Functions P-MQFP-144-8 (cont’d)
Port 3 is a 15-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 3 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 3
is selectable (TTL or special).
The following Port 3 pins also serve for alternate functions:
T0INCAPCOM1 Timer T0 Count Input
T6OUTGPT2 Timer T6 Toggle Latch Output
CAPINGPT2 Register CAPREL Capture Input
T3OUTGPT1 Timer T3 Toggle Latch Output
T3EUDGPT1 Timer T3 External Up/Down Control Input
T4INGPT1 Timer T4 Count/Gate/Reload/Capture Inp.
T3INGPT1 Timer T3 Count/Gate Input
T2INGPT1 Timer T2 Count/Gate/Reload/Capture Inp.
MRSTSSC Master-Receive/Slave-Transmit Inp./Outp.
MTSRSSC Master-Transmit/Slave-Receive Outp./Inp.
TxD0ASC0 Clock/Data Output (Async./Sync.)
RxD0ASC0 Data Input (Async.) or Inp./Outp. (Sync.)
BHE
WRH
External Memory High Byte Enable Signal,
External Memory High Byte Write Strobe
SCLKSSC Master Clock Output / Slave Clock Input.
CLKOUTSystem Clock Output (= CPU Clock)
OWE
(
V
PP
)
84IOscillator Watchdog Enable. This input enables the oscillator
watchdog when high or disables it when low e.g. for testing
purposes. An internal pull-up device holds this input high if
nothing is driving it.
For normal operation pin OWE should be high or not
connected.
In order to drive pin OWE low draw a current of at least
200 µA.
Data Sheet12V3.3, 2005-02
General Device Information
Table 2Pin Definitions and Functions P-MQFP-144-8 (cont’d)
C167CR
C167SR
Symbol Pin
No.
P4
Input
Outp.
IO
Function
Port 4 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state.
Port 4 can be used to output the segment address lines and
for serial bus interfaces:
P4.0
P4.1
P4.2
P4.3
P4.4
P4.5
P4.6
P4.7
85
86
87
88
89
90
91
92
O
O
O
O
O
O
I
O
O
O
A16Least Significant Segment Address Line
A17Segment Address Line
A18Segment Address Line
A19Segment Address Line
A20Segment Address Line
A21Segment Address Line,
CAN1_RxD CAN 1 Receive Data Input
A22Segment Address Line,
CAN1_TxD CAN 1 Transmit Data Output
A23Most Significant Segment Address Line
RD95OExternal Memory Read Strobe. RD
external instruction or data read access.
is activated for every
WR
/
WRL
96OExternal Memory Write Strobe. In WR-mode this pin is
activated for every external data write access. In WRL
-mode
this pin is activated for low byte data write accesses on a
16-bit bus, and for every data write access on an 8-bit bus.
See WRCFG in register SYSCON for mode selection.
READY
97IReady Input. When the Ready function is enabled, a high
level at this pin during an external memory access will force
the insertion of memory cycle time waitstates until the pin
returns to a low level.
An internal pull-up device will hold this pin high when nothing
is driving it.
ALE98OAddress Latch Enable Output. Can be used for latching the
address into external memory or an address latch in the
multiplexed bus modes.
EA
99IExternal Access Enable pin. A low level at this pin during and
after Reset forces the C167CR to begin instruction execution
out of external memory. A high level forces execution out of
the internal program memory.
“ROMless” versions must have this pin tied to ‘0’.
Data Sheet13V3.3, 2005-02
General Device Information
Table 2Pin Definitions and Functions P-MQFP-144-8 (cont’d)
C167CR
C167SR
Symbol Pin
No.
PORT0
P0L.0-7
100107
P0H.0-7
108,
111117
PORT1
P1L.0-7
118125
P1H.0-7
128135
P1H.4
P1H.5
P1H.6
P1H.7
132
133
134
135
Input
Function
Outp.
IOPORT0 consists of the two 8-bit bidirectional I/O ports P0L
and P0H. It is bit-wise programmable for input or output via
direction bits. For a pin configured as input, the output driver
is put into high-impedance state.
In case of an external bus configuration, PORT0 serves as
the address (A) and address/data (AD) bus in multiplexed
bus modes and as the data (D) bus in demultiplexed bus
modes.
PORT1 consists of the two 8-bit bidirectional I/O ports P1L
and P1H. It is bit-wise programmable for input or output via
direction bits. For a pin configured as input, the output driver
is put into high-impedance state. PORT1 is used as the 16-bit
address bus (A) in demultiplexed bus modes and also after
switching from a demultiplexed bus mode to a multiplexed
bus mode.
The following PORT1 pins also serve for alternate functions:
XTAL2:Output of the oscillator amplifier circuit.
XTAL1:Input to the oscillator amplifier and input to the
internal clock generator
To clock the device from an external source, drive XTAL1,
while leaving XTAL2 unconnected. Minimum and maximum
high/low and rise/fall times specified in the AC
Characteristics must be observed.
Data Sheet14V3.3, 2005-02
General Device Information
Table 2Pin Definitions and Functions P-MQFP-144-8 (cont’d)
C167CR
C167SR
Symbol Pin
No.
Input
Outp.
Function
RSTIN140I/OReset Input with Schmitt-Trigger characteristics. A low level
at this pin while the oscillator is running resets the C167CR.
An internal pull-up resistor permits power-on reset using only
a capacitor connected to
V
SS
.
A spike filter suppresses input pulses < 10 ns. Input pulses
> 100 ns safely pass the filter. The minimum duration for a
safe recognition should be 100 ns + 2 CPU clock cycles.
In bidirectional reset mode (enabled by setting bit BDRSTEN
in register SYSCON) the RSTIN
line is internally pulled low
for the duration of the internal reset sequence upon any reset
(HW, SW, WDT). See note below this table.
Note: To let the reset configuration of PORT0 settle and to let
the PLL lock a reset duration of ca. 1 ms is
recommended.
RST
OUT
141OInternal Reset Indication Output. This pin is set to a low level
when the part is executing either a hardware-, a software- or
a watchdog timer reset. RSTOUT
remains low until the EINIT
(end of initialization) instruction is executed.
NMI
V
AREF
V
AGND
142INon-Maskable Interrupt Input. A high to low transition at this
pin causes the CPU to vector to the NMI trap routine. When
the PWRDN (power down) instruction is executed, the NMI
pin must be low in order to force the C167CR to go into power
down mode. If NMI
is high, when PWRDN is executed, the
part will continue to run in normal mode.
If not used, pin NMI
should be pulled high externally.
37–Reference voltage for the A/D converter.
38–Reference ground for the A/D converter.
Data Sheet15V3.3, 2005-02
General Device Information
Table 2Pin Definitions and Functions P-MQFP-144-8 (cont’d)
C167CR
C167SR
Symbol Pin
No.
V
DD
17, 46,
56, 72,
82, 93,
Input
Function
Outp.
–Digital Supply Voltage:
+ 5 V during normal operation and idle mode.
≥ 2.5 V during power down mode.
Note: The following behavioural differences must be observed when the bidirectional
reset is active:
•Bit BDRSTEN in register SYSCON cannot be changed after EINIT and is cleared
automatically after a reset.
•The reset indication flags always indicate a long hardware reset.
•The PORT0 configuration is treated as if it were a hardware reset. In particular, the
bootstrap loader may be activated when P0L.4 is low.
•Pin RSTIN
may only be connected to external reset devices with an open drain output
driver.
•A short hardware reset is extended to the duration of the internal reset sequence.
Data Sheet16V3.3, 2005-02
C167CR
C167SR
General Device Information
2.3Pin Configuration and Definition for P-BGA-176-2
The pins1) of the C167CR are described in detail in Table 3, including all their alternate
functions. Figure 3 summarizes all pins in a condensed way, showing their location on
the bottom of the package.
Note: The P-MQFP-144-8 is described in Table 2 and Figure 2.
1 2 3 4 5 6 7 8 9 1011121314
A
B
C
D
E
F
G
H
J
K
L
V
AREF
P5.11
V
AGND
P5.13
P5.12
V
SS
P2.1
V
DD
P2.7
V
P2.9P2.10 P2.12
P2.13
P2.14
P2.15
P3.2P3.12
SS
P5.0P7.7
P5.2P5.5P7.3
P5.4
P5.6P5.9
P5.3P7.1
P5.1
P5.7P5.10
P5.14P5.15
P2.0P2.2
P2.3
P2.4P2.6P2.5
P2.8
V
DD
P2.11
P3.1
V
DD
V
SS
V
SS
P7.6
P7.5
P7.4
P4.2
V
P8.5
SS
V
P7.2
P7.0
P4.6
DD
P8.7
P8.6
RDP0.12 P0.11
P8.4P5.8
P8.2
P0.1
P8.0
P6.6
P6.2
P0.8
P6.4P6.7P8.1
P6.1
P6.5
V
P6.3P8.3
V
RST
P1.9P1.12P1.10
P1.7
P1.4P1.5
P0.14
P0.9
V
IN
SS
SS
DD
RST
OUT
V
SS
V
SS
P0.15
P0.13
P0.10
P6.0
XTAL2
P1.15
P1.8
P1.6
P1.2
NMIXTAL1
V
DD
P1.14
P1.13
P1.11
V
DD
P1.3
P1.1P1.0
A
B
C
D
E
F
G
H
J
K
L
M
N
P3.4P3.7P3.8P3.10P4.7
P
1 2 3 4 5 6 7 8 9 1011121314
P3.6
P3.11P3.3P3.0
P3.13
V
DD
P3.15
P4.1
OWE
P4.0P3.9P3.5
P4.5
P4.3
P4.4
V
EA
SS
WRP0.0P0.4
REA
V
DD
DY
P0.3
ALE
P0.5
P0.2
V
DD
P0.7
P0.6
M
N
P
Not connected or thermal ground
mc_c167crle_pindiagram.vsd
Figure 3Pin Configuration P-BGA-176-2 (top view)
1) The external connections of the C167CR in P-BGA-176-2 are referred to as pins throughout this document,
although they are mechanically realized as solder balls.
Port 5 is a 16-bit input-only port with Schmitt-Trigger
characteristic.
The pins of Port 5 also serve as analog input channels for the
A/D converter, or they serve as timer inputs:
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
AN8
AN9
AN10,T6EUDGPT2 Timer T6 Ext. Up/Down Ctrl. Inp.
AN11,T5EUDGPT2 Timer T5 Ext. Up/Down Ctrl. Inp.
AN12,T6INGPT2 Timer T6 Count Inp.
AN13,T5INGPT2 Timer T5 Count Inp.
AN14,T4EUDGPT1 Timer T4 Ext. Up/Down Ctrl. Inp.
AN15,T2EUDGPT1 Timer T5 Ext. Up/Down Ctrl. Inp.
P7
P7.0
P7.1
P7.2
P7.3
P7.4
P7.5
P7.6
P7.7
D7
C7
B7
A7
D6
C6
B6
A6
IO
O
O
O
O
I/O
I/O
I/O
I/O
Port 7 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 7 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 7
is selectable (TTL or special).
The following Port 7 pins also serve for alternate functions:
POUT0PWM Channel 0 Output
POUT1PWM Channel 1 Output
POUT2PWM Channel 2 Output
POUT3PWM Channel 3 Output
CC28IOCAPCOM2: CC28 Capture Inp./Compare Outp.
CC29IOCAPCOM2: CC29 Capture Inp./Compare Outp.
CC30IOCAPCOM2: CC30 Capture Inp./Compare Outp.
CC31IOCAPCOM2: CC31 Capture Inp./Compare Outp.
Data Sheet18V3.3, 2005-02
General Device Information
Table 3Pin Definitions and Functions P-BGA-176-2 (cont’d)
C167CR
C167SR
Symbol Pin
Num.
P8
P8.0
P8.1
P8.2
P8.3
P8.4
P8.5
P8.6
P8.7
B10
A10
D9
C9
B9
A9
D8
C8
P6
P6.0
P6.1
P6.2
P6.3
P6.4
P6.5
P6.6
P6.7
A13
B12
D10
C11
A12
B11
C10
A11
Input
Outp.
IO
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
IO
O
O
O
O
O
I
I/O
O
Function
Port 8 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 8 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 8
is selectable (TTL or special).
The following Port 8 pins also serve for alternate functions:
CC16IOCAPCOM2: CC16 Capture Inp./Compare Outp.
CC17IOCAPCOM2: CC17 Capture Inp./Compare Outp.
CC18IOCAPCOM2: CC18 Capture Inp./Compare Outp.
CC19IOCAPCOM2: CC19 Capture Inp./Compare Outp.
CC20IOCAPCOM2: CC20 Capture Inp./Compare Outp.
CC21IOCAPCOM2: CC21 Capture Inp./Compare Outp.
CC22IOCAPCOM2: CC22 Capture Inp./Compare Outp.
CC23IOCAPCOM2: CC23 Capture Inp./Compare Outp.
Port 6 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 6 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 6
is selectable (TTL or special).
The Port 6 pins also serve for alternate functions:
CS0
CS1
CS2
CS3
CS4
HOLD
HLDA
C14INon-Maskable Interrupt Input. A high to low transition at this
pin causes the CPU to vector to the NMI trap routine. When
the PWRDN (power down) instruction is executed, the NMI
pin must be low in order to force the C167CR to go into power
down mode. If NMI
is high, when PWRDN is executed, the
part will continue to run in normal mode.
If not used, pin NMI
Data Sheet19V3.3, 2005-02
should be pulled high externally.
General Device Information
Table 3Pin Definitions and Functions P-BGA-176-2 (cont’d)
C167CR
C167SR
Symbol Pin
Num.
XTAL2
XTAL1
RST
D13
C13
D12OInternal Reset Indication Output. This pin is set to a low level
OUT
RSTIN
E11I/OReset Input with Schmitt-Trigger characteristics. A low level
Input
Outp.
O
I
Function
XTAL2:Output of the oscillator amplifier circuit.
XTAL1:Input to the oscillator amplifier and input to the
internal clock generator.
To clock the device from an external source, drive XTAL1,
while leaving XTAL2 unconnected. Minimum and maximum
high/low and rise/fall times specified in the AC
Characteristics must be observed.
when the part is executing either a hardware-, a software- or
a watchdog timer reset. RSTOUT
remains low until the EINIT
(end of initialization) instruction is executed.
at this pin while the oscillator is running resets the C167CR.
An internal pull-up resistor permits power-on reset using only
a capacitor connected to
V
SS
.
A spike filter suppresses input pulses < 10 ns. Input pulses
> 100 ns safely pass the filter. The minimum duration for a
safe recognition should be 100 ns + 2 CPU clock cycles.
In bidirectional reset mode (enabled by setting bit BDRSTEN
in register SYSCON) the RSTIN
line is internally pulled low
for the duration of the internal reset sequence upon any reset
(HW, SW, WDT). See note below this table.
Note: To let the reset configuration of PORT0 settle and to let
the PLL lock a reset duration of ca. 1 ms is
recommended.
Data Sheet20V3.3, 2005-02
General Device Information
Table 3Pin Definitions and Functions P-BGA-176-2 (cont’d)
C167CR
C167SR
Symbol Pin
Num.
PORT1
P1L.0-7
K13,
K14,
J13,
J14,
H11,
H12,
H13,
G11
P1H.0-3
G13,
F11,
F12,
G14
P1H.4
P1H.5
P1H.6
P1H.7
F13
F14
E14
E13
Input
Outp.
IO
I
I
I
I
Function
PORT1 consists of the two 8-bit bidirectional I/O ports P1L
and P1H. It is bit-wise programmable for input or output via
direction bits. For a pin configured as input, the output driver
is put into high-impedance state. PORT1 is used as the 16-bit
address bus (A) in demultiplexed bus modes and also after
switching from a demultiplexed bus mode to a multiplexed
bus mode.
The following PORT1 pins also serve for alternate functions:
CC24IOCAPCOM2: CC24 Capture Input
CC25IOCAPCOM2: CC25 Capture Input
CC26IOCAPCOM2: CC26 Capture Input
CC27IOCAPCOM2: CC27 Capture Input
PORT0
P0L.0-7
P0H.0-7
RD
IOPORT0 consists of the two 8-bit bidirectional I/O ports P0L
N10,
L9,
P11,
M10,
N11,
M11,
P12,
N12
L10,
K11,
L12,
L14,
L13,
and P0H. It is bit-wise programmable for input or output via
direction bits. For a pin configured as input, the output driver
is put into high-impedance state.
In case of an external bus configuration, PORT0 serves as
the address (A) and address/data (AD) bus in multiplexed
bus modes and as the data (D) bus in demultiplexed bus
modes.
L8OExternal Memory Read Strobe. RD is activated for every
external instruction or data read access.
Data Sheet21V3.3, 2005-02
General Device Information
Table 3Pin Definitions and Functions P-BGA-176-2 (cont’d)
C167CR
C167SR
Symbol Pin
Num.
Input
Outp.
Function
EAM9IExternal Access Enable pin. A low level at this pin during and
after Reset forces the C167CR to begin instruction execution
out of external memory. A high level forces execution out of
the internal program memory.
“ROMless” versions must have this pin tied to ‘0’.
WR
/
WRL
N9OExternal Memory Write Strobe. In WR-mode this pin is
activated for every external data write access. In WRL
-mode
this pin is activated for low byte data write accesses on a
16-bit bus, and for every data write access on an 8-bit bus.
See WRCFG in register SYSCON for mode selection.
READY
P9IReady Input. When the Ready function is enabled, a high
level at this pin during an external memory access will force
the insertion of memory cycle time waitstates until the pin
returns to a low level.
An internal pull-up device will hold this pin high when nothing
is driving it.
ALEP10OAddress Latch Enable Output. Can be used for latching the
address into external memory or an address latch in the
multiplexed bus modes.
P4
IO
Port 4 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state.
Port 4 can be used to output the segment address lines and
for serial bus interfaces:
P4.0
P4.1
P4.2
P4.3
P4.4
P4.5
P4.6
P4.7
P6
M6
L6
N7
P7
M7
L7
N8
O
O
O
O
O
O
I
O
O
O
A16Least Significant Segment Address Line
A17Segment Address Line
A18Segment Address Line
A19Segment Address Line
A20Segment Address Line
A21Segment Address Line,
CAN1_RxD CAN 1 Receive Data Input
A22Segment Address Line,
CAN1_TxD CAN 1 Transmit Data Output
A23Most Significant Segment Address Line
Data Sheet22V3.3, 2005-02
General Device Information
Table 3Pin Definitions and Functions P-BGA-176-2 (cont’d)
C167CR
C167SR
Symbol Pin
Num.
OWE
(
V
PP
)
N6IOscillator Watchdog Enable. This input enables the oscillator
watchdog when high or disables it when low e.g. for testing
purposes. An internal pull-up device holds this input high if
nothing is driving it.
For normal operation pin OWE should be high or not
connected.
In order to drive pin OWE low draw a current of at least
200 µA.
Port 3 is a 15-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 3 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 3
is selectable (TTL or special).
The following Port 3 pins also serve for alternate functions:
T0INCAPCOM1 Timer T0 Count Input
T6OUTGPT2 Timer T6 Toggle Latch Output
CAPINGPT2 Register CAPREL Capture Input
T3OUTGPT1 Timer T3 Toggle Latch Output
T3EUDGPT1 Timer T3 External Up/Down Control Input
T4INGPT1 Timer T4 Count/Gate/Reload/Capture Inp.
T3INGPT1 Timer T3 Count/Gate Input
T2INGPT1 Timer T2 Count/Gate/Reload/Capture Inp.
MRSTSSC Master-Receive/Slave-Transmit Inp./Outp.
MTSRSSC Master-Transmit/Slave-Receive Outp./Inp.
TxD0ASC0 Clock/Data Output (Async./Sync.)
RxD0ASC0 Data Input (Async.) or Inp./Outp. (Sync.)
BHE
WRH
External Memory High Byte Enable Signal,
External Memory High Byte Write Strobe
SCLKSSC Master Clock Output / Slave Clock Input.
CLKOUTSystem Clock Output (= CPU Clock)
Data Sheet23V3.3, 2005-02
General Device Information
Table 3Pin Definitions and Functions P-BGA-176-2 (cont’d)
C167CR
C167SR
Symbol Pin
Num.
P2
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P2.8
P2.9
P2.10
P2.11
P2.12
P2.13
P2.14
P2.15
F3
F2
F4
G4
G3
G2
G1
H1
H4
J1
J2
J4
J3
K1
K2
L1
Input
Outp.
IO
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I
I/O
I
I/O
I
I/O
I
I/O
I
I/O
I
I/O
I
I/O
I
I
Function
Port 2 is a 16-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits. For a pin
configured as input, the output driver is put into highimpedance state. Port 2 outputs can be configured as
push/pull or open drain drivers. The input threshold of Port 2
is selectable (TTL or special).
The following Port 2 pins also serve for alternate functions:
CC0IOCAPCOM1: CC0 Capture Inp./Compare Output
CC1IOCAPCOM1: CC1 Capture Inp./Compare Output
CC2IOCAPCOM1: CC2 Capture Inp./Compare Output
CC3IOCAPCOM1: CC3 Capture Inp./Compare Output
CC4IOCAPCOM1: CC4 Capture Inp./Compare Output
CC5IOCAPCOM1: CC5 Capture Inp./Compare Output
CC6IOCAPCOM1: CC6 Capture Inp./Compare Output
CC7IOCAPCOM1: CC7 Capture Inp./Compare Output
CC8IOCAPCOM1: CC8 Capture Inp./Compare Output,
EX0INFast External Interrupt 0 Input
CC9IOCAPCOM1: CC9 Capture Inp./Compare Output,
EX1INFast External Interrupt 1 Input
CC10IOCAPCOM1: CC10 Capture Inp./Compare Outp.,
EX2INFast External Interrupt 2 Input
CC11IOCAPCOM1: CC11 Capture Inp./Compare Outp.,
EX3INFast External Interrupt 3 Input
CC12IOCAPCOM1: CC12 Capture Inp./Compare Outp.,
EX4INFast External Interrupt 4 Input
CC13IOCAPCOM1: CC13 Capture Inp./Compare Outp.,
EX5INFast External Interrupt 5 Input
CC14IOCAPCOM1: CC14 Capture Inp./Compare Outp.,
EX6INFast External Interrupt 6 Input
CC15IOCAPCOM1: CC15 Capture Inp./Compare Outp.,
EX7INFast External Interrupt 7 Input,
T7INCAPCOM2: Timer T7 Count Input
V
AREF
V
AGND
Data Sheet24V3.3, 2005-02
B2–Reference voltage for the A/D converter.
C2–Reference ground for the A/D converter.
General Device Information
Table 3Pin Definitions and Functions P-BGA-176-2 (cont’d)
C167CR
C167SR
Symbol Pin
Num.
V
DD
B8,
C12,
D14,
F1,
H3,
H14,
K4,
M5,
M12,
P8
V
SS
A8,
D11,
E1,
E12,
G12,
H2,
L3,
L5,
L11,
M8
Input
Function
Outp.
–Digital Supply Voltage:
+ 5 V during normal operation and idle mode.
≥ 2.5 V during power down mode.
–Digital Ground.
Note: The following behavioural differences must be observed when the bidirectional
reset is active:
•Bit BDRSTEN in register SYSCON cannot be changed after EINIT and is cleared
automatically after a reset.
•The reset indication flags always indicate a long hardware reset.
•The PORT0 configuration is treated as if it were a hardware reset. In particular, the
bootstrap loader may be activated when P0L.4 is low.
•Pin RSTIN
may only be connected to external reset devices with an open drain output
driver.
•A short hardware reset is extended to the duration of the internal reset sequence.
Data Sheet25V3.3, 2005-02
Loading...
+ 62 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.