CS1630/31
PLC Start Char
Special Char
‘00’
‘01’
90°
90°
34°
90°
34°
62°
‘11’
‘10’
PLC Stop Char
146°
118°
90°
146°
90°
Figure 24. Power Line Calibration Mode Character Waveforms
5.10.2 PLC Program Mode Characters
Name
OPCODE
0000
0001
0010
0011
Description
In order to program the CS1630/31, a set of encoded
characters is built from specific phase-cut waveform patterns.
Figure 24 illustrates the phase-cut waveform encoding
recognized by the CS1630/31 power line calibration system.
As shown in Table 1, six characters are formed using the
special character and two-bit encoded data.
NOP
No Operation
INIT_PROG_MODE
I2C_WRITE
Initialize program mode(1)
Perform a generic I2C write
Reserved
Initiate an OTP write cycle(3)
Write String 1 offset(2)
Write String 2 offset(2)
Write CRC value
BURN_OTP
0100
0101
0110
Character
Start Char
Code
Notes
PLC Program Start Character(1)
PLC Program Stop Character(1)
2-bit Data [00]
STR1_OFFSET
STR2_OFFSET
WRITE_CRC
(SC)00(SC)
Stop Char
(SC)11(SC)
0111
Duo-bit ‘00’
Duo-bit ‘01’
Duo-bit ‘10’
Duo bit ‘11’
00
01
10
11
END_PROG_MODE
WRITE_DIM
1000
1001
Disable programming mode
Sets PLC dim value
2-bit Data [01]
2-bit Data [10]
Notes: (1) Allows other commands to program the device under test.
(2) Range of Offset tolerance is ±15%.
2-bit Data [11]
(3) The light is flashed to indicate pass or fail.
Note: (1) A Special Character (SC) must precede and follow the Duo-bit.
Table 2. Power Line Calibration Operation Code
Table 1. Power Line Calibration Characters
The LED light flashes seven times to indicate a command
error. The LED flashes two times when OTP registers are
programmed successfully and four times when programming
is unsuccessful. Figure 25 illustrates an example of a power
line calibration mode command sequence and the cut-
waveform pattern.
5.10.3 Calibration Mode Operation Code
The CS1630/31 power line calibration system requires a start
and stop operation code to activate and deactivate power line
calibration mode. Once in the power line calibration mode,
operation codes (OPCODE) will be used to program specific
addresses using the OPCODE listed in Table 2.
Calibration Command Sequence
Start Char [(SC)00(SC)]
Addr Bcast
&
OPCODE
[2 Duo-bits]
Odd Parity
&
Stop Char [(SC)11(SC)]
Simple Code
[1 Duo-bit]
Don’t Care
[1 Duo-bit]
Before Transmit
PLC Start Character
Addr Bcast
PLC Operation Code
Odd Parity
PLC Stop Character
After Transmit
&
Simple Code
00
(4-bit)
0000
&
Don’t Care
10
135°
135°
90°
34°
90°
34°
34°
34°
118°
90°
146°
90°
135°
135°
Figure 25. Power Line Calibration Mode Example
22
DS954F2