ATTINY45 Pin and register definitions noob question

Hi,

I am using ATTINY45 as an I2C master. I am running into undeclared errors on these which are related to the chip’s UART I am assuming.

UCSRA, UDRE, UDR, UCSRB,TXEN, UBBRL

I am using the latest usb to i2c tiny library from here:

http://www.harbaum.org/till/i2c_tiny_usb/index.shtml

I checked the Atmel file iotnx45.h but it doesn’t contain these definitions of course. Should I get a newer file?

If so where would I get it. I am currently using Atmel Studio 6.1 (beta).

Thanks, keiichicom

The tiny45 doesn’t have a UART You would either need to emulate one in software (not sure you can do that while trying to maintain USB timing) or comment out any use of it.

/mike

Thanks Mike, appreciated. I don’t need the UART so I will just comment out those defines, so that the code compiles.

keiichicom