Re: Microcode: How to setup SERIN for 115200 baud rate?
The baud rates listed in the datasheet relate to using the chip's internal USART. To access this you would need to use the HSERIN command, use the specific USART RX pin, and likely need a level shifter. However there are great benefits to using the hardware serial port, including use of interrupts and a small (two byte) buffer.
SERIN (and SERIN2 and DEBUGIN) are software-generated, essentially "bit banging" routines. They absolutely have their uses, and can be assigned to almost any free pin, but you will not be able to get that sort of speed out of them.
Best Regards,
Paul
The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.
Bookmarks