Arduino core for the tinyAVR 0/1/2-series - Ones's digit 2,4,5,7 (pincount, 8,14,20,24), tens digit 0, 1, or 2 (featureset), preceded by flash in kb. Library maintainers: porting help available!
Other
554
stars
143
forks
source link
Hardware Serial not working on ATTINY402 on versions 2.1.1 & 2.1.0 #246
I note that the 2018 Atmel datasheet for ATTINY202, 402 has a typo in Table 5-1: SOIC pins 4 & 5 are swapped. 2019 datasheet is correct. Possibly this is the source of the error, though it would not explain why previous versions worked.
Reverted to 2.0.5 and works fine.
Using Serial.begin() etc: The TxD pin (PA6) goes high but no data comes out. Same using Serial.swap(1). I noticed the pinout in one of the comments is wrong for TxD, RxD in https://github.com/SpenceKonde/megaTinyCore/blame/master/megaavr/variants/txy2/pins_arduino.h. I checked the issue using the example AnalogReadSerial_for_0__1_series_AVR. ATTINY1604 works fine also.
I note that the 2018 Atmel datasheet for ATTINY202, 402 has a typo in Table 5-1: SOIC pins 4 & 5 are swapped. 2019 datasheet is correct. Possibly this is the source of the error, though it would not explain why previous versions worked. Reverted to 2.0.5 and works fine.
Alun