An alternative serial interface at MegaCoreX

Hello everyone,
I'd like to use an alternative serial interface on ATmega4808 using MegaCoreX.

Pin20/21 is assigned to 32.768kHz Crystal circuit on my ATmega4808 board, I can't use original TXD2/RXD2 port. Alternative TXD2/RXD2 is assigned to Pin24/25 at 32-pin standard pinout.

How to activate an alternative serial interaface? My search may just be insufficient. If you have any information that would be helpful, please provide a link.

Thanks,

Have a look at the documentation for MegaCoreX related to peripheral pin swapping:
https://github.com/MCUdude/MegaCoreX/blob/master/Extended-API.md#peripheral-pin-swapping

1 Like

Thank you david_2018.

It appears that the pins can be swapped with the following code:
pict

My question has been answered.
I appreciate your help.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.