HadCon Multipurpose Controls Protocol Cmnd RGWR
Introduction
Command description of the API command RGWR for
HadCon2 .
With the help of the RGWR command, you could set every register on the mcu AT90CAN128 and get immediately the written value.
Main
RGWR cmnd
Form:
RGWR <Register> <Value>
<Register> : the register address has to be written in hexadecimal
<Value> : here has to be written the new register value in hexadecimal
Example command:
(
toggling LEDs, by writing 1 to the PING0-PING5 registers while DDRG are set to outputs )
send: RGRE 32
(e.g.:)
receive: RECV RGRE 32 1c (11100)
send: RGWR 32 7
receive: RECV RGWR 7: value 1b has been written and readback does not match (1b)
(since PINs are outputs)
send: RGRE 32
receinve: RECV RGRE 32 1b
--
PeterZumbruch - 2020-01-22
-