# Atmel EDBG-based Tools Protocols
SPI programming protocol commands

Sidebar | Prev | Up | Next

### SPI Leave Programming Mode

Leaves programming mode to complete SPI programming

Table 147. SPI Leave Programming mode command format

Field | Size | Description
--- | --- | ---
SPI_CMD_LEAVE_PROGMODE | 1 byte | Command ID
preDelay | 1 byte | XML: preDelay. Pre-delay (in ms)
postDelay | 1 byte | XML: postDelay. Post-delay (in ms)

Response:

Table 148. SPI Leave Programming Mode response

Field | Size | Description
--- | --- | ---
SPI_CMD_ENTER_PROGMODE | 1 byte | Command ID
Status | 1 byte | SPI_STATUS_CMD_OK

Prev | Up | Next
| Home |