AN0034 Getting started with PSOC™ 4 HV MS MCUs in ModusToolbox™
About this document
Scope and purpose
This application note helps you explore the PSOC™ 4 high voltage (HV) mixed signal (MS) Automotive MCU architecture and development tools, and shows you how to create your first project using the Eclipse IDE for ModusToolbox™ software. This application note also guides you to more resources available online to accelerate your learning about PSOC™ 4 HV MS: CY8C41x5 and CY8C41x6 MCUs.
Intended audience
This document is intended for users who are new to PSOC™ 4 HV MS MCU and ModusToolbox™ software.
Associated part family
CY8C41x5
CY8C41x6
Software version
3.2 or above.
Introduction
The PSOC™ 4 HV MS MCU device is a microcontroller targeted at automotive applications. The PSOC™ 4 HV MS CY8C41x MCU integrates the following features on a single chip:
CPU subsystem
48 MHz, 32-bit Arm® Cortex®-M0+ CPU with the following:
Single-cycle multiply
Memory protection unit (MPU)
Datawire/peripheral direct memory access (DMA) controller with 8 channels
Integrated memories
Up to 64 KB of flash
Up to 8 KB of SRAM
Programmable analog
12-bit, 1-Msps SAR ADC with differential and single-ended modes, and channel sequencer with signal averaging
16-channel SAR multiplexer with built-in diagnostics (8 I/O channels and 8 diagnostic channels)
Temperature sensor built into SAR ADC
Two low-power comparators that operate in Deep Sleep low-power mode
Programmable digital
Programmable smart I/O logic blocks allowing Boolean operations to be performed on port inputs and outputs
High-voltage subsystem
Regulator output voltage supports 3.3 V or 5 V selectable with ±2% trimmed accuracy
Regulator current: up to 60 mA
Thermal shutdown
Operates directly off 12-V/24-V battery (tolerates up to 42 V)
CAPSENSE™ (multi-sense converter) block
Multi-sense converter (MSC) provides a best-in-class signal-to-noise ratio (SNR) (>5:1) and water tolerance for capacitive sensing
Timing and pulse-width modulation
Five 16-bit timer/counter/pulse-width modulator (TCPWM) blocks
Communication
Two independent run-time reconfigurable serial communication blocks (SCB) with reconfigurable I 2 C, SPI, UART, or LIN slave functionality
Up to two CXPI channels with data rate up to 20 kbps
The
ModusToolbox™ software environment
supports PSOC™ 4 HV MS MCU application development with a set of tools for configuring the device, setting up the peripherals, and complementing your projects with world-class middleware. See the
Infineon
GitHub repo for the KIT_PSOC4-HVMS-64K_LITE BSP, libraries for popular functionality like device firmware upgrade (DFU) and emWin, and a comprehensive array of example applications to get you started.
illustrates an application-level block diagram for a Steering wheel hands-on-detection (HOD) use case using a PSOC™ 4 HV MS MCU.
Figure 1. Application-level block diagram using PSOC™ 4 HV MS MCU
The PSOC™ 4 HV MS MCU is a highly capable and flexible solution. For example, the steering wheel hands-on-detection use case in
Figure 1
has the advantage of the following features:
MCU:
Arm® Cortex®-M0+ MCU with DMA and MPU
Up to 64 KB flash with error correcting code (ECC)
CAPSENSE™:
Handles high parasitic capacitance (Cp) to support long sensors
Temperature compensation along with heated steering wheels
Supports thick overlay/steering wheel covers
Heating coil can be used as an HOD sensor
ADC:
Monitors supply voltage
Measures temperature of the sensor
PWM:
Controls haptic actuator
Controls LED lighting
HV (LDO and LIN PHY):
Connects directly to a 12-V battery supply with the integrated HV regulator
Communicates directly to the LIN bus with an integrated LIN PHY
provides an overview of the product line.
Device series | Details |
|---|---|
PSOC™ 4 HV MS CY8C4125 | 24 MHz Cortex®-M0+ 32 KB flash, 4 KB RAM Packages: 32/48/56 QFN |
PSOC™ 4 HV MS CY8C4126 | 24 MHz Cortex®-M0+ 64 KB flash, 8 KB RAM Packages: 32/48/56 QFN |
PSOC™ 4 HV MS CY8C4145 | 48 MHz Cortex®-M0+ 32 KB flash, 4 KB RAM Packages: 32/48/56 QFN |
PSOC™ 4 HV MS CY8C4146 | 48 MHz Cortex®-M0+ 64 KB flash, 8 KB RAM Packages: 32/48/56 QFN |
Note: All features are not available in all the devices in a product line. For more details, see the Device datasheets.
This application note introduces you to the capabilities of the PSOC™ 4 HV MS MCU, gives an overview of the development ecosystem, and gets you started with a simple “Hello World” application wherein you learn to use the PSOC™ 4 HV MS MCU. Additionally, provides how to create the application from an empty starter application, but the completed design is available as a
code example for ModusToolbox™ on GitHub
.
For hardware design considerations, see the
2
.