NXP LPC55S User Manual

NXP Semiconductors Document identifier: IEC60730BLPC55SXXEUG
User's Guide Rev. 0, 12/2020
LPC55Sxx Safety Example
NXP Semiconductors

Contents

Chapter 1 IEC60730B Safety library example user's guide...................................3
Chapter 2 Hardware settings................................................................................. 4
Chapter 3 File structure......................................................................................... 7
Chapter 4 Example application.............................................................................. 9
Chapter 5 Running example................................................................................ 12
Chapter 6 IEC60730B tests................................................................................. 15
LPC55Sxx Safety Example, Rev. 0, 12/2020
User's Guide 2 / 19
NXP Semiconductors
Chapter 1 IEC60730B Safety library example user's guide
For easier development of the IEC60730B application, the library also provides the example code. This example is distributed through the MCUXpresso SDK website. This example user's guide describes how to set the hardware correctly and how to use the example code with the IEC60730B Safety library.
The library user's guide is the main documentation for IEC60730B. It is also part this package and accessible at
www.nxp.com/IEC60730.
LPC55Sxx Safety Example, Rev. 0, 12/2020
User's Guide 3 / 19
NXP Semiconductors
Chapter 2 Hardware settings
This chapter describes how to set up the hardware of the evaulation board. The MCU peripherals' setup is described later on.
The IEC60730B library example for the LPC55Sxx family supports the following development boards:
• LPCxpresso55S69
• LPCxpresso55S28
To run the IEC60730B example application, it is neccessary to make some hardware settings. For the default configuration of your development board, see the corresponding board's user manual at www.nxp.com.

2.1 LPCXpresso55S69

To use the on-board debugger and power the board via USB, make sure that jumper J3 is set to "Loc". Then connect the USB to connector P6.
NOTE
If downloading to device does not work, press and hold the S1 button during download.
See the Hardware User’s Guide for more options.
The ADC module on LPCXpresso55S69 does not allow to connect the Bandgap internally to the ADC input. It is necessary to connect these signals (for the Analog I/O test) as follows:
• VrefH 3.3 V is connected internally.
• VrefL - GND is connected internally.
• Bandgap - connect a custom reference (for example 1.65 V) to PIO0_23 (P19-4). The expected value of the custom bandgap can be set in the
safety_config.h
file (#define ADC_EXTERNAL_PIN_LEVEL 1.65).
LPC55Sxx Safety Example, Rev. 0, 12/2020
User's Guide 4 / 19
NXP Semiconductors
Hardware settings
Figure 1. Hardware connection of LPCXpresso55S69
The test voltage of 1.65 V is provided by a resistor voltage divider from the VCC (3.3 V).

2.2 LPCXpresso55S28

To use the on-board debugger and power the board via USB, make sure that jumper J3 is set to "Loc". Then connect the USB to connector P6.
NOTE
If downloading to device does not work, press and hold the S1 button during download.
See the
The ADC module on LPCXpresso55S28 does not allow to connect the Bandgap internally to the ADC input. Thus, it is necessary to connect these signals (for the Analog I/O test) as follows:
LPCXpresso55S69/55S28 Development Boards User Manual
(document UM11158) for more details.
• VrefH 3.3 V is connected internally.
• VrefL - GND is connected internally.
• Bandgap - connect a custom reference (for example 1.65 V) to PIO0_23 (P19-4). The expected value of the custom bandgap can be set in the
safety_config.h
file (#define ADC_EXTERNAL_PIN_LEVEL 1.65).
LPC55Sxx Safety Example, Rev. 0, 12/2020
User's Guide 5 / 19
NXP Semiconductors
Hardware settings
Figure 2. Hardware connection of LPCXpresso55S28
The test voltage of 1.65 V is provided by a resistor voltage divider from the VCC (3.3 V).
LPC55Sxx Safety Example, Rev. 0, 12/2020
User's Guide 6 / 19
Loading...
+ 13 hidden pages