Atmel ATmega48PA/ATmega88PA Error 0x00: Bus error

Microcontroller · taken from the manufacturer’s manual, pages cited

Error code0x00

0x00 is a bus error due to an illegal START or STOP condition. The manual's first action is: “To recover from a bus error, the TWSTO Flag must set and TWINT must be cleared by writing a logic one to it. This causes the TWI to enter the not addressed Slave mode and to clear the TWSTO Flag (no other bits in TWCR are affected). The SDA and SCL lines are released, and no STOP condition is transmitted.”

Model
Atmel ATmega48PA/ATmega88PA
Display shows
Bus error (0x00)
Type
Error code
Source
Manual p. 234

What 0x00 means

Bus error p. 234

Common causes

  • A bus error occurs when a START or STOP condition occurs at an illegal position in the format frame. Examples of such illegal positions are during the serial transfer of an address byte, a data byte, or an acknowledge bit. p. 234
  • Bus error due to an illegal START or STOP condition p. 234

What to do

  1. To recover from a bus error, the TWSTO Flag must set and TWINT must be cleared by writing a logic one to it. This causes the TWI to enter the not addressed Slave mode and to clear the TWSTO Flag (no other bits in TWCR are affected). The SDA and SCL lines are released, and no STOP condition is transmitted. p. 234
  2. No TWDR action STA: 0 STO: 1 TWINT: 1 TWEA: X Only the internal hardware is affected, no STOP condition is sent on the bus. In all cases, the bus is released and TWSTO is cleared. p. 234

If 0x00 is still not resolved

The manual gives no further instruction for this code. Open the code table in the PDF or contact Atmel service.

This page summarises what the manufacturer’s manual says about 0x00; each statement links to the page it comes from, and quoted lines are copied word for word. It is not a substitute for the manual or for a qualified installer. ManualLib is not affiliated with Atmel. Found a mistake? Report an error.