Table of contents
About this document....................................................................................................................... 1
Table of contents............................................................................................................................ 2
1Introduction .......................................................................................................................... 3
1.1 PMG1 MCU family general description and comparison .......................................................................3
1.2 EZ-PD™PMG1-S0 MCU.............................................................................................................................6
1.3 EZ-PD™PMG1-S1 MCU.............................................................................................................................7
1.4 EZ-PD™PMG1-S2 MCU.............................................................................................................................8
1.5 EZ-PD™PMG1-S3 MCU.............................................................................................................................9
1.6 Software environment: ModusToolbox™software..............................................................................10
2Development ecosystem........................................................................................................11
2.1 PMG1 MCU resources ............................................................................................................................11
2.2 ModusToolbox™software.....................................................................................................................11
2.3 PMG1 MCU software resources.............................................................................................................12
Configurators....................................................................................................................................12
PMG1 MCU application development..............................................................................................12
2.4 ModusToolbox™Help............................................................................................................................13
2.5 Support for other IDEs...........................................................................................................................13
2.6 Programming and debugging using Eclipse IDE..................................................................................14
2.7 Programming using mtb-programmer.................................................................................................14
2.8 PMG1 MCU kits.......................................................................................................................................16
3Creating a PMG1 MCU application using Eclipse IDE for ModusToolbox™software........................17
3.1 Prerequisites..........................................................................................................................................17
3.2 Create a new application ......................................................................................................................17
3.3 View and modify the design configuration...........................................................................................19
3.4 Opening the Device Configurator .........................................................................................................20
3.5 Write the firmware.................................................................................................................................22
Firmware flow...................................................................................................................................22
3.6 Build and program the application ......................................................................................................23
3.7 Test your design ....................................................................................................................................27
3.8 Debug the application...........................................................................................................................29
Debugging through the KitProg3 interface.....................................................................................29
Debug through the 10-pin SWD header...........................................................................................31
3.9 Add middleware ....................................................................................................................................31
4USB-PD sink example.............................................................................................................33
5Porting the project across PMG1 MCUs.....................................................................................34
6Summary .............................................................................................................................37
Acronyms and abbreviations...........................................................................................................38
Glossary .......................................................................................................................................39
Revision history.............................................................................................................................40
Disclaimer.....................................................................................................................................41