User manual
mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
622
UARTx_Init_Advanced
Prototype
// dsPIC30 prototype
procedure UARTx_Init_Advanced(baud_rate: longint; parity, stop_bits:
word);
// dsPIC33 and PIC24 prototype
procedure UARTx_Init_Advanced(baud_rate: longint; parity, stop_bits: word;
high_low_speed : word);
Description Congures and initializes the UART module with user dened settings.
Parameters - baud_rate: requested baud rate
- parity: parity and data selection parameter.
Valid values:
- stop_bits: stop bit selection parameter.
Valid values:
- high_low_speed: high/low speed selection parameter. Available only for dsPIC33 and PIC24
MCUs.
Valid values:
Data/Parity Mode
Description Predened library const
8-bit data, no parity _UART_8BIT_NOPARITY
8-bit data, even parity _UART_8BIT_EVENPARITY
8-bit data, odd parity _UART_8BIT_ODDPARITY
9-bit data, no parity _UART_9BIT_NOPARITY
Stop bits
Description Predened library const
One stop bit _UART_ONE_STOPBIT
Two stop bit _UART_TWO_STOPBITS
High/Low Speed
Description Predened library const
Low Speed UART _UART_LOW_SPEED
Hi Speed UART _UART_HI_SPEED