Automotive PSoC
®
4: PSoC 4100
Family Datasheet
Document Number: 001-93576 Rev. *E Page 4 of 36
Functional Overview
CPU and Memory Subsystem
CPU
The Cortex-M0 CPU in PSoC 4100 is part of the 32-bit MCU
subsystem, which is optimized for low power operation with
extensive clock gating. It mostly uses 16-bit instructions and
executes a subset of the Thumb-2 instruction set. This enables
fully compatible binary upward migration of the code to higher
performance processors such as the Cortex-M3 and M4, thus
enabling upward compatibility. The Cypress implementation
includes a hardware multiplier that provides a 32-bit result in one
cycle. It includes a nested vectored interrupt controller (NVIC)
block with 32 interrupt inputs and also includes a Wakeup
Interrupt Controller (WIC), which can wake the processor up
from Deep Sleep mode allowing power to be switched off to the
main processor when the chip is in Deep Sleep mode. The
Cortex-M0 CPU provides a Non-Maskable Interrupt input (NMI),
which is made available to the user when it is not in use for
system functions requested by the user.
The CPU also includes a debug interface, the Serial Wire Debug
(SWD) interface, which is a 2-wire form of JTAG; the debug
configuration used for PSoC 4100 has four break-point (address)
comparators and two watchpoint (data) comparators.
Flash
PSoC 4100 has a flash module with a flash accelerator tightly
coupled to the CPU to improve average access times from the
flash block. The flash block is designed to deliver 0 wait-state
(WS) access time at 24 MHz. Part of the flash module can be
used to emulate EEPROM operation if required.
The PSoC 4100 flash supports the following flash protection
modes at the memory sub-system level.
Open: No protection. Factory default mode that the product is
shipped in.
Protected: User may change from Open to Protected. This
mode disables debug interface accesses. The mode can be set
back to Open but only after completely erasing the flash.
Kill: User may change from Open to Kill. This mode disables all
debug accesses. The part cannot be erased externally, thus
obviating the possibility of partial erasure by power interruption
and potential malfunction and security leaks. This is an
irrecvocable mode.
In addition, row-level Read/Write protection is also supported to
prevent inadvertent Writes as well as selectively block Reads.
Flash Read/Write/Erase operations are always available for
internal code using system calls.
SRAM
SRAM memory is retained during Hibernate.
SROM
A supervisory ROM that contains boot and configuration routines
is provided.
System Resources
Power System
The power system is described in detail in the section Power on
page 10. It provides assurance that voltage levels are as
required for each respective mode and either delay mode entry
(on power-on reset (POR), for example) until voltage levels are
as required for proper function or generate resets (brown-out
detect (BOD)) or interrupts (low-voltage detect (LVD)). The
PSoC 4100 operates with a single external supply over the range
of 1.71 V to 5.5 V and has five different power modes, transitions
between which are managed by the power system. The
PSoC 4100 provides Sleep, Deep Sleep, Hibernate, and Stop
low-power modes.
Clock System
The PSoC 4100 clock system is responsible for providing clocks
to all subsystems that require clocks and for switching between
different clock sources without glitching. In addition, the clock
system ensures that no metastable conditions occur.
The clock system for the PSoC 4100 consists of two internal
oscillators, IMO and the ILO, and provision for an external clock.
Figure 1. PSoC 4100 MCU Clocking Architecture
The HFCLK signal can be divided down (see PSoC 4100 MCU
Clocking Architecture) to generate synchronous clocks for the
analog and digital peripherals. There are a total of 12 clock
dividers for the PSoC 4100, each with 16-bit divide capability.
The analog clock leads the digital clocks to allow analog events
to occur before digital clock-related noise is generated. The
16-bit capability allows a lot of flexibility in generating
fine-grained frequency values and is fully supported in
PSoC Creator.
UDB
Dividers
Analog
Divider
Peripheral
Dividers
SYSCLK
PrescalerHFCLK
UDBn
SAR clock
PERXYZ_CLK
IMO
ILO
HFCLK
LFCLK
EXTCLK
Automotive PSoC
®
4: PSoC 4100
Family Datasheet
Document Number: 001-93576 Rev. *E Page 5 of 36
IMO Clock Source
The IMO is the primary source of internal clocking in the
PSoC 4100. It is trimmed during testing to achieve the specified
accuracy. Trim values are stored in nonvolatile latches (NVL).
Additional trim settings from flash can be used to compensate for
changes. The IMO default frequency is 24 MHz and it can be
adjusted between 3 MHz to 24 MHz in steps of 1 MHz. IMO
tolerance with Cypress-provided calibration settings is ±2%.
ILO Clock Source
The ILO is a very low power oscillator, which is primarily used to
generate clocks for peripheral operation in Deep Sleep mode.
ILO-driven counters can be calibrated to the IMO to improve
accuracy. Cypress provides a software component, which does
the calibration.
Watchdog Timer
A watchdog timer is implemented in the clock block running from
the ILO; this allows watchdog operation during Deep Sleep and
generates a watchdog reset if not serviced before the timeout
occurs. The watchdog reset is recorded in the Reset Cause
register.
Reset
PSoC 4100 can be reset from a variety of sources including a
software reset. Reset events are asynchronous and guarantee
reversion to a known state. The reset cause is recorded in a
register, which is sticky through reset and allows software to
determine the cause of the Reset. An XRES pin is reserved for
external reset to avoid complications with configuration and
multiple pin functions during power-on or reconfiguration. The
XRES pin has an internal pull-up resistor that is always enabled.
Voltage Reference
The PSoC 4100 reference system generates all internally
required references. A 1% voltage reference spec is provided for
the 12-bit ADC. To allow better signal-to-noise ratios (SNR) and
better absolute accuracy, it is possible to bypass the internal
reference using a GPIO pin or to use an external reference for
the SAR.
Analog Blocks
12-bit SAR ADC
The 12-bit 806 Ksps SAR ADC can operate at a maximum clock
rate of 14.5 MHz and requires a minimum of 18 clocks at that
frequency to do a 12-bit conversion.
The block functionality is augmented for the user by adding a
reference buffer to it (trimmable to ±1%) and by providing the
choice (for the PSoC 4100 case) of three internal voltage refer-
ences: V
DD
, V
DD
/2, and V
REF
(nominally 1.024 V) as well as an
external reference through a GPIO pin. The Sample-and-Hold
(S/H) aperture is programmable allowing the gain bandwidth
requirements of the amplifier driving the SAR inputs, which
determine its settling time, to be relaxed if required. System
performance will be 65 dB for true 12-bit precision providing
appropriate references are used and system noise levels permit.
To improve performance in noisy conditions, it is possible to
provide an external bypass (through a fixed pin location) for the
internal reference amplifier.
The SAR is connected to a fixed set of pins through an 8-input
sequencer. The sequencer cycles through selected channels
autonomously (sequencer scan) and does so with zero switching
overhead (that is, aggregate sampling bandwidth is equal to
806 Ksps whether it is for a single channel or distributed over
several channels). The sequencer switching is effected through
a state machine or through firmware-driven switching. A feature
provided by the sequencer is buffering of each channel to reduce
CPU interrupt service requirements. To accommodate signals
with varying source impedance and frequency, it is possible to
have different sample times programmable for each channel.
Also, signal range specification through a pair of range registers
(low and high range values) is implemented with a corresponding
out-of-range interrupt if the digitized value exceeds the
programmed range; this allows fast detection of out-of-range
values without the necessity of having to wait for a sequencer
scan to be completed and the CPU to read the values and check
for out-of-range values in software.
The SAR is able to digitize the output of the on-board
temperature sensor for calibration and other
temperature-dependent functions. The SAR is not available in
Deep Sleep and Hibernate modes as it requires a high-speed
clock (up to 18 MHz). The SAR operating range is 1.71 V to
5.5 V.
Figure 2. SAR ADC System Diagram
SARMUX
Port 2 (8 inputs)
vplusvminus
P0
P7
Data and
Status Flags
Reference
Selection
External
Reference
and
Bypass
(optional)
POS
NEG
SAR Sequencer
SARADC
Inputs from other Ports
VDD/2
VDDD VREF
AHB System Bus and Programmable Logic
Interconnect
Sequencing
and Control
Automotive PSoC
®
4: PSoC 4100
Family Datasheet
Document Number: 001-93576 Rev. *E Page 6 of 36
Opamp (CTBm Block)
PSoC 4100 has an opamp with Comparator mode, which allows
most common analog functions to be performed on-chip elimi-
nating external components; PGAs, voltage buffers, filters,
trans-impedance amplifiers, and other functions can be realized
with external passives saving power, cost, and space. The
on-chip opamp is designed with enough bandwidth to drive the
S/H circuit of the ADC without requiring external buffering.
Temperature Sensor
PSoC 4100 has one on-chip temperature sensor This consists
of a diode, which is biased by a current source that can be
disabled to save power. The temperature sensor is connected to
the ADC, which digitizes the reading and produces a
temperature value using Cypress supplied software that includes
calibration and linearization.
Low-power Comparators
PSoC 4100 has a pair of low-power comparators, which can also
operate in the Deep Sleep and Hibernate modes. This allows the
analog system blocks to be disabled while retaining the ability to
monitor external voltage levels during low-power modes. The
comparator outputs are normally synchronized to avoid metasta-
bility unless operating in an asynchronous power mode
(Hibernate) where the system wake-up circuit is activated by a
comparator switch event.
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 4100 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 I2C 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 I2C 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.
The PSoC 4100 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.
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. The 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.

CY8C4125PVA-482

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