Skip to content

Commit 5b29a62

Browse files
authoredJan 9, 2023
Updated DEVELOPERS.md
Updated table of commands for developers
1 parent 37da478 commit 5b29a62

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed
 

‎DEVELOPERS.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
#### Interfacing with MemCARDuino:
1+
### Interfacing with MemCARDuino:
22

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
99

10-
|Responses|Data|Description|
10+
|Status|Data|Description|
1111
| -- | -- | -- |
1212
|ERROR | 0xE0 | Invalid command received (error)
1313
|GOOD | 0x47 | Operation successful
1414
|BAD_CHECKSUM | 0x4E | Data corruption occured
1515
|BAD_SECTOR | 0xFF | Outside of max sector range
1616

17-
Communication is done at **115200 bps**.
17+
Communication is done at **115200 bps**.
18+
1819
To check if MemCARDuino is connected to the selected COM port send **GETID** command.
1920
Device should respond with **IDENTIFIER**.
2021
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.
2728

2829
### Checking if Memory Card is connected:
2930
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

Comments
 (0)