Automotive PSoC
®
4: PSoC 4200
Family Datasheet
Document Number: 001-93573 Rev. *E Page 7 of 37
Fixed Function Digital
Timer/Counter/PWM Block
The Timer/Counter/PWM block consists of four 16-bit counters
with user-programmable period length. There is a Capture
register to record the count value at the time of an event (which
may be an I/O event), a period register which is used to either
stop or auto-reload the counter when its count is equal to the
period register, and compare registers to generate compare
value signals which are used as PWM duty cycle outputs. The
block also provides true and complementary outputs with
programmable offset between them to allow use as deadband
programmable complementary PWM outputs. It also has a Kill
input to force outputs to a predetermined state; for example, this
is used in motor drive systems when an overcurrent state is
indicated and the PWMs driving the FETs need to be shut off
immediately with no time for software intervention.
Serial Communication Blocks (SCB)
PSoC 4200 has two SCBs, which can each implement an I
2
C,
UART, SPI, or LIN Slave interface.
I
2
C Mode: The hardware I
2
C block implements a full
multi-master and slave interface (it is capable of multimaster
arbitration). This block is capable of operating at speeds of up to
1 Mbps (Fast Mode Plus) and has flexible buffering options to
reduce interrupt overhead and latency for the CPU. The FIFO
mode is available in all channels and is very useful in the
absence of DMA.
The I
2
C peripheral is compatible with the I
2
C Standard-mode,
Fast-mode, and Fast-mode Plus devices as defined in the NXP
I
2
C-bus specification and user manual (UM10204). The I
2
C bus
I/O is implemented with GPIO in open-drain modes. The I
2
C bus
uses open-drain drivers for clock and data with pull-up resistors
on the bus for clock and data connected to all nodes. Required
Rise and Fall times for different I
2
C speeds are guaranteed by
using appropriate pull-up resistor values depending on V
DD
, Bus
Capacitance, and resistor tolerance. For detailed information on
how to calculate the optimum pull-up resistor value for your
design, please refer to the UM10204 I
2
C bus specification and
user manual, the newest revision is available at www.nxp.com.
PSoC 4200 is not completely compliant with the I
2
C spec in the
following respects:
GPIO cells are not overvoltage tolerant and, therefore, cannot
be hot-swapped or powered up independently of the rest of the
I
2
C system.
Fast-mode Plus has an I
OL
specification of 20 mA at a V
OL
of
0.4 V. The GPIO cells can sink a maximum of 8 mA I
OL
with a
V
OL
maximum of 0.6 V.
Fast-mode and Fast-mode Plus specify minimum Fall times,
which are not met with the GPIO cell; Slow strong mode can
help meet this spec depending on the Bus Load.
When the SCB is an I
2
C Master, it interposes an IDLE state
between NACK and Repeated Start; the I
2
C spec defines Bus
free as following a Stop condition so other Active Masters do
not intervene but a Master that has just become activated may
start an Arbitration cycle.
When the SCB is in I
2
C Slave mode, and Address Match on
External Clock is enabled (EC_AM = 1) along with operation in
the internally clocked mode (EC_OP = 0), then its I
2
C address
must be even.
UART Mode: This is a full-feature UART operating at up to
1 Mbps. It supports automotive single-wire interface (LIN),
infrared interface (IrDA), and SmartCard (ISO7816) protocols, all
of which are minor variants of the basic UART protocol. In
addition, it supports the 9-bit multiprocessor mode that allows
addressing of peripherals connected over common RX and TX
lines. Common UART functions such as parity error, break
detect, and frame error are supported. An 8-deep FIFO allows
much greater CPU service latencies to be tolerated. Note that
hardware handshaking is not supported. This is not commonly
used and can be implemented with a UDB-based UART in the
system, if required.
SPI Mode: The SPI mode supports full Motorola SPI, TI SSP
(essentially adds a start pulse used to synchronize SPI Codecs),
and National Microwire (half-duplex form of SPI). The SPI block
can use the FIFO and also supports an EzSPI mode in which
data interchange is reduced to reading and writing an array in
memory.
LIN Slave Mode: The LIN Slave mode uses the SCB hardware
block and implements a full LIN slave interface. This LIN slave is
compliant with LIN v1.3 and LIN v2.1/2.2 specification standards.
It is certified by C&S GmbH based on the standard protocol and
data link layer conformance tests. LIN slave can be operated at
baud rates of up to ~20 Kbps with a maximum of 40-meter cable
length. PSoC Creator software supports up to two LIN slave
interfaces in the PSoC 4 device, providing built-in application
programming interfaces (APIs) based on the LIN specification
standard.
GPIO
PSoC 4200 has 24 GPIOs. The GPIO block implements the
following:
Eight drive strength modes:
Analog input mode (input and output buffers disabled)
Input only
Weak pull-up with strong pull-down
Strong pull-up with weak pull-down
Open drain with strong pull-down
Open drain with strong pull-up
Strong pull-up with strong pull-down
Weak pull-up with weak pull-down
Input threshold select (CMOS or LVTTL).
Individual control of input and output buffer enabling/disabling
in addition to the drive strength modes.
Hold mode for latching previous state (used for retaining I/O
state in Deep Sleep mode and Hibernate modes).
Selectable slew rates for dV/dt related noise control to improve
EMI.
Automotive PSoC
®
4: PSoC 4200
Family Datasheet
Document Number: 001-93573 Rev. *E Page 8 of 37
The pins are organized in logical entities called ports, which are
8-bit in width. During power-on and reset, the blocks are forced
to the disable state so as not to crowbar any inputs and/or cause
excess turn-on current. A multiplexing network known as a
high-speed I/O matrix is used to multiplex between various
signals that may connect to an I/O pin. Pin locations for
fixed-function peripherals are also fixed to reduce internal multi-
plexing complexity (these signals do not go through the DSI
network). DSI signals are not affected by this and any pin may
be routed to any UDB through the DSI network.
Data output and pin state registers store, respectively, the values
to be driven on the pins and the states of the pins themselves.
Every I/O pin can generate an interrupt if so enabled and each
I/O port has an interrupt request (IRQ) and interrupt service
routine (ISR) vector associated with it (5 for PSoC 4200).
Special Function Peripherals
LCD Segment Drive
PSoC 4200 has an LCD controller which can drive up to four
commons and up to 32 segments. It uses full digital methods to
drive the LCD segments requiring no generation of internal LCD
voltages. The two methods used are referred to as digital corre-
lation and PWM.
Digital correlation pertains to modulating the frequency and
levels of the common and segment signals to generate the
highest RMS voltage across a segment to light it up or to keep
the RMS signal zero. This method is good for STN displays but
may result in reduced contrast with TN (cheaper) displays.
PWM pertains to driving the panel with PWM signals to effec-
tively use the capacitance of the panel to provide the integration
of the modulated pulse-width to generate the desired LCD
voltage. This method results in higher power consumption but
can result in better results when driving TN displays. LCD
operation is supported during Deep Sleep refreshing a small
display buffer (4 bits; 1 32-bit register per port).
CapSense
CapSense is supported on all pins in PSoC 4200 through a
CapSense Sigma-Delta (CSD) block that can be connected to
any pin through an analog mux bus that any GPIO pin can be
connected to via an Analog switch. CapSense function can thus
be provided on any pin or group of pins in a system under
software control. A component is provided for the CapSense
block to make it easy for the user.
Shield voltage can be driven on another Mux Bus to provide
water tolerance capability. Water tolerance is provided by driving
the shield electrode in phase with the sense electrode to keep
the shield capacitance from attenuating the sensed input.
The CapSense block has two IDACs which can be used for
general purposes if CapSense is not being used.(both IDACs are
available in that case) or if CapSense is used without water
tolerance (one IDAC is available).
Automotive PSoC
®
4: PSoC 4200
Family Datasheet
Document Number: 001-93573 Rev. *E Page 9 of 37
Pinouts
The following is the pin-list for PSoC 4200. Port 2 comprises of the high-speed Analog inputs for the SAR Mux. P1.7 is the optional
external input and bypass for the SAR reference. Ports 3 and 4 contain the Digital Communication channels. All pins support CSD
CapSense and Analog Mux Bus connections.
Notes:
1. tcpwm_p and tcpwm_n refer to tcpwm non-inverted and inverted outputs respectively.
2. P3.2 and P3.3 are SWD pins after boot (reset).
Descriptions of the Pin functions are as follows:
VDDD: Power supply for both analog and digital sections (where there is no V
DDA
pin).
VDDA: Analog V
DD
pin where package pins allow; shorted to V
DDD
otherwise.
Pins 28-SSOP Alternate Functions for Pins
Pin Description
Name Type Pin Name Analog Alt 1 Alt 2 Alt 3 Alt 4
VSSD Power DN Digital Ground
P2.2 GPIO 5 P2.2 sarmux.2 Port 2 Pin 2: gpio, lcd, csd, sarmux
P2.3 GPIO 6 P2.3 sarmux.3 Port 2 Pin 3: gpio, lcd, csd, sarmux
P2.4 GPIO 7 P2.4 sarmux.4 tcpwm0_p[1] Port 2 Pin 4: gpio, lcd, csd, sarmux,
pwm
P2.5 GPIO 8 P2.5 sarmux.5 tcpwm0_n[1] Port 2 Pin 5: gpio, lcd, csd, sarmux,
pwm
P2.6 GPIO 9 P2.6 sarmux.6 tcpwm1_p[1] Port 2 Pin 6: gpio, lcd, csd, sarmux,
pwm
P2.7 GPIO 10 P2.7 sarmux.7 tcpwm1_n[1] Port 2 Pin 7: gpio, lcd, csd, sarmux,
pwm
P3.0 GPIO 11 P3.0 tcpwm0_p[0] scb1_uart_rx[0] scb1_i2c_scl[0] scb1_spi_mosi[0] Port 3 Pin 0: gpio, lcd, csd, pwm,
scb1
P3.1 GPIO 12 P3.1 tcpwm0_n[0] scb1_uart_tx[0] scb1_i2c_sda[0] scb1_spi_miso[0] Port 3 Pin 1: gpio, lcd, csd, pwm,
scb1
P3.2 GPIO 13 P3.2 tcpwm1_p[0] swd_io scb1_spi_clk[0] Port 3 Pin 2: gpio, lcd, csd, pwm,
scb1, swd
P3.3 GPIO 14 P3.3 tcpwm1_n[0] swd_clk scb1_spi_ssel_0[0] Port 3 Pin 3: gpio, lcd, csd, pwm,
scb1, swd
P4.0 GPIO 15 P4.0 scb0_uart_rx scb0_i2c_scl scb0_spi_mosi Port 4 Pin 0: gpio, lcd, csd, scb0
P4.1 GPIO 16 P4.1 scb0_uart_tx scb0_i2c_sda scb0_spi_miso Port 4 Pin 1: gpio, lcd, csd, scb0
P4.2 GPIO 17 P4.2 csd_c_mod scb0_spi_clk Port 4 Pin 2: gpio, lcd, csd, scb0
P4.3 GPIO 18 P4.3 csd_c_sh_tan
k
scb0_spi_ssel_0 Port 4 Pin 3: gpio, lcd, csd, scb0
P0.0 GPIO 19 P0.0 comp1_inp scb0_spi_ssel_1 Port 0 Pin 0: gpio, lcd, csd, scb0,
comp
P0.1 GPIO 20 P0.1 comp1_inn scb0_spi_ssel_2 Port 0 Pin 1: gpio, lcd, csd, scb0,
comp
P0.2 GPIO 21 P0.2 comp2_inp scb0_spi_ssel_3 Port 0 Pin 2: gpio, lcd, csd, scb0,
comp
P0.3 GPIO 22 P0.3 comp2_inn Port 0 Pin 3: gpio, lcd, csd, comp
P0.6 GPIO 23 P0.6 ext_clk scb1_spi_clk[1] Port 0 Pin 6: gpio, lcd, csd, scb1,
ext_clk
P0.7 GPIO 24 P0.7 wakeup scb1_spi_ssel_0[1] Port 0 Pin 7: gpio, lcd, csd, scb1,
wakeup
XRES XRES 25 XRES Chip reset, active low
VCCD Power 26 VCCD Regulated supply, connect to 1 µF
cap or 1.8 V
VDDD Power 27 VDDD Common power supply (Analog
and Digital) 1.8 V–5.5 V
VSSA Power 28(DN) VSS Analog Ground
P1.0 GPIO 1 P1.0 ctb.oa0.inp tcpwm2_p[1] Port 1 Pin 0: gpio, lcd, csd, ctb,
pwm
P1.1 GPIO 2 P1.1 ctb.oa0.inm tcpwm2_n[1] Port 1 Pin 1: gpio, lcd, csd, ctb,
pwm
P1.2 GPIO 3 P1.2 ctb.oa0.out tcpwm3_p[1] Port 1 Pin 2: gpio, lcd, csd, ctb,
pwm
P1.7 GPIO 4 P1.7 ctb.oa1.inp_alt
ext_vref
––
Port 1 Pin 7: gpio, lcd, csd, ext_ref

CY8C4245PVA-482

Mfr. #:
Manufacturer:
Cypress Semiconductor
Description:
ARM Microcontrollers - MCU PSoC4
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union