Cypress MB9BF567R Manual del usuario - Página 8
Navegue en línea o descargue pdf Manual del usuario para Microcontroladores Cypress MB9BF567R. Cypress MB9BF567R 12 páginas. Peripheral 32-bit microcontroller
3.9
UART
The UART module includes RS232 and can communication with other UART module. If the UART tool is installed in
pc, user can send/receive data to/from PC.
The UART baud rate is 115200 without odd-even check, data is 8bit with one bit stop.
Operation step:
Connect "1" and "2" in "J6" and "J7"
1.
2.
Press SW2 to switch module to UART, press SW3 to enter
3.
Connect with another UART module
4.
If the another module send a data to peripheral board, the LCD will display the data
Note:
Connect jumper J11 pin1 and pin2, when UART CTS.
Connect jumper J11 pin2 and pin3, when using LCD background.
3.10
DAC
There is a Phonejack on the board. User can send different pulse from DAC to generate different audio.
In sample project there is a sine wave tones will play from Phonejack.
Operation step:
1.
Connect jumper J10 pin2 and pin3
2.
Press SW2 to switch module to AUDIO, press SW3 to enter
3.
Sine wave tones will play.
4
Sample Project
There are many communication modules in the sample project, such as IIC, LIN, SPI and CAN.
In following chapter, these communication samples will be described.
4.1
IIC
4 . 1 . 1
m i 2 c . c
Mi2c.c is the driver of IIC, the read/write and initial functions are in it, if user uses IIC, this file is need.
void InitI2c(void)
en_result_t WriteEepByte(uint8_t Addr, uint8_t WrDate)
en_result_t ReadEepByte(uint8_t Addr, uint8_t *pReadBuffer)
If mi2c.c is used, the mfs_hl.c is need too.
4 . 1 . 2
m f s _ h l . c
The functions in mfs_hl.c configurates registers of serial module include IIC.
www.cypress.com
Table 2. mi2c functions list
Functions
Document No. 002-04464 Rev. *B
SK_FM4_U_Peripheral 32-Bit Microcontroller FM4 Family User Manual
Description
Initial IIC module
Write one byte data to appointed address
Read one byte data from appointed
address
Remark
7