PreviousNext
UART
Help > Peripherals > UART

PNUM = 0x0C for embedded UART peripheral

 

The peripheral is not available at the [C] and at [N] supporting an interface. The size of both TX and RX buffers is 64 bytes.

 

When UART Peripheral is enabled at the [N] configuration then the UART is automatically opened by the DPA shortly before the Init event is raised. The baud rate is set in the configuration. If this behavior is not intended then the UART can be closed or opened with a different baud rate immediately in the Init event or later as needed.

 

The usage of the peripheral is limited in LP [Ns] because they regularly sleep in its main receiving loop. The peripheral works only when the device does not sleep or during a time defined by a ReadTimeout parameter of a Write & Read command. Please see the details below.

 

PIC HW UART peripheral interrupts can be handled at the Custom DPA Handler Interrupt event unless the DPA UART peripheral is not open or DPA UART Interface is not used.