參數(shù)資料
型號: ST72F340S2T6
廠商: STMICROELECTRONICS
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP44
封裝: 10 X 10 MM, LEAD FREE, LQFP-44
文件頁數(shù): 37/191頁
文件大小: 3285K
代理商: ST72F340S2T6
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁當前第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁
ST72340, ST72344, ST72345
131/191
I2C3S INTERFACE (Cont’d)
This process continues until a Stop or Restart
condition occurs.
2. I2C3S attempts to read a word while the CPU is
updating the RAM buffer. To prevent data cor-
ruption, the CPU must switch operation to Word
mode prior to updating a word in the RAM
buffer. Word mode is enabled by software using
the B/W bit in the I2C3SCR2 register. In Word
mode, when the CPU writes the MSB of a word
to address 2n, it is stored in a shadow register
rather than being actually written in RAM. When
the CPU writes the second byte (the LSB) at
address 2n+1, it is directly written in RAM. The
next cycle after the write to address 2n+1, the
MSB is automatically written from the shadow
register to RAM address 2n. DMA is disabled
for a 1 cycle while the CPU is writing a word.
Word mode is disabled by hardware after the
word update is performed. It must be enabled
before each word update by CPU.
Use the following procedure when the ST7 writes
a word in RAM:
1. Disable interrupts
2. Enable Word mode by setting the B/W and
BusyW bits in the I2C3SCR2 register. BusyW
bit is set to 1 when modifying any bits in Control
Register 2. Writing a 1 to this bit does not actu-
ally modify BusyW but prevents accidental
clearing of the bit.
3. Write Byte 1 in an even address in RAM. The
byte is not actually written in RAM but in a
shadow register. This address must be within
the I2C RAM buffer of slave addresses 1, 2 or
3.
4. Write Byte 2 in the next higher address in RAM.
This byte is actually written in RAM. During the
next cycle, the shadow register content is writ-
ten in the lower address. The DMA request is
disabled during this cycle.
5. Byte mode resumes automatically after writing
byte 2 and DMA is re-enabled.
6. Enable interrupts
Note: Word mode does not guarantee byte-pair
coherency of words WRITTEN by the I2C master
in RAM and read by the ST7. Byte pair coherency
in this case must be handled by software.
Figure 70. 16-bit Word Write Operation Flowchart
SENDS ADDRESS
AND WRITE BIT
DECODES I2C3SNS ADDRESS
DECODES R/W BIT
SETS WRITE FLAG
SENDS WRITE ADDRESS
SENDS 1 BYTE OF DATA
STOP CONDITION
UPDATES CURRENT ADDRESS-
ISSUES DMA REQUEST
RESETS I2C3SNS WRITE FLAG
HALTS EXECUTION
RESUMES EXECUTION
SERVICES I2C3SNS INTERRUPT
READS I2C3SNS STATUS REGISTER
REGISTER
Y
N
DELAYS WHILE CPU
COMPLETES WORD WRITE
SETS BUSYW IN CONTROL -
WORD MODE?
HOST
ST7 CPU
ST7 I2C3SNS
Repeat
RAM start address depends on slave address
Byte-Pair Coherency ensured by setting Word Mode
NORMAL EXECUTION
Max
1 Cycle
WRITES ONE BYTE TO RAM
Max
1 Cycle
REGISTER + I2C3S DISABLED
ISSUES INTERRUPT
ENABLES I2C3SNS
UPDATES CONTROL REGISTER
相關PDF資料
PDF描述
ST72F340K2T6 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP32
ST72F345N4H6 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PBGA56
ST72F60E1M1 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PDSO24
ST72F60K2DIE1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, UUC
ST72F60K2DIE6 8-BIT, MROM, 8 MHz, MICROCONTROLLER, UUC
相關代理商/技術參數(shù)
參數(shù)描述
ST72F340S4T6 功能描述:8位微控制器 -MCU 8 BITS MICROCONTR RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
ST72F344K2T6 功能描述:8位微控制器 -MCU 8 BITS MICROCONTR RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
ST72F344K4T6 功能描述:8位微控制器 -MCU 8-BIT MCU RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
ST72F344K4T6TR 功能描述:8位微控制器 -MCU 8-bit MCU 16 Flash Memore RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
ST72F344S2T6 功能描述:8位微控制器 -MCU 8 BITS MICROCONTR RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT