USART0 RS-485 fails on ALT pins (USART1 OK) on ATtiny3227 #1263
-
|
I think I've exhausted this issue and believe it's either a core issue or in the silicon. TLDR:ATtiny3227 + megaTinyCore: USART0 works on default pins, but USART0 dies on ALT1 specifically in RS-485/XDIR mode. USART1 works in all cases. Your register dump shows everything is configured correctly (ALT1 mux, 115200 8N1, TX/RX enabled, RS-485 enabled) and USART0 believes it transmitted (TXCIF set), but the pins never drive. That points away from config and toward a deep USART0 ALT1 + RS-485/XDIR issue (MegaTinyCore bug or silicon errata). Hardware
SummaryRS-485 with hardware XDIR works correctly on both USART0 and USART1 when using default pin routing. However, when moving both USARTs to ALT1 pins via PORTMUX.USARTROUTEA, USART1 continues to work correctly, but USART0 produces no output at all: This was done to free the default USART0 XDIR pin due to an I²C SCL conflict. Observed behavior
I had ChatGPT write me a test program that would spit out the registers on the working port using as little of the core as possible I get this dump Which confirms:
I'm about to give up on this chip. Anyone have any ideas for me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Heads up for anyone working with ATtiny3227 or related ATtiny 2-Series devices (82x, 162x, 32x series). Microchip confirmed a silicon-level bug affecting USART0 when using ALT pin routing. Here's what you need to know: What's broken:
What's not the problem:
Current status:
|
Beta Was this translation helpful? Give feedback.
Heads up for anyone working with ATtiny3227 or related ATtiny 2-Series devices (82x, 162x, 32x series).
Microchip confirmed a silicon-level bug affecting USART0 when using ALT pin routing.
Here's what you need to know:
What's broken:
What's not the problem:
Current status: