1
- #### Interfacing with MemCARDuino:
1
+ ### Interfacing with MemCARDuino:
2
2
3
- | Commands| Data| Description|
4
- | -- | -- | -- |
5
- |GETID | 0xA0 | Get identifier
6
- |GETVER | 0xA1 | Get firmware version
7
- |MCREAD | 0xA2 | Memory Card Read (frame)
8
- |MCWRITE | 0xA3 | Memory Card Write (frame)
3
+ | Commands| Data| Parameters | Description| Response |
4
+ | -- | -- | -- | -- | -- |
5
+ |GETID | 0xA0 | - | Get identifier | "MCDINO"
6
+ |GETVER | 0xA1 | - | Get firmware version | Firmware version byte (Major.Minor).
7
+ |MCR | 0xA2 | MSB, LSB | Memory Card Read (frame) | Data, XOR, Status
8
+ |MCW | 0xA3 | MSB, LSB, data, XOR | Memory Card Write (frame) | Status
9
9
10
- | Responses | Data| Description|
10
+ | Status | Data| Description|
11
11
| -- | -- | -- |
12
12
|ERROR | 0xE0 | Invalid command received (error)
13
13
|GOOD | 0x47 | Operation successful
14
14
|BAD_CHECKSUM | 0x4E | Data corruption occured
15
15
|BAD_SECTOR | 0xFF | Outside of max sector range
16
16
17
- Communication is done at ** 115200 bps** .
17
+ Communication is done at ** 115200 bps** .
18
+
18
19
To check if MemCARDuino is connected to the selected COM port send ** GETID** command.
19
20
Device should respond with ** IDENTIFIER** .
20
21
Optionally you can send a ** GETVER** to get the version of the firmware.
@@ -27,4 +28,4 @@ MemCARDduino will respond with Memory Card status byte.
27
28
28
29
### Checking if Memory Card is connected:
29
30
Read a frame from the card and verify the returned status byte.
30
- If it's 0x47 then card is connected. If it's 0xFF card is not connected.
31
+ If it's 0x47 then card is connected. If it's 0xFF card is not connected.
0 commit comments