error in twicMaster.writeData

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi.

I need a help.

I am developing a project using ATXMEGA64A4U whose base of communication to external world is twi. I am using avr/twi_master_driver.h pack.

A string of 28 bytes (0000000000000000000000000000)is transferred to twicMaster.writeData buffer and twi puts out (0000000000000000L00005000000).

Is there an error in the twi settings?

Further information.

The compiler is Atmel's Studio 7.

The string goes right until the 'TWI_MasterWriteRead' subroutine but it corrupts after the 'TWI_MasterInterruptHandler' ISR.

 

Last Edited: Fri. Oct 26, 2018 - 11:39 AM