-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Description
Looks like these 2 signals do not have the required pullup resistors attached on the Arduino DUE board like SDA and SCL. Should have these resistors in place for test today or tomorrow. I'll update this post with the results.
Are there any known issues using SDA1 and SCL1 on the Arduino DUE platform?
Our application requires both Wire and Wire1 peripherals. Wire (SDA,SCL) works fine but Wire1 (SDA1, SCL1) is not working. Putting a scope on these signals it clear that the initialization phase is failing. Since Wire1.begin() does return status and since we can not single step the code, I figured I would ask for help prior to diving into Wire.cpp.
Thanks
Timothy Kimball
/* *****************************************************************************
-
@brief Initializes the communication peripheral.
-
@param device - Specifies the Wire or Wire1 I2C peripheral.
-
@return - None.
*******************************************************************************/
void I2C_Init(uint8_t side)
{
// Assume IIC is working.
ad5934[side].iicStatus = true;// Use the Arduino Wire Class to initialize I2C.
// Note: I2C will run at 100Khz by default.
if (side == eSideA)
{
Wire.begin();
}
else
{
Wire1.begin();
}
}