Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
623
UARTx_Init_Advanced
Prototype
‘ dsPIC30 prototype 
sub  procedure  UARTx_Init_Advanced(dim  baud_rate  as  longint,  dim  parity, 
stop_bits as word)
‘ dsPIC33 and PIC24 prototype 
sub  procedure  UARTx_Init_Advanced(dim  baud_rate  as  longint,  dim  parity, 
stop_bits as worddim high_low_speed as word)
Description Configures and initializes the UART module with user defined 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
Predefined 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
Predefined library const
One stop bit
_UART_ONE_STOPBIT
Two stop bit
_UART_TWO_STOPBITS
High/Low Speed
Description
Predefined library const
Low Speed UART
_UART_LOW_SPEED
Hi Speed UART
_UART_HI_SPEED