4029 views|1 replies

931

Posts

3

Resources
The OP
 

CH549EVT development board test - SPI test [Copy link]

Since the use of timer conflicts with serial communication, the reason should be that serial port 0 uses timer 1 as the clock. Therefore, after enabling timer 1 (timing time is 100us) according to the example, serial port 0 cannot send data normally. I switched to timer 2, which still affects serial communication and cannot be solved for a while. Finally, I had to switch to SPI to transmit data. This time it went smoothly. After adding SPI.c, SPI0 was initialized in the main function, and then the logic analyzer was used to observe the pins of SPI0. By analyzing the waveform, the output result was completely correct. The next step is to debug the wireless transmitter module.

Here are the waveforms for the relevant pins:




This content is originally created by EEWORLD forum user hujj . If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

This post is from MCU

Latest reply

Come on, brother! We will provide prizes to excellent reviewers !   Details Published on 2019-7-8 09:32
 

45

Posts

0

Resources
2
 

Come on, brother! We will provide prizes to excellent reviewers !

This post is from MCU
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list