iC-MH
12 BIT ANGULAR HALL ENCODER
Rev B1, Page 21/23
OTP Programming
CFGPROT
Adr 0x05; Bit 6
no protection
write/read protection
START
0
1
SET CONFIGURATION
SET CIBM = 0x0
Table 32: Write/read protection of configuration
With CFGPROT = ’0’, the registers at the addresses
0x00 to 0x0F and 0x78 to 0x7F are readable and write-
able. The addresses 0x10 to 0x1F and 0x77 are read-
only. With CFGPROT = ’1’, all registers except the ad-
dresses 0x7B and 0x7C are write-protected; the ad-
dresses 0x77 to 0x7F are readable, while all others
are read-protected.
START HW ZAP ALGORITHM
SET ADR 0x0F = 0x01
VPD = VPA = 5.0V
VERIFY
VPD = VPA = 5.5V
CIBM = 0x0
FALSE
FALSE
100nF
100nF
TRUE
SET CIBM
VERIFY
VPD = VPA = 4.0V
CIBM = 0xF
VPA
VPD
+5V
+7V
VZAP
Programming
Board
100nF
10uF
TRUE
+
MA
SLI
iC-MH
FALSE
Serial
Interface
CIBM programmed?
SLO
TRUE
STOP
0V
VNA
VND
Figure 26: Programming algorithm
Figure 25: Programming within system
Once the device has been successfully calibrated the
configuration can be written into the device. To this
end the contents of the RAM bits are transferred to
the ROM zapping structure. CIBM is first set to 0x0
at address 0x04 and the hardware programming algo-
rithm started by bit PROGZAP. Programming should
be monitored with the threshold settings for CIBM and
VPD, VPA voltage by reading out the ZAP structures
via the serial interface. If programming is not success-
ful, the hardware programming algorithm can again be
initiated. In the second stage of the procedure the bias
current is programmed in the CIBM register. Here, all
RAM bits are set to 0x00; register CIBM is configured
with the calculated calibration value and the program-
ming algorithm started. Programming is successful
when all bits have been configured.
An internal programming algorithm for the ZAP diodes
is started by setting the bit PROGZAP. This process
can only be successful, if the voltage difference be-
tween VZAP and VNA pin is within the specified value
and the test register is set to TEST = 0x00. Following
programming, the PROGZAP bit is reset automatically.
In the process, the bit PROGOK is set in the status reg-
ister (address 0x77) when programming is successful,
and the bit PROGERR, if it is not.
A 100 nF ceramic block capacitor must be placed on
board directly between VZAP and VNA pins of the iC-
MH. Also a 10 µF capacitor must be present at the
end of the programming line as close to the connec-
tor as possible (see figure 25). During programming
up to 100 mA flow from pin VZAP to pin VNA, making
it necessary to ensure proper PCB layout to minimize
voltage drops.