Arduino supported ATMega controller with 2 hardware UARTs

Could someone please suggest a ATMega series controller with 2 hardware UARTs for a 9 bit serial application? ATMega1284p controller seems to be too expensive....

Cheers

las2211:
ATMega1284p controller seems to be too expensive....

That's the one. They're not that high. They go for about $6 on Mouser. Can probably get them cheaper elsewhere. That's not usually the cheapest spot.

ATmega1284p with MCUDude's MightyCore

ATmega328PB with MCUDude's MiniCore - there is an additional step required for these parts, see documentation.

ATtiny1634 or ATtiny841 with my ATTinyCore.

ATmega2560 (Arduino Mega)

$5.52 at Digikey for 40-pin DIP
https://www.digikey.com/product-detail/en/microchip-technology/ATMEGA1284P-PU/ATMEGA1284P-PU-ND/1914521

Does it have to be in DIP package?

The ATmega128 can be bought for $1 at Ebay and has two UARTS.
Arduino support through MegaCore

Thanks all for your comments and suggestions...

I was trying to compare between 328PB and 1284 chips.

However I still prefer to use 328PB but MCUDude minicore didn't work for me, Not sure what's the exact issue but when trying to compile its giving me detachinterrupt error for the 328PB chip.

Surely I'm not following something it seems.. any help appreciated!

Post code and full text of any error messages