advertisement
ISD91200 Series Technical Reference Manual
Detection Time Multiplex Register (BOD_BODDTMR)
The BOD detector can be set up to take periodic samples of the supply voltage to minimize power consumption. The circuit can be configured and used in Standby Power Down (SPD) mode and can wake up the device if a BOD is event detected. The detection timer uses the OSC10k oscillator as time base so this oscillator must be active for timer operation. When active the BOD circuit requires ~165uA.
With default timer settings, average current reduces to 500nA
165uA*DURTON/(DURTON+DURTOFF).
Register
BOD_BODDTMR
Offset
BOD_BA+0x10
R/W Description
R/W Brown Out Detector Timer Register
Reset Value
0x0003_03E3
Table 5-61 Detection Time Multiplex Register (BOD_BODDTMR, address 0x4008_4010)
31 30 29 28 27 26 25
Reserved
23
15
22
14
Reserved
21
13
20 19 18 17
DURTON[3:0]
10 9
7 6 5
12 11
DURTOFF[15:8]
4 3
DURTOFF[7:0]
2 1
Bits
[31:20]
Description
Reserved
[19:16]
[15:0]
DURTON
DURTOFF
Reserved.
Time BOD Detector Is Active
(DURTON+1) * 100us. Minimum value is 1. (default is 400us)
Time BOD Detector Is Off
(DURTOFF+1)*100us . Minimum value is 7. (default is 99.6ms)
24
16
8
0
5.6 I2C Serial Interface Controller (Master/Slave)
5.6.1 Introduction
I2C is a two-wire, bi-directional serial bus that provides a simple and efficient method of data exchange between devices. The I2C standard is a true multi-master bus including collision detection and arbitration that prevents data corruption if two or more masters attempt to control the bus simultaneously. Serial, 8-bit oriented, bi-directional data transfers can be made up 1.0 Mbps.
Data is transferred between a Master and a Slave synchronously to SCL on the SDA line on a byte-bybyte basis. Each data byte is 8 bits long. There is one SCL clock pulse for each data bit with the MSB being transmitted first. An acknowledge bit follows each transferred byte. Each bit is sampled during the high period of SCL; therefore, the SDA line may be changed only during the low period of SCL and must be held stable during the high period of SCL. A transition on the SDA line while SCL is high is interpreted as a command (START or STOP).
- 148 -
Release Date: Sep 16, 2019
Revision 2.4
ISD91200 Series Technical Reference Manual
STOP START
Repeated
START STOP
SDA t
BUF t
LOW t r t f
SCL t
HD;STA t
HIGH t
HD;DAT t
SU;DAT t
SU;STA t
SU;STO
Figure 5-9 I2C Bus Timing
The device’s on-chip I2C logic provides the serial interface that meets the I2C bus standard mode specification. The I2C port handles byte transfers autonomously. To enable this port, the bit I2CEN in
I2C_CTL should be set to '1'. The I2C H/W interfaces to the I2C bus via two pins: I2C_SDA and
I2C operation as these are open drain pins.
The I2C bus uses two wires (SDA and SCL) to transfer information between devices connected to the bus. The main features of the bus are:
Master/Slave up to 1Mbit/s
Bidirectional data transfer between masters and slaves
Multi-master bus (no central master)
Arbitration between simultaneously transmitting masters without corruption of serial data on the bus
Serial clock synchronization allows devices with different bit rates to communicate via one serial bus
Serial clock synchronization can be used as a handshake mechanism to suspend and resume serial transfer
Built-in a 14-bit time-out counter will request the I2C interrupt if the I2C bus hangs up and timerout counter overflows.
External pull-up are needed for high output
Programmable clocks allow versatile rate control
Supports 7-bit addressing mode
I2C-bus controllers support multiple address recognition ( Four slave address with mask option)
5.6.1.1 I
2
C Protocol
Normally, a standard communication consists of four parts:
1) START or Repeated START signal generation
2) Slave address transfer
3) Data transfer
4) STOP signal generation
- 149 -
Release Date: Sep 16, 2019
Revision 2.4
ISD91200 Series Technical Reference Manual
SCL
1 2 7 8 9 1 2 3 - 7 8 9
P
SDA
S or
Sr
A6
MSB
A5 A4 - A1 A0 R/W
LSB
ACK D7
MSB
D6 D5 - D1 D0
LSB
NACK
ACK
Figure 5-10 I2C Protocol
5.6.1.2 Data transfer on the I2C-bus
A master-transmitter always begins by addressing a slave receiver with a 7-bit address. For a transaction where the master-transmitter is sending data to the slave, the transfer direction is not changed, master is always transmitting and slave acknowledges the data.
P or
Sr
Sr
S SLAVE ADDRESS R/W A DATA A DATA A/A P data transfer
(n bytes + acknowledge)
'0'(write) from master to slave from slave to master
A = acknowledge (SDA low)
A = not acknowledge (SDA high)
S = START condition
P = STOP condition
Figure 5-11 Master Transmits Data to Slave
For a master to read data from a slave, master addresses slave with the R/W bit set to ‘1’, immediately after the first byte (address) is acknowledged by the slave the transfer direction is changed and slave sends data to the master and master acknowledges the data transfer.
S SLAVE ADDRESS R/W A DATA A DATA A P data transfer
(n bytes + acknowledge)
'1'(read)
Figure 5-12 Master Reads Data from Slave
5.6.1.3 START or Repeated START signal
When the bus is free/idle, meaning no master device is engaging the bus (both SCL and SDA lines are high), a master can initiate a transfer by sending a START signal. A START signal, usually referred to as the S-bit, is defined as a HIGH to LOW transition on the SDA line while SCL is HIGH. The START signal denotes the beginning of a new data transfer.
A Repeated START (Sr) is a START signal without first generating a STOP signal. The master uses this method to communicate with another slave or the same slave in a different transfer direction (e.g. from writing to a device to reading from a device) without releasing the bus.
STOP signal
The master can terminate the communication by generating a STOP signal. A STOP signal, usually referred to as the P-bit, is defined as a LOW to HIGH transition on the SDA line while SCL is HIGH.
- 150 -
Release Date: Sep 16, 2019
Revision 2.4
ISD91200 Series Technical Reference Manual
SCL
SDA
START condition STOP condition
Figure 5-13 START and STOP condition
5.6.1.4 Slave Address Transfer
The first byte of data transferred by the master immediately after the START signal is the slave address. This is a 7-bits calling address followed by a RW bit. The RW bit signals the slave the data transfer direction. No two slaves in the system can have the same address. Only the slave with an address that matches the one transmitted by the master will respond by returning an acknowledge bit by pulling the SDA low at the 9th SCL clock cycle.
5.6.1.5 Data Transfer
Once successful slave addressing has been achieved, the data transfer can proceed on a byte-by-byte basis in the direction specified by the RW bit sent by the master. Each transferred byte is followed by an acknowledge bit on the 9th SCL clock cycle. If the slave signals a Not Acknowledge (NACK), the master can generate a STOP signal to abort the data transfer or generate a Repeated START signal and start a new transfer cycle.
If the master, as the receiving device, does Not Acknowledge (NACK) the slave, the slave releases the
SDA line for the master to generate a STOP or Repeated START signal.
SCL
SDA data line stable; data valid change of data allowed
Figure 5-14 Bit Transfer on the I2C bus
- 151 -
Release Date: Sep 16, 2019
Revision 2.4
advertisement
Related manuals
advertisement
Table of contents
- 2 TABLE OF CONTENTS
- 9 GENERAL DESCRIPTION
- 10 FEATURES
- 14 PART INFORMATION AND PIN CONFIGURATION
- 14 Pin Configuration
- 15 Pin Description
- 20 BLOCK DIAGRAM
- 21 FUNCTIONAL DESCRIPTION
- 21 Cortex™-M0 core
- 23 System Manager
- 23 Overview
- 23 System Reset
- 24 System Power Distribution
- 25 System Memory Map
- 27 System Manager Control Registers
- 51 System Timer (SysTick)
- 55 Nested Vectored Interrupt Controller (NVIC)
- 101 System Control Registers
- 109 Clock Controller and Power Management Unit (PMU)
- 109 Clock Generator
- 110 System Clock & SysTick Clock
- 111 Peripheral Clocks
- 111 Power Management
- 113 Register Map
- 114 Register Description
- 131 General Purpose I/O
- 131 Overview and Features
- 131 GPIO I/O Modes
- 133 GPIO Control Register Map
- 134 Register Description
- 144 Brownout Detection and Temperature Alarm
- 144 Brownout Register Map
- 145 Brownout Register Description
- 148 I2C Serial Interface Controller (Master/Slave)
- 148 Introduction
- 152 Modes of Operation
- 153 Data Transfer Flow in Five Operating Modes
- 159 I2C Protocol Registers
- 162 Register Mapping
- 163 Register Description
- 170 PWM Generator and Capture Timer
- 170 Introduction
- 170 Features
- 172 PWM Generator Architecture
- 172 PWM-Timer Operation
- 174 PWM Double Buffering, Auto-reload and One-shot Operation
- 174 Modulate Duty Cycle
- 175 Dead-Zone Generator
- 176 Capture Timer Operation
- 177 PWM-Timer Interrupt Architecture
- 177 PWM-Timer Initialization Procedure
- 177 PWM-Timer Stop Procedure
- 178 Capture Start Procedure
- 179 Register Map
- 181 Register Description
- 198 Real Time Clock (RTC) Overview
- 198 RTC Features
- 199 RTC Block Diagram
- 199 RTC Function Description
- 202 Register Map
- 203 Register Description
- 216 Serial 0 Peripheral Interface (SPI0) Controller
- 216 Overview
- 216 Features
- 216 SPI0 Block Diagram
- 217 SPI0 Function Descriptions
- 227 SPI Timing Diagram
- 230 SPI Configuration Examples
- 232 Register Map
- 233 Register Description
- 248 Serial 1 Peripheral Interface (SPI1) Controller
- 248 Overview
- 248 Features
- 248 SPI1 Block Diagram
- 249 SPI1 Function Descriptions
- 255 SPI Timing Diagram
- 258 SPI Configuration Examples
- 260 Register Map
- 261 Register Description
- 272 Timer Controller
- 272 General Timer Controller
- 272 Features
- 272 Timer Controller Block Diagram
- 273 Register Map
- 274 Register Description
- 279 Watchdog Timer
- 281 Register Map
- 282 Register Description
- 284 UART Interface Controller
- 284 Overview
- 286 Features of UART controller
- 287 Block Diagram
- 289 IrDA Mode
- 291 LIN (Local Interconnection Network) mode
- 292 Register Map
- 293 Register Description
- 312 I2S Audio PCM Controller
- 312 Overview
- 312 Features
- 313 I2S Block Diagram
- 314 I2S Operation
- 315 FIFO operation
- 316 Register Map
- 317 Register Description
- 328 PDMA Controller
- 328 Overview
- 328 Features
- 328 Block Diagram
- 329 Function Description
- 330 Register Map
- 331 Register Description
- 350 Volume Control
- 350 Overview and feature
- 350 Volume Control Register Map
- 351 Volume Control register Description
- 354 FLASH MEMORY CONTROLLER (FMC)
- 354 Overview
- 354 Features
- 355 Flash Memory Controller Block Diagram
- 356 Flash Memory Organization
- 356 Boot Selection
- 357 Data Flash (DATAF)
- 358 User Configuration (CONFIG)
- 360 In-System Programming (ISP)
- 360 ISP Procedure
- 363 Register Map
- 364 Register Description
- 371 ANALOG SIGNAL PATH BLOCKS
- 371 Sigma- Delta Analog-to-Digital Converter (SDADC)
- 371 Functional Description
- 371 Features
- 371 Block Diagram
- 372 Operation
- 377 ADC Register Map
- 378 ADC Register Description
- 387 Audio Class D Speaker Driver (DPWM)
- 388 Functional Description
- 388 Features
- 388 Block Diagram
- 388 Operation
- 391 DPWM Register Map
- 392 DPWM Register Description
- 398 Analog Functional Blocks
- 398 Overview
- 398 Features
- 398 Register Map
- 399 VMID Reference Voltage Generation
- 400 LDO Power Domain Control
- 402 Microphone Bias
- 403 Oscillator Frequency Measurement and Control
- 409 Automatic Level Control (ALC)
- 409 Overview and Features
- 413 Register Map
- 414 Register Description
- 420 Capacitive Sensing Scan (CSCAN) and Operational Amplifiers
- 420 Overview and Features
- 420 Features
- 420 Operation
- 420 Operational Amplifier
- 423 Comparator
- 423 Register Map
- 424 Register Description
- 432 Biquad Filter (BIQ)
- 432 Overview and Features
- 433 Register Map
- 435 Register Description
- 440 Analog-to-Digital Convertor (SARADC)
- 440 Overview and Features
- 441 Block Diagram
- 441 Function description
- 447 Register Map
- 448 Register description
- 458 APPLICATION DIAGRAM
- 459 PACKAGE DIMENSIONS
- 459 64L LQFP (7x7x1.4mm footprint 2.0mm)
- 460 QFN 32L 4X4 mm2, Thickness: 0.8mm (Max), Pitch: 0.40mm
- 461 ORDERING INFORMATION
- 462 REVISION HISTORY