You wanna use the Mega 4808 with MegaCoreX and Arduino? Then you need the standard pin usage. In the following table you can find the standard pins for the functions you wanna use.
pin functions:
Pinname | UART | SPI | I2C | GPIO Interrupt | Other |
PA0 | Serial (TXD; OUTPUT) | X | |||
PA1 | Serial (RXD; INPUT) | X | |||
PA2 | SDA (Wire) | X | |||
PA3 | SCL (Wire) | X | |||
PA4 | MOSI (SPI) | X | |||
PA5 | MISO (SPI) | X | |||
PA6 | SCK (SPI) | X | |||
PA7 | SS (can be changed) | X | |||
PC0 | Serial1 (TXD; OUTPUT) | X | |||
PC1 | Serial1 (RXD; INPUT) | X | |||
PC2 | X | ||||
PC3 | X | ||||
PD0 | |||||
PD1 | |||||
PD2 | |||||
PD3 | |||||
PD4 | |||||
PD5 | |||||
PD6 | |||||
PD7 | |||||
PF0 | Serial2 (TXD; OUTPUT) | X | |||
PF1 | Serial2 (RXD; INPUT) | X | |||
PF2 | |||||
PF3 | |||||
PF4 | |||||
PF5 | |||||
PF6 | X | Reset |
Other posts about Mega 4808