基于MPC860与STl6C6 5 4的串行通信设计
1.2 系统组成
电路设计需要注意:1)MPC2860采用大端(big-end)工作模式,STl6C*从BD0开始接收数据。STl6C*数据总线D[0..7]连接MPC860的数据总线D[7..0],地址总线A[O..4]连接MPVC860地址总线A[31..27];2)STl6C*采用Motorola模式即
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_0.jpg)
接地,此时
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_1.jpg)
控制为0,就是对4路串口同时使能,选择A3,A4就可以对具体通道操作;3)采用定时查询模式,STl6C*的
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_2.jpg)
与MPC860的
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_3.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_4.jpg)
连接,
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_5.jpg)
与MPC860的
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_6.jpg)
连接,
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_7.jpg)
置空,以实现了串口数据的接收后以UDP协议包发送到以太网和从以太网收到的UDP包数据按协议重打包后发送到指定端口;4)时钟选择为14.7*MHz,
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_8.jpg)
为0,但实际波特率要通过MCRBIT7初始化设置,各路传输速率最高可达921.6 Kb/s。STl6C*电路设计如图3所示。
![](http://m.amcfsurvey.com/editerupload/fetch/20130926/170797_2_9.jpg)
评论