完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
1. 此款LaunchPad是否可以通过板载的USB mini接口向上位的PC机传递数据?该怎样进行配置?
2. MSP432系列的eUSCI_B模块的I2C模式下UCBxBR0和UCBxBR1这两个寄存器是什么功能,该怎么配置?文档SLAU356A完全没说这两个寄存器是怎样配置bit rate的。 |
|
相关推荐
4个回答
|
|
|
|
我看的文档就是你说的那个user guide。不仅是MSP432这款产品的这两个寄存器没有说明如何使用,MSP430x5xx and MSP430x5xx family user's guide 也没有对eUSCI模块下I2C模式这两个寄存器的使用方法进行说明。 |
|
|
|
hanbai795 发表于 2018-6-21 21:19 参见 P779 MSP432 用户手册, I2C Clock Generation and Synchronization The I2C clock SCL is provided by the master on the I2C bus. When the eUSCI_B is in master mode, BITCLK is provided by the eUSCI_B bit clock generator and the clock source is selected with the UCSSELx bits. In slave mode, the bit clock generator is not used and the UCSSELx bits are don't care. The 16-bit value of UCBRx in registers UCBxBR1 and UCBxBR0 is the division factor of the eUSCI_B clock source, BRCLK. The maximum bit clock that can be used in single master mode is fBRCLK/4. In multimaster mode, the maximum bit clock is fBRCLK/8. The BITCLK frequency is given by: fBitClock = fBRCLK/UCBRx The minimum high and low periods of the generated SCL are: tLOW,MIN = tHIGH,MIN = (UCBRx/2)/fBRCLK when UCBRx is even tLOW,MIN = tHIGH,MIN = ((UCBRx – 1)/2)/fBRCLK when UCBRx is odd The eUSCI_B clock source frequency and the prescaler setting UCBRx must to be chosen such that the minimum low and high period times of the I2C specification are met. During the arbitration procedure the clocks from the different masters must be synchronized. A device that first generates a low period on SCL overrules the other devices, forcing them to start their own low periods. SCL is then held low by the device with the longest low period. The other devices must wait for SCL to be released before starting their high periods. Figure 24-16 shows the clock synchronization. This allows a slow slave to slow down a fast master. |
|
|
|
guigui_7044 发表于 2018-6-21 21:34 在MSPWare中有一个工程 msp432p401_euscib0_i2c_10。在这个工程里有这么句话 UCB0BRW = 0x0018; // baudrate = SMCLK / 8 为什么是8分频而不是24分频。 另外,这个SMCLK并没有被配置过,它的默认值是4MHz吗??如果我自己配置了SMCLK,在之后要如何变回默认值? (新手,问的问题有点白,还请见谅) |
|
|
|
只有小组成员才能发言,加入小组>>
871 浏览 0 评论
TMS320F28377D:新做了以377d为芯片的板子,上电后芯片复位引脚出现方波请问如何解决?
2057 浏览 0 评论
TPS55340通电后输入端保险丝烧断,芯片输入和GND之间短路
3792 浏览 4 评论
5151 浏览 0 评论
请问如何用DM368对RGB格式的图片数据进行编码生成JPEG格式图片?
1843 浏览 1 评论
CC3100BOOST使用CC3200lunchXL进行烧录
837浏览 2评论
74浏览 2评论
84浏览 2评论
72浏览 2评论
102浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-18 17:41 , Processed in 0.636156 second(s), Total 83, Slave 67 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号