Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix I2C Read Sequence extra unused byte transmission error
Due to extra unused byte transmission in the Read Sequence,causing I2C cannot successfully pass test_connection function. Bug discription: Predicted Reading Sequence Master |S|AD+W| |RA| |S|AD+R| | |NACK|P| Slave | | |ACK| |ACK| | |ACK|DATA| | | But,in the second Start condition,original code could cause extra byte(because using RestartI2C() function). Using StopI2C() and then StartI2C() can fix this error
- Loading branch information
Showing
5 changed files
with
184 additions
and
98 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
dsPIC30F/I2Cdev/I2CdevdsPic30F.X/nbproject/Makefile-genesis.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.