You can use I2C from the Pi side - They are brought out on the long row of pins in-front of the Pi connector as GP0 and GP1 (these really will be GP2 and GP3 on a Rev 2 board)rickseiden wrote:I was wondering if anyone could tell me if the Gertboard has the i2c clock and data pins from the ATmega available anywhere. I just got a new toy (http://adafru.it/1049), and I want to play. I assumed when I bought it that they would be there and it would be in the manual, but I can't find it in the manual at all.
Thanks in advance,
You do not need to add pull-up resistors as they are already present.On the ATmega, the I2C pins are alternative functions of the Analog pins. Port C5 is the Clock (SCL) and C4 is Data (SDA). You can set the internal pull-ups in the ATmega or use external ones. (prob. best to use external ones)
Unsure if that's a question, but here's an answer anyway.Gert van Loo wrote:I still have to test what happens if multiple interrupts occur at the same time as I don't know what the Amega interrupt priority is.
The Interrupt Vector table can be found on page 65 (chapter 12.4).All interrupts have a separate Interrupt Vector in the Interrupt Vector table. The interrupts have priority in accordance with their Interrupt Vector position. The lower the Interrupt Vector address, the higher the priority.
http://www.atmel.com/Images/Atmel-8271- ... asheet.pdfWhen an interrupt occurs, the Global Interrupt Enable I-bit is cleared and all interrupts are disabled. The user software can write logic one to the I-bit to enable nested interrupts. All enabled interrupts can then interrupt the current interrupt routine. The I-bit is automatically set when a Return from Interrupt instruction – RETI – is executed.
Users browsing this forum: YaCy [Bot] and 1 guest