3.d.05. Command 253: Get Firmware version (version = major byte . minor byte)

Effect: Returns the two bytes that specify the version of the code running on the mega168. The sequence for obtaining this data is as follows:

  1. send the command byte, wait for transmission to complete
  2. wait for 3 us (so the mega168 has time to set the SPDR)
  3. send any data byte, wait for transmission
  4. read SPDR to obtain the major version byte
  5. wait for 3 us (so the mega168 has time to set the SPDR)
  6. send a junk data byte or the NULL command, wait for transmission
  7. read SPDR to obtain the minor version byte

Values sent: none

command byte = 253

data byte = any seven-bit value