Introduction
The UART driver of GR5xx System-on-Chips (SoCs) supports break control. When break control is enabled, UART TX will be forced into spacing state (logic 0); when break control is disabled, UART TX will return to idle state (logic 1). The break control function can be enabled/disabled by software to emulate the break field of the standard LIN frame on the bus, which consists of a continuous low-level signal lasting 13 bits to 16 bits. Therefore, LIN bus signals can be transmitted or received through the GR5xx UART driver and the LIN transceiver.
The GR5xx SDK provides a driver and a demo project to implement the LIN functions based on UART (hereinafter referred to as “UART2LIN”), which can help users quickly get started with development and application of GR5xx UART2LIN functions.
The UART2LIN driver files are in SDK_Folder\components\drivers_ext\uart2lin; the UART2LIN demo project is in SDK_Folder\projects\peripheral\uart\app_uart2lin, where SDK_Folder is the root directory of GR5xx SDK. Currently, only GR5405 SDK provides these drivers and demo project.