Hello
I am just building an an IO board for a project, which will have its own processor on board, and I have decided to use the AtTiny84.
I am just wanting to check a few things as I havent used a AtTiny before where so many things are shared on pins.
One of these is how to hook up the header for programming in the bootloader, just to make sure I have it right .
Very noob type question, but just want to make sure - pretty sure this is right, but I have been fooled before.
The 6 or 10 pin ISCP header, are these correct?:
MOSI goes to PA6 (which does state MOSI in the description)
MISO goes to PA5 (which states MISO in the desc)
SCK goes to PA4? (it states USCK, assume this is correct?)
RESET goes to PB3 (assuming as RESET is in the desc)
The datasheet refers to these ports as part of the 'USI 3 wire mode' - which I havent heard of referenced as that before, but I assume this is what the bootloader is programmed over.
For I2C comms, are these correct?:
I2C-SCL goes to PA4?
I2C-SDA goes to PA6?
The datasheet refers to these as part of the 'USI 2 wire mode' which I assume is the TWI/I2C?
From reading on here, there is a bootloader already written to suit the '84, I can only assume it works as desired and people are using it no problems...
This particular board will be communicating to a main board which will have a ATMega1284P on it, via I2C comms.
The board is going to be used solely for counting pulses, basically a high speed counter board. I need to utilise either 2 of 4 external interrupts. I notice this chips has INT0 and then has Pin Change interrupts... another assumption is that these pin change interrupts function in a similar way to the normal external interrupts say on a standard Arduino board?
I need to do more reading, but if someone knows straight off if these can be used just like a normal interrupt, where they can trigger an ISR etc, then that would be great to tell me.
Thanks in advance
James