A projects to learn the SPI API of the RP2040 C SDK, and to use it to control an external Flash IC. In this post, the schematic.
|
ST Micro M25P16-VMN6P NOR Flash 16MBit
That's the full name of the IC (datasheet). It's a common one - I used a similar one with VHDL during the Summer of FPGA. It talks SPI, with two additional lines for Write Protect and Hold functionality.
image source: data sheet
Pico pins
pin | IC function | PICO function | GPIO | PICO pin | |
1 | S# | SPI1 CSn | IO9 | 12 | has to be different than the one used by the SD Card, if sharing SPI1 |
2 | DQ1 | SPI1 RX | IO12 | 16 | |
3 | W# | GPIO | IO14 | 19 | |
4 | VSS | ground | 38 | ||
5 | DQ0 | SPI1 TX | IO11 | 15 | |
6 | C | SPI1 SCK | IO10 | 14 | |
7 | HOLD# | GPIO | IO15 | 20 | |
8 | VCC | 3V3 (OUT) | 36 |
I used the EuroCard dev board. The IC is soldered on the SOIC-8 proto area, and the wiring done at the underside. I tapped VSS and VCC from the rotary encoder pads, because they were conveniently nearby.
To make probing easy, I also soldered headers.
Next blog: software.