FUNCTIONAL DEVICE OPERATION
LOGIC COMMANDS AND REGISTERS
IC Initialization
Here is a possible flow to initialize the IC and its software environment.
1. Apply power (VBAT) to module
1.1. This doesn’t wake-up the IC because VPUMP isn’t powered. VBAT current will be low because it will only be leakage
and the small hold off bias current.
2. Power-up VPUMP
2.1. No changes will occur until RST rises
3. Remove RST (EN1 and EN2 are still low)
3.1. As the module powers up, RST will rise, allowing the IC to power-up. The charge pump will start, and VPWR and VLS
will stabilize.
3.2. VDD will rise as the internal regulator charges the external reservoir capacitor and the IC will come out of reset.
3.3. Initialize interrupt handler for MCU
3.4. Interrupt will occur because of the RESET (Interrupt processing will occur here)
4. Initialize registers
4.1. Initialize MASK register by sending 0010 xxxx or 0011 xxxx to mask out unwanted interrupts.
4.2. Send MODE command with desired bits, and also the Lock bit. e.g. 01000001. This prevents further mode changes.
5. Bring EN1 & EN2 high
5.1. This fully enables the IC
MAIN LOOP
1. While (forever)
1.1. Send SPI messages (except NULL1-3), read results
1.2. If sending NULL1-3 messages, use a semaphore to detect interrupts
1.2.1. Set Semaphore flag in RAM
1.2.2. Send NULL1-3
1.2.3. Send NULL0, read SR1-3
1.2.4. If Semaphore is still set, then result is good, else go to 1.2.1 (because an interrupt has gotten in the way)
1.2.5. Clear semaphore
2. END
Interrupt Handler
When an interrupt occurs, the general procedure is to send NULL0 and NULL1 commands to determine what happened, take
corrective action (if needed), clear the fault and return.
Because the return value from a SPI command is actually returned in the subsequent message, main-loop software that tries
to read SR1, SR2 or SR3, may experience an interrupt between sending the SPI command and the subsequent read. Thus if
these registers are to be read, special care must be taken in the software to ensure that the correct results are being interpreted.
1. Interrupt Service Routine:
1.1. Disable further interrupts from 33927
1.2. Clear semaphore in 1.2.1 of Main loop. This indicates to the main loop that an interrupt occurred and that the return
value it gets may not be as expected.
1.3. Send NULL0 Command. Ignore return value, since this will have been associated with some unknown previous
command
1.4. Send NULL0 Command. The return value will be SR0 from the previous NULL0 command
2. Process Bits in SR0 and correct any faults
3. Send CLINT0 command to clear known (i.e. processed faults from SR0) faults 0:3
4. Send CLINT1 command to clear processed faults 4:7. Note, the return SR0 register from this command is actually read in
the main routine.
5. Re-enable interrupts from the 33927
6. Return
33927
Analog Integrated Circuit Device Data
Freescale Semiconductor
35
相关PDF资料
MCZ33937EKR2 IC PRE-DRIVER 3PHASE 54-SOIC
MDN2BL3GRAS MOTOR BRUSHED DC 2V 2753RPM
MDN3BL3CSAS MOTOR BRUSHED DC 2V 1458RPM
MIC2287-34YML TR IC LED DRIVER WHITE BCKLGT 8-MLF
MIC2289C-34YD6 TR IC LED DRIVR WHITE BCKLGT TSOT-6
MIC2291YD5 TR IC LED DRIVER PHOTO FLASH TSOT-5
MIC2293-15YML TR IC LED DRIVER WHITE BCKLGT 8-MLF
MIC2293C-34YML TR IC LED DRIVER WHITE BCKLGT 8-MLF
相关代理商/技术参数
MCZ33927EK/R2 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Three-Phase Field Effect Transistor Pre-Driver
MCZ33927EKR2 功能描述:功率驱动器IC THREE PHASE PRE- DRIVER RoHS:否 制造商:Micrel 产品:MOSFET Gate Drivers 类型:Low Cost High or Low Side MOSFET Driver 上升时间: 下降时间: 电源电压-最大:30 V 电源电压-最小:2.75 V 电源电流: 最大功率耗散: 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:SOIC-8 封装:Tube
MCZ33927R2 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Three-Phase Field Effect Transistor Pre-Driver
MCZ33937AEK 功能描述:马达/运动/点火控制器和驱动器 3 Phase Pre-Driver RoHS:否 制造商:STMicroelectronics 产品:Stepper Motor Controllers / Drivers 类型:2 Phase Stepper Motor Driver 工作电源电压:8 V to 45 V 电源电流:0.5 mA 工作温度:- 25 C to + 125 C 安装风格:SMD/SMT 封装 / 箱体:HTSSOP-28 封装:Tube
MCZ33937AEK/R2 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Three Phase Field Effect Transistor Pre-driver
MCZ33937AEKR2 功能描述:马达/运动/点火控制器和驱动器 3 Phase Pre-Driver RoHS:否 制造商:STMicroelectronics 产品:Stepper Motor Controllers / Drivers 类型:2 Phase Stepper Motor Driver 工作电源电压:8 V to 45 V 电源电流:0.5 mA 工作温度:- 25 C to + 125 C 安装风格:SMD/SMT 封装 / 箱体:HTSSOP-28 封装:Tube
MCZ33937EK 功能描述:功率驱动器IC THREE PHASE PRE DRIVER RoHS:否 制造商:Micrel 产品:MOSFET Gate Drivers 类型:Low Cost High or Low Side MOSFET Driver 上升时间: 下降时间: 电源电压-最大:30 V 电源电压-最小:2.75 V 电源电流: 最大功率耗散: 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:SOIC-8 封装:Tube
MCZ33937EK/R2 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Three Phase Field Effect Transistor Pre-driver