lpspi1uart2

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:100KB
下载次数:1
上传日期:2021-03-21 20:20:20
上 传 者拉灯
说明:  RT1052 LPSPI1 dma传输和UART2 DMA传输实现不定长数据接收
(Rt1052 lpspi1 DMA transmission and UART2 DMA transmission realize the indefinite data receiving)

文件列表:
lpspi1uart2\board.c (22016, 2019-07-03)
lpspi1uart2\board.h (14230, 2019-07-03)
lpspi1uart2\clock_config.c (20939, 2019-07-03)
lpspi1uart2\clock_config.h (4811, 2019-07-03)
lpspi1uart2\evkbimxrt1050_sdram_init.jlinkscript (9799, 2019-07-03)
lpspi1uart2\lpspi1_dma.c (7725, 2020-02-01)
lpspi1uart2\lpspi1_dma.h (559, 2020-02-01)
lpspi1uart2\lpspi_interrupt.c (17119, 2020-01-23)
lpspi1uart2\lpspi_interrupt.xml (7260, 2019-07-03)
lpspi1uart2\main.c (1211, 2020-02-02)
lpspi1uart2\mdk\EventRecorderStub.scvd (339, 2020-02-01)
lpspi1uart2\mdk\evkbimxrt1050_flexspi_nor.ini (3277, 2019-11-05)
lpspi1uart2\mdk\evkbimxrt1050_ram.ini (3278, 2019-11-05)
lpspi1uart2\mdk\evkbimxrt1050_sdram_init.ini (8692, 2019-11-05)
lpspi1uart2\mdk\JLinkLog.txt (155747, 2020-02-01)
lpspi1uart2\mdk\JLinkSettings.ini (760, 2020-01-23)
lpspi1uart2\mdk\lpspi_interrupt.uvguix.Administrator (171290, 2020-02-02)
lpspi1uart2\mdk\lpspi_interrupt.uvguix.nxa07674 (179252, 2019-11-14)
lpspi1uart2\mdk\lpspi_interrupt.uvmpw (496, 2019-11-14)
lpspi1uart2\mdk\lpspi_interrupt.uvmpw.uvgui.nxa07674 (93454, 2019-11-14)
lpspi1uart2\mdk\lpspi_interrupt.uvoptx (77652, 2020-02-01)
lpspi1uart2\mdk\lpspi_interrupt.uvprojx (181860, 2020-02-01)
lpspi1uart2\mdk\MIMXRT1052xxxxx_flexspi_nor.scf (3002, 2019-11-05)
lpspi1uart2\mdk\MIMXRT1052xxxxx_ram.scf (2282, 2019-11-05)
lpspi1uart2\mdk\MIMXRT1052xxxxx_sdram.scf (2617, 2019-11-05)
lpspi1uart2\mdk\output\lpspi_interrupt.map (208394, 2020-02-01)
lpspi1uart2\mdk\output\startup_mimxrt1052.lst (85051, 2020-01-23)
lpspi1uart2\pin_mux.c (18412, 2020-02-01)
lpspi1uart2\pin_mux.h (2039, 2019-07-03)
lpspi1uart2\uart2dma.c (6466, 2020-02-01)
lpspi1uart2\uart2dma.h (478, 2020-02-01)
lpspi1uart2\说明.txt (187, 2020-02-02)
lpspi1uart2\mdk\debug (0, 2020-02-02)
lpspi1uart2\mdk\output (0, 2020-02-02)
lpspi1uart2\mdk\sdram_debug (0, 2020-02-02)
lpspi1uart2\mdk (0, 2020-02-02)
lpspi1uart2 (0, 2020-02-02)

Overview ======== The lpspi_functional_interrupt example shows how to use LPSPI driver in interrupt way: In this example , one lpspi instance used as LPSPI master and another lpspi instance used as LPSPI slave . 1. LPSPI master send/received data to/from LPSPI slave in interrupt . (LPSPI Slave using interrupt to receive/send the data) Toolchain supported =================== - IAR embedded Workbench 8.32.3 - Keil MDK 5.27 - GCC ARM Embedded 8.2.1 - MCUXpresso 11.0.0 Hardware requirements ===================== - Mini/micro USB cable - EVKB-IMXRT1050 board - Personal Computer Board settings ============== Remove the resistor R334 and weld 0 resistor to R278,R279,R280,R281. LPSPI: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MASTER connect to SLAVE Pin Name Board Location Pin Name Board Location SOUT J24-4 SIN J24-2 SIN J24-5 SOUT J24-9 SCK J24-6 SCK J24-10 PCS0 J24-3 PCS0 J24-1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Prepare the Demo ================ 1. Connect a mini USB cable between the PC host and the OpenSDA USB port on the board. 2. Open a serial terminal on PC for OpenSDA serial device with these settings: - 115200 baud rate - 8 data bits - No parity - One stop bit - No flow control 3. Download the program to the target board. 4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo. Running the demo ================ When the example runs successfully, you can see the similar information from the terminal as below. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LPSPI functional interrupt example start. This example use one lpspi instance as master and another as slave on one board. Master uses interrupt way and slave uses interrupt way. Note that some LPSPI instances interrupt is in INTMUX ,you should set the intmux when you porting this example accordingly Please make sure you make the correct line connection. Basically, the connection is: LPSPI_master -- LPSPI_slave CLK -- CLK PCS -- PCS SOUT -- SIN SIN -- SOUT LPSPI transfer all data matched! End of example. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Customization options =====================

近期下载者

相关文件


收藏者