參數(shù)資料
型號: UPSD33XX
廠商: 意法半導體
英文描述: Fast 8032 MCU with Programmable Logic
中文描述: 8032微控制器的快速可編程邏輯
文件頁數(shù): 108/231頁
文件大?。?/td> 1805K
代理商: UPSD33XX
第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頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁第221頁第222頁第223頁第224頁第225頁第226頁第227頁第228頁第229頁第230頁第231頁
uPSD33xx
108/231
I
2
C Operating Sequences
The following pseudo-code explains hardware
control for these I
2
C functions on the uPSD33xx:
Initialize the Interface
Function as Master-Transmitter
Function as Master-Receiver
Function as Slave-Transmitter
Function as Slave-Receiver
Interrupt Service Routine
Full C code drivers for the uPSD33xx I
2
C inter-
face, and other interfaces are available from the
web at www.st.com\psm.
Initialization after a uPSD33xx reset
Ensure pins P3.6 and P3.7 are GPIO in-
puts
SFR P3.7 = 1 and SFR P3.6 = 1
Configure pins P3.6 and P3.7 as I
2
C
SFR P3SFS.6 = 1 and P3SFS.7 = 1
Set I
2
C clock prescaler to determine
f
SCL
SFR S1CON.CR[2:0] = desired SCL
freq.
Set bus START condition sampling
SFR S1SETUP[7:0] = number of sam-
ples
Enable individual I
2
C interrupt and
set priority
SFR IEA.I2C = 1
SFR IPA.I2C = 1 if high priority is
desired
Set the Device address for Slave mode
SFR S1ADR = XXh, desired address
Enable SIOE (as Slave) to return an
ACK signal
SFR S1CON.AA = 1
Master-Transmitter
Disable all interrupts
SFR IE.EA = 0
Set pointer to global data xmit buff-
er, set count
*xmit_buf = *pointer to data
buf_length = number of bytes to
xmit
Set global variables to indicate Mas-
ter-Xmitter
I2C_master = 1, I2C_xmitter = 1
Disable Master from returning an ACK
SFR S1CON.AA = 0
Enable I2C SIOE
SFR S1CON.INI1 = 1
Transmit Address and R/W bit = 0 to
Slave
Is bus not busy (SFR S1STA.BBUSY
= 0)
<If busy, then test until not busy>
SFR S1DAT[7:0] = Load Slave Ad-
dress & FEh
SFR S1CON.STA = 1, send START on
bus
<bus transmission begins>
Enable All Interrupts and go do some-
thing else
SFR IE.EA = 1
Master-Receiver
Disable all interrupts
SFR IE.EA = 0
Set pointer to global data recv buff-
er, set count
*recv_buf = *pointer to data
buf_length = number of bytes to
recv
Set global variables to indicate Mas-
ter-Xmitter
I2C_master = 1, I2C_xmitter = 0
Disable Master from returning an ACK
SFR S1CON.AA = 0
Enable I2C SIOE
SFR S1CON.INI1 = 1
Transmit Address and R/W bit = 1 to
Slave
Is bus not busy (SFR S1STA.BBUSY
= 0)
<If busy, then test until not busy>
SFR S1DAT[7:0] = Load Slave Ad-
dress # 01h
SFR S1CON.STA = 1, send START on
bus
<bus transmission begins>
Enable All Interrupts and go do some-
thing else
SFR IE.EA = 1
相關PDF資料
PDF描述
uPSD3412C-24U6T Flash Programmable System Devices with 8032 Microcontroller Core and 16Kbit SRAM
UPSD3422EV Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic(帶有USB和可編程邏輯的Turbo Plus系列快速Turbo 8032 MCU)
UPSD3434EV Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic(帶有USB和可編程邏輯的Turbo Plus系列快速Turbo 8032 MCU)
UPSD3432 Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
UPSD3432E Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
相關代理商/技術參數(shù)
參數(shù)描述
UPSD3422E-40T6 功能描述: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
UPSD3422E-40U6 功能描述: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
UPSD3422EB40T6 功能描述:8位微控制器 -MCU Turbo 8032 MCU w/USB & Programmable Logic 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
UPSD3422EB40U6 功能描述:8位微控制器 -MCU uPSD34x Turbo Plus Fast Turbo 8032 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
UPSD3422EV-40T6 功能描述: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