Tiny Addressable Serial Converter
ICP DAS CO., LTD.
User Manual, Ver. 1.3, Apr. 2018, Page: 41
5.1.4
$AAPN[parity-bit]
Description:
This function reads/sets the parity bit for COM 1/2/3.
Syntax:
$AAPN
[chk](CrLf)
Reads the parity bit for COM 1/2/3 stored in the Flash
$AAPN[parity-bit]
[chk](CrLf)
Sets the parity bit for COM 1/2/3
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Note
$
AA
P
N
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6
Byte 7-8
Byte 9-10
Note
$
AA
P
N
[parity-bit]
[chk]
(CrLf)
Write
$
AA
N
[parity-bit]
[chk]
(CrLf)
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF 0 = Reads/Sets
the parity bit for the COM 1
1 = Reads/Sets the parity bit for the COM 2/3
0=NONE, 1=EVEN, 2=ODD, 3=MARK, 4=SPACE
2-character checksum. If the checksum is disabled
no [chk]
End Character
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[parity-bit]
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4-5
Byte 6-7
Byte 8-9
Note
!
AA
[chk]
(CrLf)
-
Valid
?
Invalid
!
?
AA
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
no [chk]
End Character
If No response
syntax error, communication error, or address error