current position:Home>Ad5761 cannot output voltage, and the SPI readback value is incorrect
Ad5761 cannot output voltage, and the SPI readback value is incorrect
2022-02-04 16:34:03 【CSDN Q & A】
CS0_L; //cs Pull it down while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0x01); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[1] = LL_SPI_ReceiveData8(SPI1); while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0xFF); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[2] = LL_SPI_ReceiveData8(SPI1); while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0xFF); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[3] = LL_SPI_ReceiveData8(SPI1); CS0_H; LDAC_L; //ldac Pull it down LL_mDelay(200); LDAC_H; //ldac pull up LL_mDelay(200); CS0_L; //cs Pull it down while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0x0B); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[3] = LL_SPI_ReceiveData8(SPI1); while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0x00); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[2] = LL_SPI_ReceiveData8(SPI1); while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0x00); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[1] = LL_SPI_ReceiveData8(SPI1); CS0_H; LL_mDelay(200); CS0_L; //cs Pull it down while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0x00); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[3] = LL_SPI_ReceiveData8(SPI1); while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0x00); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[2] = LL_SPI_ReceiveData8(SPI1); while(!LL_SPI_IsActiveFlag_TXE(SPI1)); // Wait for the data to be sent LL_SPI_TransmitData8(SPI1,0x00); while(!LL_SPI_IsActiveFlag_RXNE(SPI1)); data1[1] = LL_SPI_ReceiveData8(SPI1); CS0_H; LL_USART_TransmitData8(USART1,data1[3]); while(!LL_USART_IsActiveFlag_TXE(USART1)); LL_USART_TransmitData8(USART1,data1[2]); while(!LL_USART_IsActiveFlag_TXE(USART1)); LL_USART_TransmitData8(USART1,data1[1]); while(!LL_USART_IsActiveFlag_TXE(USART1));
Confirmed chip power supply , Confirm whether the wiring is connected correctly , I really don't know what's going on
Take the answer :
MD, To replace the MCU, The original MCUSPI voltage 5V, Switch to 32 Then become 3.3 Cause the chip not to recognize , No problem with the program
copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/02/202202041634019268.html
The sidebar is recommended
- Pseudo code method for solving missionary and savage problems
- Why is the second output different?
- How to do exercise three and exercise four?
- How to install Gnome on Linux
- Questions about C: 2 Randomly generate an integer array intarr (6 elements), and then define a string array strarr to convert the elements in the integer array into strings and store them in the string array
- ABAP database table could not be activated.
- Why does Fiddler show that the network is unavailable after the mobile agent is configured for remote connection
- Creating any project with dev C + + will report the following errors. What's going on.
- Which of the following arrays is not 5 in length?
- What's wrong with this code
guess what you like
-
How to compile this solution
-
Information matrix in visual slam
-
How to do the direct router? Please let me know
-
For the interface design of mobile application foundation, it is not clear how to add response mode
-
C language code problem, what went wrong
-
Who knows vs why
-
How can things in idea be exported normally
-
On Jacobian matrix in visual slam
-
What type of wechat applet does the freshman change develop
-
How to turn async into synchronous async await!!
Random recommended
- What are the main considerations of MapReduce optimization method?
- What is the scheme of DTS data subscription (new version)?
- What is the difference between MySQL clustered index and non clustered index?
- What is the scheme of data subscription (old version) of DTS?
- How to ensure the order of messages when Kafka is distributed in spark?
- What does data skew mean in spark?
- What is the difference between data migration and data synchronization in applicable scenarios?
- How should MapReduce optimize the method in the map phase?
- How is data skew caused in spark?
- What is the difference between data migration and data synchronization in the supported database deployment location?
- What is the specific solution of data skew in spark?
- What are resource groups in dataworks?
- What is the difference between the functional characteristics of data migration and data synchronization?
- What is the difference between data migration and data synchronization in billing methods?
- What resource groups are there for data integration in dataworks?
- How to understand the shuffle process in spark?
- What is the difference between billing data synchronization and data migration?
- What are the aggregation operators in spark? What types of operators should we try to avoid?
- What is the role of data migration in DTS?
- What is the description of structure migration in DTS?
- Why is spark fast? Must spark SQL be faster than hive
- What is the description of full data migration in DTS?
- What is the description of incremental data migration in DTS?
- What does RDD in spark mean?
- What is the basic logical architecture of the crowd selection system based on maxcompute + hologres?
- What are the multiple ETL features supported by data migration in DTS?
- How should MapReduce optimize the method in the reduce phase?
- What is the RDD operator in spark and how to understand it?
- What is the alarm mechanism of data migration in DTS?
- What is the migration task management of data migration in DTS?
- What does DAG in spark mean?
- What are the technical requirements for crowd selection based on maxcompute + hologres?
- What does stage mean in spark?
- How can RDD in spark be fault tolerant through record updating?
- What are the core demands of the service engine of the crowd selection system based on maxcompute + hologres?
- What are the isolation levels of MySQL transactions?
- What does MySQL mean by unreal reading, dirty reading and non repeatable reading?
- What is the description of the scheduling strategy of multi copy mode in DTS data integration?
- How many calculation modes can the crowd circle selection system based on maxcompute + hologres be divided into?
- How to understand wide dependence and narrow dependence in spark?