
BEGV643A User Manual Ver.0
2
-
71
-
4-4-3 Software Utilities Function Description
4-4-3-1 UART function
Header file : uart.h
Object file : uart.o
uartInit Function:
Initial UART.
Syntax
void uartInit(
uint8_t byPort,
uint32_t uBaudrate,
uint8_t byParity,
uint8_t uDatabit,
uint8_t uStopbit,
uint8_t nTxMode
);
Parameters
byPort
UART_PORT0 – 1st Uart port
UART_PORT1 – 2nd Uart port
nBaudrat
Baud rate, ex: 9600.
byParity
Parity Check,
ϖ
N
ϗ Ω
None,
ϖ
E
ϗ Ω
EVEN,
ϖ
O
ϗ
- ODD.
uDatabit
data bit , 5 ~ 8.
uStopbit
data bit , 1 ~ 2.
nTxMode
Transmission Mode.
0 or FALSE
Ω
RS232.
1 or TRUE
Ω
RS485 or RS422.
Return value
None.
uartSetBaudRate Function:
to set up baud rate for assigned UART port
Syntax
void uartSetBaudRate(
uint8_t byPort,
uint32_t uBaudrate
);
Parameters
byPort
UART_PORT0 – 1st Uart port
UART_PORT1 – 2nd Uart port
nBaudrate
Baud Rate, ex: 9600.
Return value
None.
uartSendByte Function:
To send 1 byte from assigned UART port
Syntax
void uartSendByte(
uint8_t byPort,
uint8_t txData
);
Parameters
byPort
UART_PORT0 – 1st Uart port
UART_PORT1 – 2nd Uart port
txData byte to be sent.
Return value
None.
Содержание BEGV643A Series
Страница 7: ...BEGV643A User Manual Ver 02 7 1 3 Block Diagram Drawing 1 3 1 4 Mechanical Dimension Drawing 1 4...
Страница 20: ...BEGV643A User Manual Ver 01 20 3 1 MCU Pin Configuration Drawing 3 1 ATmega644p MCU...
Страница 25: ...BEGV643A User Manual Ver 02 25...
Страница 26: ...BEGV643A User Manual Ver 02 26 Accept terms to continue...
Страница 27: ...BEGV643A User Manual Ver 02 27 Select folder to install and continue...
Страница 28: ...BEGV643A User Manual Ver 02 28 Select features to install and continue...
Страница 29: ...BEGV643A User Manual Ver 02 29 Click install to begin installation...
Страница 30: ...BEGV643A User Manual Ver 02 30 Wait for seconds for installation...
Страница 31: ...BEGV643A User Manual Ver 02 31 Click finish to exit the installation...
Страница 33: ...BEGV643A User Manual Ver 02 33 Click I agree to continue Choose folder to continue...
Страница 34: ...BEGV643A User Manual Ver 02 34 Choose components to install Wait for seconds for installation...
Страница 40: ...BEGV643A User Manual Ver 02 40 Choose Include as File Search Path to continue Click Yes to continue...
Страница 42: ...BEGV643A User Manual Ver 02 42 2 Program editing window...
Страница 43: ...BEGV643A User Manual Ver 02 43 3 I O view window 4 Message window 5 Toolbars...
Страница 48: ...BEGV643A User Manual Ver 02 48 Good job Software burning is done...
Страница 50: ...BEGV643A User Manual Ver 02 50 Key in COM port setting 115200 8 No 1 No and click Yes to continue...
Страница 60: ...BEGV643A User Manual Ver 02 60 H line Half Cross dot Character Picture1 Picture2...
Страница 64: ...BEGV643A User Manual Ver 02 64 Choose Include as File Search Path to continue...
Страница 66: ...BEGV643A User Manual Ver 02 66...
Страница 67: ...BEGV643A User Manual Ver 02 67 Note Adding into Obj...
Страница 68: ...BEGV643A User Manual Ver 02 68...
Страница 69: ...BEGV643A User Manual Ver 02 69 Note choose Linker Options...
Страница 70: ...BEGV643A User Manual Ver 02 70 Note key in Wl u vfprintf and then Add...
Страница 86: ...BEGV643A User Manual Ver 02 86 END of BEGV643A User Manual...