📄 readme.txt
字号:
Readme File for Code Example:
CExxx - Using 2 SPI Slave Peripherals with one SPI module
---------------------------------------------------
This file contains the following sections:
1. Code Example Description
2. Folder Contents
3. Suggested Development Resources
4. Reconfiguring the project for a different dsPIC33F device
5. Revision History
1. Code Example Description:
----------------------------
This code example shows using the SPI module in conjunction with 2 GPIO pins to communicate with 2 different slave
devices. The concept is that the GPIO are the slave selects for the individual devices, but the SCL, SDI and SDO are shared between the two processors. This is also scalable up to n devices, where your only limitation is the bus bandwidth on the SPI bus and the number of GPIO lines at your disposal.
Slave Select1 ---| |---------------------------------------------------------
|________________________________|
Slave Select2 ---------------------------------------------| |-----------------
|_______________________________|
SCLK xxxxxxxxxx |-| |-| |-| |-| |-| |-| |-| |-| xxxxxxxxxx |-| |-| |-| |-| |-| |-| |-| |-| xxxxxxxxxx
xxxxxxxxxx_| |_| |_| |_| |_| |_| |_| |_| |_xxxxxxxxxx_| |_| |_| |_| |_| |_| |_| |_| |_xxxxxxxxxx
SDO xxxxxxxxxx d7 d6 d5 d4 d3 d2 d1 d0 xxxxxxxxxx d7 d6 d5 d4 d3 d2 d1 d0 xxxxxxxxxx
The code alternates between sending data from one device to another and mixed.
2. Folder Contents:
-------------------
This folder contains the following sub-folders:
a. C:\Program Files\Microchip\MPLAB C30\support\gld
This folder will have the device GLD file, it is used for building the project.
This file was provided with the MPLAB
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -