source: trunk/FirmwareFX2/readme-spi.txt@ 48

Last change on this file since 48 was 9, checked in by demin, 15 years ago

fix EOL codes

File size: 648 bytes
Line 
1==== SPI Master on FX2 ====
2
3This firmware implements a SPI Master.
4
5The following pins on IOA are used :
6
7SCLK BIT0
8SDO BIT1
9SDI BIT3
10SS_N BIT7
11
12There is only one slave select available (all other pins of IOA are being used
13by used by bulk transfer control lines, and the other IOx aren't routed to the
14fpga)
15
16By default, those lines are not enabled.
17
18Control of the SPI master is done through vendor commands. Those include:
19- Output enable VEN_SPI_EN 0x96
20- Output disable VEN_SPI_DIS 0x97
21- Read VEN_SPI_RD 0x98
22- Write VEN_SPI_WR 0x99
23
24spi specific code is in spi.c
25
26==== C code examples ====
27To be done
28
29
30
31--- 2008, Matthias P. Braendli
Note: See TracBrowser for help on using the repository browser.