SPRAD62 February 2023 F29H850TU , F29H859TU-Q1 , TMS320F280023C , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038C-Q1 , TMS320F280039C , TMS320F280039C-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
Serial interfaces are commonly used in many industrial and automotive applications. Standard serial interfaces available in today's microcontrollers can support access to a multitude of peripheral devices. However, in some cases, a custom serial interface may be required to support a unique serial protocol. The configurable logic block (CLB) included in C2000™ real-time microcontrollers can be programmed to emulate these custom serial interfaces.
In this application note, a step-by-step design methodology is presented to guide the designer in the design, simulation, and testing of a custom serial interface. Some common design challenges and potential solutions are presented throughout the application report. Finally, two examples are presented with full design details, simulation results, and hardware test results. The example code can be easily obtained from the C2000ware software development kit (SDK).