|
ATmega2560
Hardware definitions
|
Purpose: USART frame modes, channel numbers and pin multiplexing.
Namespace: atmega2560::usart.
USART0: PE0/PE1/PE2; USART1: PD2/PD3/PD5; USART2: PH0/PH1/PH2; USART3: PJ0/PJ1/PJ2. pins uses encoded logical pin values.
| USART | RXD | TXD | XCK |
|---|---|---|---|
| 0 | PE0 | PE1 | PE2 |
| 1 | PD2 | PD3 | PD5 |
| 2 | PH0 | PH1 | PH2 |
| 3 | PJ0 | PJ1 | PJ2 |
Per-instance pins are available under usart::usart0 through usart::usart3; the usart::pins namespace provides compact names for all channels.
These are hardware definitions, not runtime register access or initialization.
Source: ATmega2560 datasheet (DS40002211A).