serial data protocol

General discussion on mikroC.
Post Reply
Author
Message
saharul
Posts: 489
Joined: 08 Jul 2010 08:11

serial data protocol

#1 Post by saharul » 12 Jun 2018 05:26

Hi ,

does anybody know the serial 11 bits data protocol of MikroC Pro compiler... how many data bits (7 or 8?) parity (even or odd?) and how may stop bits (1 or 2?)

Many thanks :D :D

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: serial data protocol

#2 Post by hexreader » 12 Jun 2018 12:07

The help file shows that the default for UARTx_Init() function is 10 bits:
Configures and initializes the UART module.

The internal UART module module is set to:

receiver enabled
transmitter enabled
frame size 8 bits
1 STOP bit
parity mode disabled
asynchronous operation

Parameters :

baud_rate: requested baud rate

Refer to the device data sheet for baud rates allowed for specific Fosc.
Start bit is not explicitly mentioned, but is always there.

To get help on any function (such as UART1_Init()) put the cursor anywhere within the text of the function and press F1 key on keyboard.
Start every day with a smile...... (get it over with) :)

saharul
Posts: 489
Joined: 08 Jul 2010 08:11

Re: serial data protocol

#3 Post by saharul » 26 Jun 2018 09:14

Thanks a lot hex reader

Post Reply

Return to “mikroC General”