Rev. 1.00 9 of 290 April 27, 2023
32-Bit Arm® Cortex®-M0+ Li-Battery Protection MCU
HT32F61630
Table of Contents
Table of Contents
Functional Descriptions ..................................................................................................... 225
Two-Wire Serial Interface ............................................................................................................. 225
START and STOP Conditions ....................................................................................................... 225
Data Validity .................................................................................................................................. 226
Addressing Format ....................................................................................................................... 226
Data Transfer and Acknowledge ................................................................................................... 227
General Call Addressing ............................................................................................................... 227
Bus Error ....................................................................................................................................... 227
Address Snoop ............................................................................................................................. 227
Operation Mode ............................................................................................................................ 227
Conditions of Holding SCL Line .................................................................................................... 231
I2C Timeout Function .................................................................................................................... 232
Register Map ..................................................................................................................... 232
Register Descriptions ......................................................................................................... 233
I2C Control Register – I2CCR ....................................................................................................... 233
I2C Interrupt Enable Register – I2CIER ........................................................................................ 234
I2C Address Register – I2CADDR ................................................................................................. 236
I2C Status Register – I2CSR ......................................................................................................... 237
I2C SCL High Period Generation Register – I2CSHPGR .............................................................. 240
I2C SCL Low Period Generation Register – I2CSLPGR ............................................................... 241
I2C Data Register – I2CDR ........................................................................................................... 242
I2C Target Register – I2CTAR ....................................................................................................... 243
I2C Address Snoop Register – I2CADDSR ................................................................................... 244
I2C Timeout Register – I2CTOUT.................................................................................................. 245
18 Serial Peripheral Interface (SPI) ...................................................................... 246
Introduction ........................................................................................................................ 246
Features ............................................................................................................................. 247
Functional Descriptions ..................................................................................................... 247
Master Mode ................................................................................................................................. 247
Slave Mode ................................................................................................................................... 247
SPI Serial Frame Format .............................................................................................................. 247
Status Flags .................................................................................................................................. 251
Register Map ..................................................................................................................... 253
Register Descriptions ......................................................................................................... 253
SPI Control Register 0 – SPICR0 ................................................................................................. 253
SPI Control Register 1 – SPICR1 ................................................................................................. 255
SPI Interrupt Enable Register – SPIIER ....................................................................................... 257
SPI Clock Prescaler Register – SPICPR ...................................................................................... 258
SPI Data Register – SPIDR .......................................................................................................... 259
SPI Status Register – SPISR ........................................................................................................ 260
SPI FIFO Control Register – SPIFCR ........................................................................................... 261
SPI FIFO Status Register – SPIFSR ............................................................................................ 262
SPI FIFO Time Out Counter Register – SPIFTOCR ..................................................................... 263