COVID-19 impact: We are still operating and shipping all orders! We are operating with a reduced staff, so for critical requirements, including fighting COVID-19, please contact us so we can identify priorities. Click here for more info.

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

Related Products

Orangutan X2 with VNH3
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors