Heart STM32- minimalist channel (Volume) Chapter 11 SPI

Heart SSTM32- minimalist channel (Volume)

Many years ago, because foreign video love the UAV, thus began the STM32 learning. Detour to climb for a few years, an end to the hobby becomes a job!
Spending his spare time, slowly recorded using the experience of work, and development experience
to complicated from the room, is the aim., for future reference, but also facilitate the later brothers.

Chapter 11 SPI_W25Q128

Common hardware parameters
Model: W25Q128
Package: SOIC-8
Capacity: 16MB
Voltage: 3.3V
Price: 7 yuan

1_ experience

  • SPI protocol experience

    • Play the STM32, or other chips, I2C and SPI are the two most commonly used protocols,
    • Scenario: the PCB data transmission between chips, such as SD-card data reading.
    • One of the five focus my mind: .... The GPIO interrupt the I2C the SPI clock , five kind of use must be deep, the other content can be well understood
    • SPI protocol few points, in fact, has a good package of hardware transmission timing, initialization simply set these parameters east can be used, the following procedures will be an example:
      • 1-wire full-duplex communication direction __ most common
      • 2 from the master is responsible for generating SCK master mode __
      • 3 or the data size of 16 bits __8
      • 4 __ the SCK clock polarity bit level Idle
      • 5 __ collect data clock phase SCK odd lines or even lines
      • 6 level in advance __ data transfer is to high, low or first
      • 7 __ transmission rate is mainly limited by the lowest one clock
      • 8 CRC checksum
  • W25Q128 experience

    • Save data: Brown can not afford to lose, effective for about 20 years.
    • Font picture industry parameters ...
    • Fixed up five lines: 3.3v, GND, MOSI (DIO), MISO (DO), NSS (CS)
    • Data in 1K with 24C02 series, with W25Q128 series, and then on the left and right of the large 32M SD card (TF card compatible, but compatibility is not good)
    • Font with W25Q64 enough to do on the system or interface with W25Q256
    • Main code segment memorize down after streamlined structures and algorithms are too common, c h file and the file you want to transplant a good package, and more notes, it is really too common hardware

2_ hardware

3_ Programming

Guess you like

Origin blog.csdn.net/zhouml_msn/article/details/90055260