bit TWINT==1, TW_STATUS==0xF8

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to do TWI on an atmega2560.

Under what circumstances, may TW_STATUS==0xF8

even though bit TWINT of TWCR is one?

 

From documentation, I expected that that was not supposed to happen at all.

 

 

Edit: oops.  I'd intended this for megas & tinys  feel free to move it.

Iluvatar is the better part of Valar.

Last Edited: Tue. May 29, 2018 - 10:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skeeve wrote:
I'm trying to do TWI on an atmega2560. Under what circumstances, may TW_STATUS==0xF8 even though bit TWINT of TWCR is one?

 

The DS says that should not happen, at least that is how I read it:

 

What TWI library are you using?

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That is how I read the same documentation.

 

My handwritten code is for a special-purpose bootloader.

My guess is that the solution to the larger problem is fixing a logic error in my code.

 

That said, if I my leg keeps breaking every time the bus takes me by a barbershop,

the solution might happen when I discover that I've been riding

the wrong bus and taking the right bus avoids the barbershop.

I would still want to know why my leg kept breaking.

 

The code is for changing from master receiver to master transmitter.

It had worked 30+ times before the title issue.

Iluvatar is the better part of Valar.