English
Language : 

ST7MC1XX Datasheet, PDF (234/309 Pages) STMicroelectronics – 8-bit MCU with nested interrupts, Flash, 10-bit ADC, brushless motor control, five timers, SPI, LINSCI™
ST7MC1xx/ST7MC2xx
OP-AMP MODULE (Cont’d)
10.7.5 Op-Amp Programming
The flowchart for Op-Amp operation is shown in
Figure 126
Figure 126. Normal Op-Amp Operation
Power On Reset
OACSR = 0000 0000
External components always connected
(1)
Write OACSR = x0010xx0
Wait for Amplifier to wake up (Twakeup)
(4)
Write OACSR = x0p1 pxx0
p : same as before
Yes
Compensation Offset ? No
Yes
No
Average Compensation ?
(2a)
Write OACSR = x111 0xx0
Wait for 24576*TCPU cycles
Read CMPOVR = 1
(2b)
Write OACSR = x101 0xx0
Wait for 1536*TCPU cycles
Read CMPOVR = 1
#OFFCMP & AVGCMP
should be set simultenaously
Need
closed loop gain > 20dB @ 100kHz ?
Yes
Yes
Re-compensate
Offset ?
No
Op-Amp useable
(3) #
Write OACSR = x1p1 1xx0
p : same as before
No
#The HIGHGAIN bit can also be written in step (1) or (2)
234/309