43
WRITING OF 1 BIT
P.C.
MICROVIP3 PLUS
:,AA,05H,NNNN,bbbb,LRC,CR,LF
- - - - - - ->
<- - - - - - -:,AA,05H,NNNN,bbbb,LRC,CR,LF
where:
- AA
= 01 = address of the MICROVIP3 PLUS (2 bytes ASCII)
- 05H
= Code of the command for writing of 1 bit (2 bytes ascii)
- NNNN
= Number of the bit to be written (4 bytes ascii):
0000H <= Number of the bit <= 0003H or number of the bit = FFFEH
- bbbb
= FF00H: bit = 1; 0000H: bit = 0 (4 bytes ascii).
- LRC
= Longitudinal Redundancy Check (2 bytes ascii)
- CR
= 0DH (1 byte ascii)
- LF
= 0AH (1 byte ascii)
COMMANDS IMPLEMENTED:
- Keyboard disabling
(NNNN = 0000H; bbbb = FF00H)
- Keyboard enabling
(NNNN = 0000H; bbbb = 0000H)
- Peaks and averages reset
(NNNN = 0001H; bbbb = FF00H)
- Meters reset
(NNNN = 0002H; bbbb = FF00H)
WRITING OF 1 WORD
P.C.
MICROVIP3 PLUS
:,AA,06H,SSSS,D1,D2,LRC,CR,LF
- - - - - - ->
<- - - - - - -:,AA,06H,SSSS,D1,D2,LRC,CR,LF
where:
- AA
= 01 = address of the MICROVIP3 PLUS (2 bytes ASCII)
- 06H
= Code of the command for writing of 1 word (2 bytes ascii)
- SSSS
= Address from which writing starts (4 bytes ascii)
- D1
= 1st datum to be written (2 bytes ascii)
- D2
= 2nd datum to be written (2 bytes ascii)
- LRC
= Longitudinal Redundancy Check (2 bytes ascii)
- CR
= 0DH (1 byte ascii)
- LF
= 0AH (1 byte ascii)
COMMANDS IMPLEMENTED:
- Writing in eeprom of the CT coefficient K
(4 consecutive writing commands)
-1) SSSS = 003AH:
- D1 = CT primary (LSB decimal mantissa)
- D2 = CT primary (MSB decimal mantissa )
-2) SSSS = 003CH:
- D1 = CT primary exponent
- D2 = not significant
-3) SSSS = 003EH:
- D1 = CT secondary (LSB decimal mantissa)
- D2 = CT secondary (MSB decimal mantissa)
-4) SSSS = 00040H:
- D1 = CT secondary exponent
- D2 = not significant
Example writing CT :
Set TA = 1000/1
Set primary
:01 06 00 3A E8 03 Check CR LF Eco
:01 06 00 3C 00 00 Check CR LF Eco
Set secondary
:01 06 00 3E E8 03 Check CR LF Eco