Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN3123 Datasheet(PDF) 23 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) 23 Page - STMicroelectronics

Back Button AN3123 Datasheet HTML 19Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 30 page
background image
AN3123
OS-independent SPEAr UART HAL
Doc ID 16862 Rev 2
23/30
10
OS-independent SPEAr UART HAL
This section describes an OS independent hardware abstraction layer (HAL) for the SPEAr
UART which you can use as a starting point for developing your own HAL code.
10.1
SetBaseDevice()
This API sets the base address of the UART.
static t_UARTError SetBaseDevice(volatile u32 *SPEAR_UART_APB_BASE,
struct spear_uart_config *dev)
UARTId: Identify the UART device
If the UARTId is UART0 or UART1, then it is a valid input for it otherwise it is said to be an
invalid UART ID.
10.2
GetBaudDivisor()
This function returns the integer and fractional values of the baud rate divisor.
static u32 GetBaudDivisor(t_UARTBaudRate BaudRate, u32
*IntegralVal)
BaudRate: Baud rate to be configured
IntegralVal - Baud rate divisor's integral value
Baud rate is a constant value & can be selected from the table given below
:
Table 14.
Baud rate values
Option
Value
BAUD110
110
BAUD300
300
BAUD1200
1200
BAUD2400
2400
BAUD4800
4800
BAUD9600
9600
BAUD19200
19200
BAUD38400
38400
BAUD57600
57600
BAUD115200
115200
BAUD230400
230400
BAUD460800
460800



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