Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 224306

Forum Post: AM2634-Q1: IIC configuration issue

$
0
0
Part Number: AM2634-Q1 Tool/software: When our boot jumps to the APP, Cdd_I2c_DeInit() is not called; The configuration of IIC in boot is: I2C_ICPSC=7; I2C_ICCLKL=9; I2C_ICCLKH=9; The configuration of IIC in the APP is: I2C_ICPSC=0xB; I2C_ICCLKL=5; I2C_ICCLKH=5; At this point, when testing the IIC frequency, it was found that it was 380Khz in boot and 520Khz in APP. With the same configuration, when boot jumps to the APP, Cdd_I2c_DeInit() is called; At this point, when testing the IIC frequency, it was found that it was 380Khz in boot and 360Khz in APP. We found that this phenomenon was caused by the IRS configuration in Cdd_I2c_DeInit(). After calling Cdd_I2c_DeInit(), IRS=0; This is normal at this time. When boot jumps to the APP, if Cdd_I2c_DeInit() is not called, that is, when IRS=1, the three registers I2C_ICPSC, I2C_ICCLKL, and I2C_ICCLKH are modified, the modification should not take effect at this time. Why does the frequency change to 520Khz?

Viewing all articles
Browse latest Browse all 224306

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>