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

Forum Post: MSP430F5529: Use I2C Module to read data - after set MCLK as 32MHz

$
0
0
Part Number: MSP430F5529 Tool/software: Hi, When I use I2C module of MSP430F5529, some problems happened. I use the following code to send one read-byte signal. ( current MCLK is 32MHz ) The interrupt code is as following After I2C module initiation, I enable NACK interrupt, and start to transmit read-byte signal. The signal I want to send is as following When I test if receive NAK reply before repeat start signal, something I does not expect happened , for example I want to send stop signal when I receive NAK signal, in the above example, I want to send stop signal after receive 0x00[NAK], and the following read signal will not send any more, just like following Is there any problem with my code? How can I change my code to realize the expected function and fix this problem? Best Regard, ZJY

Viewing all articles
Browse latest Browse all 226897

Trending Articles



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