7/30/2019
Basys MX3 Reference Manual [Reference.Digilentinc]
https://reference.digilentinc.com/reference/microprocessor/basys-mx3/reference-manual?_ga=2.68739409.1349070004.1564406803-1961480359.…
28/52
Note that RC1(SPI2_SI) and RC4 (SPI2_SO) need to be remapped to perform SDO2 and SDI2 functions. Also, note that the naming of the
signals is reversed, as SPI2_SI and SPI2_SO are named from slave perspective, while SDO2 and SDI2 are named from the microcontroller
perspective.
Table 11.1. SPI connectivity.
Pmod A pin
Function
PIC32 Pin
Needed Mapping for SPI2
JA1
SPI2_SS
RPC2/RC2
JA2
SPI2_SI
RPC1/RC1
RPC1R = 0x06; // SDO2 – RC1
JA3
SPI2_SO
RPC4/CTED7/RC4
SDI2R = 0x0A; // SDI2 – RC4
JA4
SPI2_SCK
AN16/C1IND/RPG6/SCK2/PMA5/RG6
Communication over the SPI2 interface is implemented in the SPIJA library of the Basys MX3 library pack.
The Basys MX3 comes with 4 MB () of onboard flash memory. The part used is the Spansion S25FL132 and is an SPI memory. More
information about the SPI interface is found in the Serial Peripheral Interface section.
Figure 12.1 depicts the way the Flash memory is controlled by digital signals.
It contains 1024 sectors of 4 KB, making the total capacity 4MB. The following table, shown in Table 12.1 extracted from the S25FL132K
datasheet, shows the main memory address map.
Table 12.1. S25FL132K Main Memory Address Map.
Sector Size (kbyte)
Sector Count
Sector Range
Address Range (Byte Address)
Notes
4
1024
SA0
000000h-000FFFh
Sector Starting Address
:
:
-
12. Flash Memory