Line | |
---|
1 | ==== SPI Master on FX2 ====
|
---|
2 |
|
---|
3 | This firmware implements a SPI Master.
|
---|
4 |
|
---|
5 | The following pins on IOA are used :
|
---|
6 |
|
---|
7 | SCLK BIT0
|
---|
8 | SDO BIT1
|
---|
9 | SDI BIT3
|
---|
10 | SS_N BIT7
|
---|
11 |
|
---|
12 | There is only one slave select available (all other pins of IOA are being used
|
---|
13 | by used by bulk transfer control lines, and the other IOx aren't routed to the
|
---|
14 | fpga)
|
---|
15 |
|
---|
16 | By default, those lines are not enabled.
|
---|
17 |
|
---|
18 | Control 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 |
|
---|
24 | spi specific code is in spi.c
|
---|
25 |
|
---|
26 | ==== C code examples ====
|
---|
27 | To be done
|
---|
28 |
|
---|
29 |
|
---|
30 |
|
---|
31 | --- 2008, Matthias P. Braendli
|
---|
Note:
See
TracBrowser
for help on using the repository browser.