I am working with the ATtiny817 using the ATtiny817 Xplained Mini board and Atmel Studio 7. I posted yesterday about my difficulty in getting TWI libraries to work with ATtiny817, and was told I need to either try and adapt the XMega TWI library for the ATtiny817, or create a new one from scratch. I'm currently working on adapting the XMega TWI library, and have attempted to scale it way down to just simple init, start transmission, write, and read functions without using interrupts (which I may add back in, but I thought starting with the bare minimum would be a good starting place). However, Atmel Studio is not recognizing the use of ATtiny817 TWI register names found in the datasheet (such as MBAUD, MDATA, MADDRESS, etc). As the datasheet also references them sometimes as TWI.MBAUD, I've tried prefixing the name with TWI, but it still doesn't work. What is the correct way to reference these registers? I've included my main.c and TWI_master_driver.c files, please let me know if any more information would be helpful.
Level: New Member
Joined: Fri. Nov 18, 2016
Posts: 18 View posts
Last Edited: Fri. Nov 18, 2016 - 06:34 PM