ArduinoCore-megaavr icon indicating copy to clipboard operation
ArduinoCore-megaavr copied to clipboard

Datasheet for Nano Every/Wifi Rev 2 entries for I2C and A4/A5, A6/A7 query?

Open diyelectromusic opened this issue 3 years ago • 3 comments

The datasheet/pinout for the Nano Every shows A4/A5 as PA2/PA3, but from my reading of the ATMega4809 datasheet, these are not the I2C port that will also support the ADC. The code in pins_arduino.h suggests these are actually PF2/PF3 which does support both I2C and AIN12/13.

Similarly, for the Wifi Rev 2, A4/A5 are listed as PD4/PD5 (18/19) but the SDA/SCL additional pins are also listed as (18/19) but on PA2/PA3.

Is this correct?

diyelectromusic avatar Dec 14 '21 17:12 diyelectromusic

I just checked the datasheets and in fact you are right. The dual I2C/analog functionality is obtained by shorting the pins internally (can be seen in the actual schematics). For example, in the Nano Every, A4/SDA is connected to both PA2 and PF2, while A5/SCL is internally routed to PA3/PF3

@per1234 can you assign it to the right person to fix the pinout files? Thx :slightly_smiling_face:

facchinm avatar Dec 15 '21 09:12 facchinm

I believe @FunzioneFabio is our resident pinout diagram wizard. Are you able to help us out with this @FunzioneFabio?

per1234 avatar Dec 15 '21 09:12 per1234

Thank you @diyelectromusic for spotting the error, the pinouts now are fixed and online!

FunzioneFabio avatar Dec 21 '21 14:12 FunzioneFabio