Nuvoton TRM KM1M7BF00 02 Vol1 Technical Reference Manual

  • Hello, I'm your chat assistant and I've read the Technical Reference Manual for the Nuvoton KM1M7BF00/02 series microcontrollers. This comprehensive guide provides detailed information about the device's architecture, safety features, power management, memory map, and peripheral functionalities, so you can leverage its capabilities effectively. I'm ready to answer your questions about the device using the information contained in this document.
  • What is the core of the KM1M7BF00/02 series microcontroller?
    What safety features are included in this microcontroller?
    What kind of serial interfaces are supported by the KM1M7BF00/02?
KM1M7BF00/02 Series
ARM® Cortex®-M
32-bit Microcontroller
KM1M7BF00/02 Series
Technical Reference Manual Vol. 1
The information described in this document is the exclusive intellectual property of Nuvoton
Technology Corporation Japan and shall not be reproduced without permission from Nuvoton.
Nuvoton is providing document only for reference purposes of KM1M7BF00/02 Series based
system design.
Nuvoton assumes no responsibility for errors or commissions.
All data and specifications are subject to changed without notice.
For additional information or question, please contact Nuvoton Technology Corporation Japan.
www.nuvoton.co.jp
June 30.2023 Page 1 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
KM1M7BF00/02 Series
Request for your special attention and precautions
in using the technical information and semiconductors described in this book
(1) If any of the products or technical information described in this book is to be exported or provided to non-
residents, the laws and regulations of the exporting country, especially, those with regard to security export
control, must be observed.
(2) The technical information described in this book is intended only to show the main characteristics and
application circuit examples of the products. No license is granted in and to any intellectual property right or
other right owned by Nuvoton Technology Corporation Japan or any other company. Therefore, no
responsibility is assumed by our company as to the infringement upon any such right owned by any other
company which may arise as a result of the use of technical information de-scribed in this book.
(3) The products described in this book are intended to be used for general applications (such as office
equipment, communications equipment, measuring instruments and household appliances), or for specific
applications as expressly stated in this book.
It is to be understood that our company shall not be held responsible for any damage caused as a result of the
following special applications:
Special applications (such as for automotive, airplanes, aerospace, transport equipment, traffic signaling
equipment, combustion equipment, medical equipment and safety devices) in which exceptional quality and
reliability are required, or if the failure or malfunction of the products may directly jeopardize life or harm the
human body.
It is to be understood that our company shall not be held responsible for any damage incurred as a result of or
in connection with your using the products described in this book for any special application, unless our
company agrees to your using the products in this book for any special application.
(4) When designing your equipment, comply with the range of absolute maximum rating and the guaranteed
operating conditions (operating power supply voltage and operating environment etc.). Especially, please be
careful not to exceed the range of absolute maximum rating on the transient state, such as power-on, power-off
and mode-switching. Other-wise, we will not be liable for any defect which may arise later in your equipment.
Even when the products are used within the guaranteed values, take into the consideration of incidence of break
down and failure mode, possible to occur to semiconductor products. Measures on the systems such as
redundant design, arresting the spread of fire or preventing glitch are recommended in order to prevent physical
injury, fire, social damages, for example, by using the products.
(5) Comply with the instructions for use in order to prevent breakdown and characteristics change due to
external factors (ESD, EOS, thermal stress and mechanical stress) at the time of handling, mounting or at
customer's process. We do not guarantee quality for disassembled products or the product re-mounted after
removing from the mounting board. When using products for which damp-proof packing is required, satisfy the
conditions, such as shelf life and the elapsed time since first opening the packages.
(6) When reselling products described in this book to other companies without our permission and receiving
any claim of request from the resale destination, please understand that customers will bear the burden.
(7) This book may be not reprinted or reproduced whether wholly or partially, without the prior written
permission of our company.
June 30.2023 Page 2 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
KM1M7BF00/02 Series
June 30.2023 Page 3 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
KM1M7BF00/02 Series
n
n
June 30.2023 Page 4 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
Table of Contents
1. Overview .............................................................................................. 17
1.1 Overview .................................................................................................................................18
1.2 Product Summary....................................................................................................................18
1.2.1 Function Summary ........................................................................................................19
1.3 Features ..................................................................................................................................21
1.4 Pins .........................................................................................................................................24
1.4.1 Pin Configuration...........................................................................................................24
1.4.2 Pin Functions ................................................................................................................26
1.5 Electrical Characteristics .........................................................................................................38
1.5.1 Absolute Maximum Ratings ..........................................................................................38
1.5.2 Operation Conditions ....................................................................................................39
1.5.3 DC Characteristics ........................................................................................................42
1.5.4 Analog Characteristics ..................................................................................................47
1.5.5 AC Characteristics ........................................................................................................53
1.5.6 Flash EEPROM Characteristics ....................................................................................53
1.6 Package Dimension ................................................................................................................54
1.7 Cautions for Circuit Setup .......................................................................................................56
1.7.1 Cautions of Usage.........................................................................................................56
1.7.2 Pin Connections ............................................................................................................57
1.7.3 Unused pins ..................................................................................................................60
1.7.4 Cautions of Power Supply.............................................................................................61
1.7.5 Example of Oscillator Connection .................................................................................64
2. Safety Function.................................................................................... 67
2.1 Overview .................................................................................................................................68
2.1.1 Flash Memory Data Protection Function.......................................................................68
2.1.2 Flash-ECC Function......................................................................................................68
2.1.3 RAM-ECC function........................................................................................................69
2.1.4 MPU Function ...............................................................................................................69
2.1.5 Register Protection Function.........................................................................................69
2.1.6 WDT Function ...............................................................................................................70
2.1.7 Clock Monitoring Function.............................................................................................70
2.1.8 CRC Caluculation Function...........................................................................................70
2.1.9 A/D Fault Diagnosis Function........................................................................................71
2.1.10 Power Supply Voltage Detection Function ..................................................................71
2.1.11 Reset Factor Identifying Function................................................................................71
2.1.12 IO-level Monitoring Function .......................................................................................71
3. System Settings ................................................................................. 73
3.1 Reset .......................................................................................................................................74
3.1.1 Overview .......................................................................................................................74
3.1.2 Reset Controller Control Register .................................................................................74
3.1.3 Reset Definition.............................................................................................................74
KM1M7BF00/02 Series
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
June 30.2023 Page 5 of 857 Rev 1.7
3.1.4 Identifying Reset Factor ................................................................................................76
3.1.5 Start-Up Sequence after Reset .....................................................................................77
3.2 Flash Option ............................................................................................................................80
3.2.1 Overview of Flash Option..............................................................................................80
3.2.2 Detail of Flash Option....................................................................................................82
3.3 Software Start-UP ...................................................................................................................89
3.3.1 Overview of Software Start-Up......................................................................................89
3.3.2 Examples of Settings ....................................................................................................89
3.4 Clock Generator ......................................................................................................................90
3.4.1 Overview of Clock Generator ........................................................................................90
3.4.2 Clock Generator Control Register .................................................................................92
3.4.3 Specification of Clock Generator...................................................................................92
3.4.4 Setting Example of Clock Generator.............................................................................97
4. CPU....................................................................................................... 99
4.1 Overview ...............................................................................................................................100
4.1.1 Cortex-M7 Processor and Core Peripheral Structure ................................................101
4.1.2 The list of Cortex-M7 Processor and Core Peripheral Interrupts ................................102
4.1.3 Block Diagram of Cortex-M7 Processor and Core Peripheral Blocks .........................102
4.2 Cortex-M7 Processor and Core Peripheral Control Register ...............................................103
4.3 Cortex-M7 Processor and Core Peripheral Controls.............................................................103
4.3.1 Enabling writing to the register on the Private Peripheral Bus ....................................103
5. Memory Map ...................................................................................... 105
5.1 Overview ...............................................................................................................................106
5.2 Memory map .........................................................................................................................107
5.3 Flash Memory Area ...............................................................................................................109
5.3.1 Access Wait Setting to Flash area ..............................................................................109
5.3.2 Flash-ECC Functions ..................................................................................................109
5.4 ITCM......................................................................................................................................113
5.4.1 ITCM Access Wait Setting...........................................................................................113
5.4.2 RAM-ECC Function (ITCM) ........................................................................................114
5.5 DTCM (D0TCM/D1TCM).......................................................................................................120
5.5.1 DTCM Access Wait Setting .........................................................................................120
5.5.2 RAM-ECC Function (D0TCM/D1TCM) .......................................................................121
5.6 Peripheral Area .....................................................................................................................126
5.6.1 Register Map...............................................................................................................126
6. Low Power Mode ............................................................................... 135
6.1 Overview of Low Power Mode...............................................................................................136
6.1.1 Operation Modes.........................................................................................................136
6.1.2 Operation Mode Transition Diagram ...........................................................................137
6.2 Low Power Mode Control Register........................................................................................138
6.3 Detail of Low Power Mode ....................................................................................................139
KM1M7BF00/02 Series
June 30.2023 Page 6 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
6.3.1 Specification of Operation Mode .................................................................................139
6.3.2 Operating State of Functional Block............................................................................140
6.3.3 Entering and Exiting DEEPSLEEP Mode....................................................................141
6.3.4 Entering and Exiting SLEEP Mode .............................................................................143
6.3.5 Setting Example of Transition of Operation Mode.......................................................145
7. Interrupt Controller............................................................................ 147
7.1 Overview of the Interrupt Controller ......................................................................................148
7.2 Features of the Interrupt Controller .......................................................................................148
7.3 Block Diagram of the Interrupt Controller ..............................................................................148
7.4 The List of the Interrupt Factors ............................................................................................149
7.5 Control Registers of the Interrupt Controller..........................................................................159
7.6 Group Interrupt Function .......................................................................................................160
7.6.1 Overview .....................................................................................................................160
7.6.2 Function Descriptions..................................................................................................161
7.6.3 Example of Interrupt Settings......................................................................................162
7.7 Pin Protection Factor Detection Function..............................................................................167
8. DMA Controller .................................................................................. 169
8.1 Overview ...............................................................................................................................170
8.1.1 Functions of DMA controller........................................................................................170
8.1.2 Interrupt group list of DMA controller ..........................................................................171
8.1.3 DMA transfer factor list................................................................................................174
8.1.4 Block diagram of DMA controller.................................................................................178
8.2 Control Registers of DMA controller......................................................................................179
8.3 DMA controller operation.......................................................................................................185
8.3.1 DMA transfer target.....................................................................................................185
8.3.2 DMA transfer operation ...............................................................................................186
8.3.3 Addressing mode ........................................................................................................192
8.3.4 Priority level.................................................................................................................192
8.3.5 DMA transfer operation in DEEPSLEEP.....................................................................192
8.4 Setting example of DMA transfer ..........................................................................................193
9. I/O Port................................................................................................ 195
9.1 Overview of I/O Ports ............................................................................................................196
9.1.1 The List of I/O Ports ....................................................................................................199
9.1.2 The Default States of the I/O Ports .............................................................................203
9.1.3 The Circuit Diagram of the I/O Ports ...........................................................................207
9.2 I/O Port Control Registers .....................................................................................................208
10. Noise Filter....................................................................................... 213
10.1 Overview of Noise Filter ......................................................................................................214
10.1.1 List of Noise Filter Function.......................................................................................214
10.1.2 Noise Filter Block Diagram........................................................................................214
KM1M7BF00/02 Series
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
June 30.2023 Page 7 of 857 Rev 1.7
10.2 Control Registers of Noise Filter .........................................................................................216
10.3 Function of Noise Filter .......................................................................................................217
10.3.1 Specification of Noise Filter.......................................................................................217
10.3.2 Setting Example of Noise Filter.................................................................................218
11. 16-bit Timer ...................................................................................... 219
11.1 Overview of 16-bit Timer......................................................................................................220
11.1.1 List of 16-bit Timer.....................................................................................................220
11.1.2 List of 16-bit Timer Clock Sources.............................................................................221
11.1.3 List of 16-bit Timer Interrupt Groups..........................................................................222
11.1.4 List of 16-bit Timer Ports ...........................................................................................225
11.1.5 16-bit Timer Block Structure ......................................................................................231
11.2 16-bit Timer Control Register...............................................................................................234
11.3 Interval Timer.......................................................................................................................255
11.3.1 Function of Interval Timer..........................................................................................255
11.3.2 Timing of Interval Timer Operation ............................................................................256
11.3.3 Example of Interval Timer Settings............................................................................258
11.4 Timer Output........................................................................................................................260
11.4.1 Function of Timer Output...........................................................................................260
11.4.2 Timing of Timer Output Operation .............................................................................261
11.4.3 Example of Timer Output Settings.............................................................................262
11.5 PWM Output ........................................................................................................................264
11.5.1 Function of PWM Output ...........................................................................................264
11.5.2 Timing of PWM Output Operation .............................................................................265
11.5.3 Example of PWM Output Settings.............................................................................266
11.6 Event Count.........................................................................................................................268
11.6.1 Function of Event Count............................................................................................268
11.6.2 Timing of Event Count Operation ..............................................................................269
11.6.3 Example of Event Count Settings..............................................................................271
11.7 Phase Difference Pulse Count ............................................................................................273
11.7.1 Function of Phase Difference Pulse Count................................................................273
11.7.2 Timing of Phase Difference Pulse Count Operat.......................................................274
11.7.3 Example of Phase Difference Pulse Count Settings .................................................276
11.8 Up/Down Pulse Count .........................................................................................................278
11.8.1 Function of Up/Down Pulse Count ............................................................................278
11.8.2 Timing of Up/Down Pulse Count Operation...............................................................279
11.8.3 Example of Up/Down Pulse Count Settings ..............................................................280
11.9 Input Capture.......................................................................................................................282
11.9.1 Function of Input Capture..........................................................................................282
11.9.2 Timing of Input Capture Operation ............................................................................283
11.9.3 Example of Input Capture Operation Settings...........................................................284
11.10 1-Shot Output ....................................................................................................................286
11.10.1 Function of 1-Shot Output .......................................................................................286
11.10.2 Timing of 1-Shot Output Operation..........................................................................287
11.10.3 Example of 1-Shot Output Operation ......................................................................288
KM1M7BF00/02 Series
June 30.2023 Page 8 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
11.11 External Trigger .................................................................................................................290
11.11.1 Function of External Trigger ....................................................................................290
11.11.2 Timing of External Trigger Operation.......................................................................291
11.11.3 Example of External Trigger Settings ......................................................................292
11.12 Output Protection...............................................................................................................294
11.12.1 Function of Output Protection..................................................................................294
11.12.2 Timing of Output Protection Operation ....................................................................296
11.12.3 Example of Output Protection Settings ...................................................................298
11.13 Timer Interrupt Output Control...........................................................................................300
11.13.1 Function of Timer Interrupt Output Control..............................................................300
11.13.2 Timing of Timer Interrupt Output Control Operation ................................................301
11.13.3 Example of Timer Interrupt Output Control..............................................................302
11.14 A/D Converter Start ...........................................................................................................304
11.14.1 Function of A/D Converter Start ..............................................................................304
11.14.2 Timing of A/D Conversion Start Operation ..............................................................305
11.14.3 Example of A/D Converter Setting ..........................................................................306
11.15 Cascade Connection .........................................................................................................308
11.15.1 List of Cascade Connection Timer Functions..........................................................309
11.15.2 Function of Cascade Connection Timer ..................................................................311
11.15.3 Timing of Cascade Connection Timer Operation.....................................................313
11.15.4 Timing of Cascade Connection Interval Timer Operation........................................314
11.15.5 Example of Cascade Connection Timer Setting......................................................315
11.16 Phase Complementary PWM Output ................................................................................317
11.16.1 Function of Phase Complementary PWM Output ...................................................317
11.16.2 Timing of Phase Complementary PWM Output Operation......................................318
11.16.3 Example of Phase Complementary PWM Output Setting .......................................319
11.17 Dead Time .........................................................................................................................321
11.17.1 Function of Dead Time ............................................................................................321
11.17.2 Timing of Dead Time Operation...............................................................................322
11.17.3 Function of Dead Time Width Automatic Control ....................................................323
11.17.4 Timing of Dead Time Width Automatic Control Operation.......................................323
11.17.5 Example of Dead Time Setting................................................................................325
11.18 Output Shift........................................................................................................................328
11.18.1 Function of Output Shift...........................................................................................328
11.18.2 Timing of Output Shift Operation .............................................................................329
11.18.3 Example of Output Shift Setting ..............................................................................330
11.19 Duty Cut.............................................................................................................................332
11.19.1 Function of Duty Cut................................................................................................332
11.19.2 Timing of Duty Cut Operation ..................................................................................333
11.19.3 Example of Duty Cut Setting ...................................................................................334
11.20 Period cut ..........................................................................................................................336
11.20.1 Function of Period Cut.............................................................................................336
11.20.2 Timing of Period Cut Operation ...............................................................................337
11.20.3 Example of Period Cut Setting ................................................................................339
11.21 Leading Edge Blanking......................................................................................................341
KM1M7BF00/02 Series
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
June 30.2023 Page 9 of 857 Rev 1.7
11.21.1 Function of Leading Edge Blanking.........................................................................341
11.21.2 Timing of Leading Edge Blanking Operation ...........................................................342
11.21.3 Example of Leading Edge Blanking Setting ............................................................343
11.22 Task Overflow Detection....................................................................................................345
11.22.1 Function of Task Overflow Detection.......................................................................345
11.22.2 Timing of Task Overflow Detection Operation .........................................................346
11.22.3 Example of Task Overflow Detection Setting ..........................................................347
12. Power Control PWM ........................................................................ 349
12.1 Overview of Power Control PWM........................................................................................350
12.1.1 List of Power Control PWM Functions ......................................................................351
12.1.2 List of Power Control PWM Clock Sources...............................................................352
12.1.3 List of Power Control PWM Interrupt Groups............................................................352
12.1.4 List of Power Control PWM Ports..............................................................................353
12.1.5 Power Control PWM Block Diagram .........................................................................355
12.2 Control Registers for the Power Control PWM....................................................................356
12.3 Basic Operation of the Power Control PWM .......................................................................368
12.3.1 Waveform Mode ........................................................................................................368
12.3.2 GPWM Cycle Setting ................................................................................................370
12.3.3 GPWM Output Start and Stop...................................................................................370
12.3.4 Output Waveform Polarity .........................................................................................372
12.3.5 Double Buffer ............................................................................................................373
12.3.6 Double Buffer Load Timing........................................................................................374
12.4 Dead Time Setting Function ................................................................................................376
12.4.1 Details of the Dead Time Setting Function................................................................376
12.4.2 Dead Time Period Auto Control Function..................................................................378
12.5 "H"/"L" Level Output Function .............................................................................................379
12.5.1 Setting "H"/"L" Level Output Function .......................................................................379
12.5.2 Inserting Dead Time when Outputting "H"/"L" Levels................................................381
12.6 Output Shift Function...........................................................................................................382
12.6.1 Details of Output Shift Function ................................................................................382
12.7 Interrupt Output Control Function........................................................................................383
12.7.1 Details of Interrupt Output Control Function..............................................................383
12.8 Output Protection Function..................................................................................................385
12.8.1 Details of the Output Protection Function .................................................................385
12.9 Synchronous A/D Conversion Start Function......................................................................387
12.9.1 Details of Synchronous A/D Conversion Start Function............................................387
12.10 Count State Output Function.............................................................................................389
12.10.1 Details of Count State Output Function...................................................................389
12.11 Pin Output Order Selection................................................................................................390
12.11.1 Details of Pin Output Order Selection .....................................................................390
12.12 Duty Cut Function..............................................................................................................391
12.12.1 Details of Duty Cut Function ...................................................................................391
12.12.2 The Operation Timing of Duty Cut Function............................................................392
KM1M7BF00/02 Series
June 30.2023 Page 10 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
12.13 Period Cut Function...........................................................................................................393
12.13.1 Details of Period Cut Function ................................................................................393
12.13.2 The Operation Timing of Period Cut Function.........................................................394
13. Serial Interface 0.............................................................................. 395
13.1 Overview of Serial Interface ................................................................................................396
13.1.1 List of Serial Interface Functions...............................................................................397
13.1.2 List of Serial Interface Clocks....................................................................................398
13.1.3 List of Serial Interface Interrupt Groups ....................................................................399
13.1.4 List of Serial Interface Ports ......................................................................................399
13.1.5 Serial Interface Block Diagram..................................................................................400
13.2 Serial Interface Control Registers .......................................................................................401
13.3 Clock Specification ..............................................................................................................402
13.3.1 Clock Source.............................................................................................................403
13.3.2 Transfer Clock ...........................................................................................................405
13.4 Clock-Synchronous Serial Interface ....................................................................................406
13.4.1 Communication Function of Clock-Synchronous ......................................................406
13.4.2 Clock-Synchronous Communication Timing .............................................................418
13.4.3 Clock-Synchronous Setup Example..........................................................................423
13.5 IIC Communication .............................................................................................................429
13.5.1 Communication Function of IIC.................................................................................429
13.5.2 IIC Communication Timing ........................................................................................439
13.5.3 IIC Communication Setup Example ..........................................................................442
14. Serial Interface 1,2,5,6..................................................................... 447
14.1 Overview of Serial Interface ................................................................................................448
14.1.1 List of Serial Interface Functions...............................................................................449
14.1.2 List of Serial Interface Clocks....................................................................................451
14.1.3 List of Serial Interface Interrupt Groups ....................................................................452
14.1.4 List of Serial Interface Ports ......................................................................................453
14.1.5 Serial Interface Block Diagram..................................................................................454
14.2 Serial Interface Control Registers .......................................................................................455
14.3 Clock Specification ..............................................................................................................457
14.3.1 Clock Source.............................................................................................................458
14.3.2 Transfer Clock ...........................................................................................................460
14.4 Clock-Synchronous Serial Interface ....................................................................................461
14.4.1 Communication Function of Clock-Synchronous ......................................................461
14.4.2 Clock-Synchronous Communication Timing .............................................................474
14.4.3 Clock-Synchronous Setup Example..........................................................................479
14.5 UART Serial Interface .........................................................................................................486
14.5.1 Communication Function of UART............................................................................486
14.5.2 UART Communication Timing...................................................................................495
14.5.3 UART Setup Example ...............................................................................................497
15. Serial Interface 3,4........................................................................... 501
KM1M7BF00/02 Series
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
June 30.2023 Page 11 of 857 Rev 1.7
15.1 Overview of Serial Interface ................................................................................................502
15.1.1 List of Serial Interface Functions...............................................................................503
15.1.2 List of Serial Interface Clocks....................................................................................504
15.1.3 List of Serial Interface Interrupt Groups ....................................................................505
15.1.4 List of Serial Interface Ports ......................................................................................506
15.1.5 Serial Interface Block Diagram..................................................................................507
15.2 Serial Interface Control Registers .......................................................................................508
15.3 Clock Specification ..............................................................................................................509
15.3.1 Clock Source.............................................................................................................510
15.3.2 Transfer Clock ...........................................................................................................512
15.4 Clock-Synchronous Serial Interface ....................................................................................513
15.4.1 Communication Function of Clock-Synchronous ......................................................513
15.4.2 Clock-Synchronous Communication Timing .............................................................528
15.4.3 Clock-Synchronous Setup Example..........................................................................533
15.5 UART Serial Interface .........................................................................................................540
15.5.1 Communication Function of UART............................................................................540
15.5.2 UART Communication Timing...................................................................................548
15.5.3 UART Setup Example ...............................................................................................550
16. Serial Interface 7.............................................................................. 555
16.1 Overview of Serial Interface 7 .............................................................................................556
16.1.1 List of Serial Interface 7 Functions............................................................................556
16.1.2 List of Serial Interface 7 Interrupt Groups .................................................................558
16.1.3 List of Serial Interface 7 Ports ...................................................................................558
16.2 Serial Interface 7 Control Registers ....................................................................................559
16.3 Clock Specification ..............................................................................................................562
16.3.1 Clock Source.............................................................................................................564
16.3.2 Transfer Clock of Clock-Synchronous Communication.............................................565
16.3.3 Transfer Clock of UART ............................................................................................566
16.3.4 Transfer Clock of IIC .................................................................................................566
16.4 Clock-Synchronous Communication ...................................................................................569
16.4.1 Communication Function of Clock-Synchronous ......................................................569
16.4.2 Communication Timing of Clock-Synchronous ........................................................583
16.4.3 Example of Clock-Synchronous Communication Setting..........................................588
16.5 UART Communication.........................................................................................................595
16.5.1 Communication Functions of UART..........................................................................595
16.5.2 Communication Timing of UART ..............................................................................602
16.5.3 Example of UART Communication Setting ..............................................................604
16.6 IIC Communication..............................................................................................................609
16.6.1 Communication Function of IIC.................................................................................609
16.6.2 IIC Communication Flowchart ...................................................................................621
16.6.3 Example of IIC Communication Setting ...................................................................632
16.6.4 Access Timing of IIC .................................................................................................659
17. SMBus Interface .............................................................................. 661
KM1M7BF00/02 Series
June 30.2023 Page 12 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
17.1 Overview of SMBus Interface..............................................................................................662
17.1.1 List of SMBus Interface Functions ............................................................................662
17.1.2 List of SMBus Interface Clocks .................................................................................663
17.1.3 List of SMBus Interface Interrupt Groups..................................................................663
17.1.4 List of SMBus Interface Ports....................................................................................663
17.1.5 SMBus Interface Block Diagram ...............................................................................664
17.2 SMBus Interface Control Registers .....................................................................................665
17.3 Clock Specification ..............................................................................................................666
17.4 SMBus Communication.......................................................................................................667
17.4.1 Communication Function of SMBus..........................................................................667
17.4.2 Setting Example of SMBus (At Slave Communication).............................................675
17.4.3 Setting Example of SMBus (At Master Communication)...........................................683
18. LIN Controller................................................................................... 689
18.1 Overview of LIN Controller ..................................................................................................690
18.1.1 List of LIN Controller Functions.................................................................................690
18.1.2 List of LIN Controller Interrupt Groups ......................................................................691
18.1.3 List of LIN Controller Ports ........................................................................................691
18.1.4 LIN Controller Block Diagram....................................................................................692
18.2 Control Registers of LIN Controller .....................................................................................693
18.3 Details of LIN Controller ......................................................................................................694
18.3.1 Function of LIN Communication................................................................................694
18.3.2 Operation Timing of LIN Communication ..................................................................697
18.3.3 Setting example of LIN communication ....................................................................700
19. A/D Converter .................................................................................. 705
19.1 Overview of A/D Converter..................................................................................................706
19.1.1 List of A/D Converter Functions ................................................................................706
19.1.2 List of A/D Conversion Clocks...................................................................................707
19.1.3 List of A/D Converter Interrupt Groups......................................................................707
19.1.4 List of A/D Converter Ports .......................................................................................708
19.1.5 A/D Converter Block Diagram ...................................................................................710
19.2 A/D Converter Control Registers.........................................................................................711
19.3 A/D Converter Functions .....................................................................................................718
19.3.1 A/D Conversion Operation ........................................................................................718
19.3.2 A/D Conversion Time ................................................................................................720
19.3.3 A/D Conversion Mode ...............................................................................................723
19.3.4 Conversion Start Trigger Reduction Function ...........................................................725
19.3.5 A/D Conversion Error Detection Function .................................................................726
19.3.6 A/D Conversion State Output Function .....................................................................727
19.3.7 A/D Fault Check Function .........................................................................................728
19.4 Examples of the A/D Converter Settings.............................................................................729
19.4.1 Example of the One-time Conversion Mode settings................................................729
19.4.2 Example of the Continuous Conversion Mode settings ............................................731
19.4.3 Example of Multi A/D Converter Concurrent Conversion settings. ...........................733
KM1M7BF00/02 Series
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
June 30.2023 Page 13 of 857 Rev 1.7
19.5 Notes on Using the A/D Converter ......................................................................................736
19.5.1 Anti-noise Measures .................................................................................................736
19.5.2 Recommended Circuit for Using the A/D Converter .................................................736
20. D/A Converter .................................................................................. 739
20.1 Overview of D/A Converter..................................................................................................740
20.1.1 List of D/A Converter Functions ................................................................................740
20.1.2 D/A Converter Block Diagram ...................................................................................741
20.2 Control Registers of D/A Converter.....................................................................................742
20.3 D/A Converter Functions .....................................................................................................744
20.3.1 Operation of D/A Conversion ....................................................................................744
21. Comparator ...................................................................................... 745
21.1 Overview of Comparator .....................................................................................................746
21.1.1 List of Comparator Functions ....................................................................................746
21.1.2 List of Comparator Interrupt Groups .........................................................................748
21.1.3 List of Comparator Ports ...........................................................................................748
21.1.4 Comparator Block Diagram.......................................................................................750
21.2 Control Registers of Comparator.........................................................................................751
21.3 Details of Comparator .........................................................................................................752
21.3.1 Specification of Comparator......................................................................................752
21.3.2 Setting Example of Comparator ................................................................................757
22. VGA (Variable Gain Amplifier)........................................................ 759
22.1 Overview of VGA.................................................................................................................760
22.1.1 List of VGA Functions ...............................................................................................760
22.1.2 List of VGA Ports.......................................................................................................760
22.1.3 List of VGA Output ....................................................................................................761
22.1.4 VGA Block Diagram ..................................................................................................762
22.2 VGA Control Registers ........................................................................................................763
22.3 Details of VGA.....................................................................................................................764
22.3.1 Specification of VGA .................................................................................................764
22.3.2 Setting Example of VGA ...........................................................................................765
22.3.3 Cautions of VGA .......................................................................................................766
23. Multi Feedback Assist..................................................................... 767
23.1 Overview of Multi Feedback Assist Functions.....................................................................768
23.1.1 The List of Multi Feedback Assist Functions.............................................................768
23.1.2 The Block Diagrams of Multi Feedback Assist Functions .........................................769
23.2 Control Registers for Multi Feedback Assist Functions.......................................................771
23.3 Synchronous Start Control Function ...................................................................................776
23.3.1 The Specifications of Synchronous Start Control Function.......................................776
23.3.2 The Operation Timing of Synchronous Start Control Function..................................777
23.3.3 A Setting Example of Synchronous Start Control Function.......................................778
23.4 Conflict Detection/Auto Avoidance Functions .....................................................................779
KM1M7BF00/02 Series
June 30.2023 Page 14 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
23.4.1 The Specifications of Conflict Detection/Auto Avoidance Functions.........................779
23.4.2 The Operation Timing of Conflict Detection/Auto Avoidance Functions....................782
23.4.3 A Setting Example of Conflict Detection/Auto Avoidance Functions.........................783
23.5 Blanking Function................................................................................................................785
23.5.1 The Specifications of the Blanking Function .............................................................785
23.5.2 The Operation Timing of Blanking Function ..............................................................785
23.5.3 A Setting Example of Blanking Function ...................................................................787
24. Power Supply Voltage Detection.................................................... 789
24.1 Overview of Power Supply Voltage Detection .....................................................................790
24.2 Power Supply Voltage Detection Control Register ..............................................................791
24.3 Detail of Power Supply Voltage Detection...........................................................................792
24.3.1 Specification of Power Supply Voltage Detection .....................................................792
24.3.2 Setting Examples of Power Supply Voltage Detection..............................................794
25. Watchdog Timer............................................................................... 797
25.1 Overview of Watchdog Timer ..............................................................................................798
25.1.1 List of Watchdog Timer Functions.............................................................................798
25.1.2 List of Watchdog Timer Interrupt Group ....................................................................798
25.1.3 Watchdog Timer Block Diagram................................................................................799
25.2 Watchdog Timer Control Registers .....................................................................................800
25.3 Detail of Watchdog Timer ....................................................................................................801
25.3.1 Specification of Watchdog Timer Overflow Detect Function .....................................801
25.3.2 Setting Example of Watchdog Timer Overflow Detect Function ...............................807
26. CRC Calculation Circuit.................................................................. 809
26.1 Overview of CRC Caluculation Function .............................................................................810
26.1.1 List of CRC Caluculation Function ............................................................................810
26.1.2 Block Diagram of CRC Caluculation Function ..........................................................811
26.2 Control Registers of CRC Caluculation Function ................................................................814
26.3 Setting Example of CRC Caluculation Function..................................................................815
27. Clock Monitoring Circuit................................................................. 817
27.1 Overview of Clock Monitoring Function...............................................................................818
27.1.1 Outline Specification of Clock Monitoring Function...................................................818
27.1.2 Outline of Clock Monitoring Interrupt Group..............................................................819
27.1.3 Clock Monitoring Circuit Block Diagram....................................................................819
27.2 Clock Monitoring Control Register.......................................................................................820
27.3 Detail of Clock Monitoring Function.....................................................................................821
27.3.1 Specification of Clock Monitoring Function ...............................................................821
27.3.2 Setting Example of Clock Monitoring Function .........................................................824
28. Internal Flash Memory .................................................................... 833
28.1 Overview of Internal Flash Memory.....................................................................................834
KM1M7BF00/02 Series
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
June 30.2023 Page 15 of 857 Rev 1.7
28.1.1 Outline Specification of Internal Flash Memory.........................................................834
28.1.2 Flash Memory Rewriting Method ..............................................................................835
28.1.3 Flash Memory Area...................................................................................................836
28.1.4 Data Protection Function...........................................................................................838
28.1.5 Sector Swap Function ...............................................................................................839
28.2 Flash Memory Control Registers.........................................................................................840
28.3 Rewriting Function...............................................................................................................842
28.3.1 Execution Method for rewriting..................................................................................842
28.3.2 Procedures for Rewriting...........................................................................................843
28.3.3 Details of Rewriting Commands................................................................................844
29. Debug Interface ............................................................................... 847
29.1 Overview of Debug Interface...............................................................................................848
29.1.1 Port List of Debug Interface ......................................................................................848
29.2 Control Register of Debug Interface ...................................................................................849
29.3 Setting of Trace Clock .........................................................................................................849
29.4 Pin Connection of Serial Programmer / On-board Debugger..............................................850
KM1M7BF00/02 Series
June 30.2023 Page 16 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
1. Overview
KM1M7BF00/02 Series
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
June 30.2023 Page 17 of 857 Rev 1.7
1.1 Overview
The KM1M7 function is a 32-bit micro controller with internal Flash memory. It is intended for develop-
ment of the C programming language with object-oriented program and is easy to use. It has fast
feedback processing required for control of power supply and motor.
This LSI adopts the Arm Cortex-M7 to the 32-bit micro controller part and are equipped with internal
memory(Flash and RAM) to instruction / data, DMA controller, clock generator, bus controller, interrupt
controller, standard peripheral circuits (timer and serial interface and so on), PWM control circuit
specialized for power supply and motor control, and high accuracy / high speed analog circuit.
As system safety design, this LSI has the various safety mechanisms (Memory-ECC, clock error
detection, power supply voltage detection, window watchdog timer, etc.).
1.2 Product Summary
The LSI shown in Table 1.2-1 is described in this manual.
Table 1.2-1 Product Summary
LSI series LSI product num-
ber Pins
ROM [KB] RAM [KB]
VGA Package
Instruc-
tion Data Instruc-
tion Data
KM1M7BF0
series
KM1M7BF00N
144
512
64 64
64
Ο
144 pins HQFP
20 mm x 20 mm
KM1M7BF00M 384 48
KM1M7BF00K 256 32
KM1M7BF02N
100
512 64
100pins HQFP
14 mm x 14 mm
KM1M7BF02M 384 48
KM1M7BF02K 256 32
KM1M7BF00/02 Series
June 30.2023 Page 18 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
1.2.1 Function Summary
Table 1.2-2 shows the functions of each product.
Table 1.2-2 The List of Function
Function 144 pins 100 pins
CPU Arm Cortex-M7
General purpose pin 123 82
Operation mode Active mode NORMAL
Standby mode SLEEP, DEEPSLEEP
Debugger I/F Interface SWD
DMA Module/CH number 2 / 16
Interrupt External interrupt 20 18
Timer
16-bit timer
(timer 0 to 13) 14
16-bit timer
(timer 20 to 25) 6
Power control PWM
(GPWM 0 to B) 12 10
Noise filter Target pin External interrupt, Timer input
Communication I/F
Clock synchronous/IIC
(serial 0) 1
Clock synchronous/UART/LIN
(serial 1) 1
Clock synchronous/UART
(serial 2, 5, 6) 3 2
Clock synchronous/SPI/UART
(serial 3 ,4) 2
Clock synchronous/SPI/
UART/IIC
(serial 7)
1
SM Bus 1 -
12-bit A/D
AD0 CH number 16 12
AD1 CH number 16 11
AD2 CH number 16 13
Total CH number 32 23
Programmable gain amplifi-
er(VGA) Module number/CH number 5 / 5
Comparator Module number/CH number 10 / 5
8-bit D/A Module number
10 (for generating comparator reference
voltage)
5 (for generating VGA reference voltage)
10-bit D/A Module number/CH number 2 / 2
KM1M7BF00/02 Series
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
June 30.2023 Page 19 of 857 Rev 1.7
Function 144 pins 100 pins
Safety function
Flash memory ECC, Data protection
RAM ECC
Access area MPU (Area management, Protection), Reg-
ister protect (Protection)
System Window watchdog timer
Clock Clock monitoring (External oscillation, PLL
error detection)
Communication CRC caluculation function
A/D converter A/D converter error detection
Power supply voltage POR, Power supply voltage detection
Reset Detection of reset factor immediately before
by reset factor register
KM1M7BF00/02 Series
June 30.2023 Page 20 of 857 Rev 1.7
KM1M7BF00/02 Series Technical Reference Manual Vol. 1
/