This is the reset timing diagram. Let's analyze how to read the timing diagram in combination with the program.
The IN and OUT above are definitions for the SD card as the host. IN is the interface for the microcontroller to send data to the SD card, and OUT is the interface for the SD card to send data.
Timing diagram We write the program step by step based on the CLK status. The first part is: 74 clock beats, which means starting to send 74 clock beats. CS must be set high, data line IN must send 1, and OUT can be ignored. The program is as follows
SD_CS=1;
for(i=0;i<0x0f;i++)
SD_CS=0;
In this way, we have completed the first part of the timing. SD_spi_write() is the read and write function of the SPI interface that I wrote earlier. Here we sent more than 74 clock beats. Will this be a problem? We can see that there is a blank after 74 in the timing diagram, so there is no problem. The timing beats can be more but not less.
Previous article:SD card SPI read and write subroutines and SD card settings for SPI bus operations
Next article:Use of volatile variables
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Why do electrolytic capacitors explode? Find out in one article!
- Namisoft's design report on labview spectrum analyzer
- [Iprober 520 current probe] Calibration and use in PCB mode
- A brief history of hard disk interface evolution
- Hot plug and unplug
- EEWORLD University ---- STM32CubeMX and STM32Cube HAL basics
- [TI mmWave Radar Evaluation]_3_AWR1843BOOST Corridor Ranging Test Environment
- What is the relationship between the Internet of Things and embedded systems?
- How to use ATA-L series underwater acoustic power amplifier?
- Live broadcast at 10 am today [Infineon Smart Door Lock Solution]