English
Language : 

PSOC4200M Datasheet, PDF (8/42 Pages) Cypress Semiconductor – Programmable System-on-Chip
PSoC® 4: PSoC 4200M Family
Datasheet
UDBs can be clocked from a clock divider block, from a port
interface (required for peripherals such as SPI), and from the DSI
network directly or after synchronization.
A port interface is defined, which acts as a register that can be
clocked with the same source as the PLDs inside the UDB array.
This allows faster operation because the inputs and outputs can
be registered at the port interface close to the I/O pins and at the
edge of the array. The port interface registers can be clocked by
one of the I/Os from the same port. This allows interfaces such
as SPI to operate at higher clock speeds by eliminating the delay
for the port input to be routed over DSI and used to register other
inputs. The port interface is shown in Figure 6.
The UDBs can generate interrupts (one UDB at a time) to the
interrupt controller. The UDBs can connect to any pin on Ports 0,
1, 2, and 3 (each port interconnect requires one UDB) through
the DSI.
Figure 6. Port Interface
High Speed I/O Matrix
To Clock
Tree
8
8
8
Digital
GlobalClocks
3 DSI Signals ,
1 I/O Signal
Input Registers
76
... 0
9
Clock Selector 2
4
Block from
UDB
Reset Selector
Block from
2
UDB
[0]
8
[0]
To DSI
Output Registers
76
... 0
[1]
8
[1]
From DSI
4
Enables
3210
[1]
4
[1]
From DSI
Fixed Function Digital
Timer/Counter/PWM (TCPWM) Block
The TCPWM block uses a16-bit counter with user-program-
mable 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 prede-
termined 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. The PSoC 4200M has eight TCPWM blocks.
Serial Communication Blocks (SCB)
The PSoC 4200M has four SCBs, which can each implement an
I2C, UART, or SPI interface.
I2C Mode: The hardware I2C 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. It also
supports EzI2C that creates a mailbox address range in the
memory of the PSoC 4200M and effectively reduces I2C commu-
nication to reading from and writing to an array in memory. In
addition, the block supports an 8-deep FIFO for receive and
transmit which, by increasing the time given for the CPU to read
data, greatly reduces the need for clock stretching caused by the
CPU not having read data on time. The FIFO mode is available
in all channels and is very useful in the absence of DMA.
The I2C peripheral is compatible with the I2C Standard-mode,
Fast-mode, and Fast-mode Plus devices as defined in the NXP
I2C-bus specification and user manual (UM10204). The I2C bus
I/O is implemented with GPIO in open-drain modes.
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.
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.
CAN Blocks
There are two independent CAN 2.0B blocks, which are certified
CAN conformant.
Document Number: 001-93963 Rev. *G
Page 8 of 42