USART和SPI之间的通信 [英] Communication between USART and SPI

查看:388
本文介绍了USART和SPI之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

stm32f10x中USART2和SPI1之间是否可以通信? 我问是因为USART2时钟适用于APB1,而SPI1时钟适用于APB2. 实际上,我可以在USART1和SPI1之间进行通信,但不能与USART2进行通信.

Is it possible the communication between USART2 and SPI1 in stm32f10x??? I asked because USART2 clock works with APB1 and SPI1 clock works with APB2. and in practice i could have communication between USART1 and SPI1 but couldnt with USART2.

推荐答案

无论时钟如何,您都可以与各个外围设备进行通信. APB1和APB2只是时钟源,不应影响通信.

Well irrespective of clock , you can communicate with individual peripherals. APB1 and APB2 are just clock sources and it should not impact the communication.

这篇关于USART和SPI之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆