I am trying to access DS3231 RTC using the I2C port 2 of the RTL8195.

However I am unable to get any signal for the NACK.
In the trace from the Logic analyzer I see that the I2C transaction is failing.
However in the firmware I am not getting the warning or indication.

Here is the code:

#include <Wire.h>

void setup() {
Wire2.begin();        // join i2c bus (address optional for master)
Serial.begin(9600);  // start serial for output

void loop() {
Wire2.beginTransmission(B11010000); // transmit to device DS3231
Wire2.write(0x00);                  // sends one byte Address
if(Wire2.endTransmission())         // stop transmitting
Serial.println("Error in Transmission");




Attached is a snap shot of one transaction on the I2C bus.


Not sure why the communications fault is not registered.

Please look into this.

Warm Regards,


boseji 回答了