Electronic Components Datasheet Search
  English  ▼

X  

AN3123 Datasheet(PDF) 24 Page - STMicroelectronics

Part # AN3123
Description  Using the UART interfaces in the SPEAr embedded MPU family
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3123 Datasheet(HTML) 24 Page - STMicroelectronics

Back Button AN3123 Datasheet HTML 20Page - STMicroelectronics AN3123 Datasheet HTML 21Page - STMicroelectronics AN3123 Datasheet HTML 22Page - STMicroelectronics AN3123 Datasheet HTML 23Page - STMicroelectronics AN3123 Datasheet HTML 24Page - STMicroelectronics AN3123 Datasheet HTML 25Page - STMicroelectronics AN3123 Datasheet HTML 26Page - STMicroelectronics AN3123 Datasheet HTML 27Page - STMicroelectronics AN3123 Datasheet HTML 28Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 24 / 30 page
background image
OS-independent SPEAr UART HAL
AN3123
24/30
Doc ID 16862 Rev 2
10.3
UART_Init()
This routine is used to initialize the UART. This function sets the default settings and enables
the UART.
t_UARTError UART_Init(struct spear_uart **uart_device, t_UARTId
UARTId)
This function sets the default settings as shown in the example below:
struct spear_uart_config *dev;
dev->FIFOStatus
= FIFO_ENABLE;
dev->BaudRate
= BAUD115200;
dev->WordLength
= DATA8;
dev->StopBitSelect
= STOP1;
dev->ParitySelect
= PARITY_DISABLE;
dev->TxWatermarkLevel
= OneByTwo;
dev->RxWatermarkLevel
= OneByTwo;
dev->TxEnable
= TRUE;
dev->RxEnable
= TRUE;
dev->UARTId
= UARTId;
10.4
UART_Configure()
This function is used to configure a UART device. It first disables the UART, then finds the
integral and fractional baud rate and configures the line control register, control register and
various interrupt registers, etc. and finally enables the UART.
t_UARTError UART_Configure(struct spear_uart_config *dev)
●
UARTId: Identify the UART device
●
Config: Configuration information
The configuration information is selected as follows:
●
ParitySelect: If it is already zero, this means that odd parity is selected. If EVEN then
even parity is selected, otherwise invalid parity is selected.
●
WordLength: Its value can be chosen from the table given below:
Table 15.
WordLength values
Option
Value
DATA8
WORD_LENGTH_8
DATA7
WORD_LENGTH_7
DATA6
WORD_LENGTH_6
DATA5
Already zero



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com