This example demonstrates the programming of the device. The
recommended sequence for programming is shown in the Addi-
tional Guidelines section, but for this example, we start at setting
the register for Fine Duty Cycle and then go on to final locking of
the device.
To find the correct duty cycle value:
1. Power-on the system.
This resets all unprogrammed bits in all registers to 0. The
device enters the Initial state.
2. Send one VPH pulse to enter the Mode Select state.
3. Send two VPM pulses to select the Try mode.
4. Send two VPH pulses to enter the Register Select state.
5. Send two VPM pulses to select the Fine D
(Q)
register.
6. Send one VPH pulse to enter the Bitfield Select state.
The Fine D
(Q)
register is reset to 000000000.
7. For this example, send one hundred and twenty-eight VPM
pulses to set bitfield 7 (010000000, decimal 128).
Now we can measure the device output to see if this is the
required value. Assume for this example that the value is slightly
too low. So we proceed to change it, as follows:
8. Send one VPM pulse to increment the Fine D
(Q)
code by 1.
This yields a total register value of 129 by setting bitfield 0:
010000001.
Assume we measure the device and find this is the correct duty
cycle value we require. We are finished trying values for this
parameter, and now want to set the value permanently by blowing
the corresponding bitfield fuses. Blowing fuses is done one bit-
field (one fuse) at a time. We are setting two bitfields, so we have
to blow them in two stages:
9. Reset the device by powering it off and on.
The device returns to the Initial state.
10. Send one VPH pulse to enter the Mode Select state.
11. Send one VPM pulse to select the Blow mode.
12. Send two VPH pulses to enter the Register Select state.
13. Send two VPM pulses to select the Fine D
(Q)
register.
14. Send one VPH pulse to enter the Bitfield Select state.
The Fine D
(Q)
register is reset to 000000000.
15. Send one hundred and twenty-eight VPM pulses to set bit-
field 7. (The bitfields can be set in any order.)
16. Send one VPH pulse to exit the Bitfield Select state.
The bitfield fuse is blown.
One of the two bitfields is programmed. Now we program the
other bitfield:
17. Repeat steps 9 to 14 to select the Fine D
(Q)
register again and
enter the Bitfield Select state. This time, however, the register
resets to 010000000, because bit 7 has been permanently set.
18. Send one VPM pulse to set bit 0.
19. Send one VPH pulse to exit the Bitfield Select state.
The bitfield fuse is blown.
Program the remaining parameter by repeating the above steps.
After programming all parameters, we can lock the device:
20. Reset the device by powering it off and on. The device returns
to the Initial state.
21. Send one VPH pulse to enter the Mode Select state.
22. Send one VPM pulse to select the Lock mode.
23. Send two VPH pulses to enter the Register Select state.
24. Send five VPM pulses to select the LOCK register. The regis-
ter resets either to 0000000000, or to 0000010000 if Calibra-
tion Test mode has been previously enabled.
25. Send one VPH pulse to enter the Bitfield Select state.
26. Send five hundred and twelve VPM pulses to set the LOCK
bit, bitfield 9.
27. Send one VPH pulse to exit the Bitfield Select state. The bit-
field fuse is blown. Programming of the device is complete.
Optionally, test the results, or power-off the device.
Programming Example
High Precision 2-Wire Linear Hall Effect Sensor IC
with Pulse Width Modulated Output
A1354
19
Allegro MicroSystems, Inc.
115 Northeast Cutoff
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com