You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've read in SAMD21 datasheet that the frequency generated for the I2C SCL line depends on the BAUD register.
Accoring to the documentation, this field should be generated using the following ecuations:
Bits 7:0 – BAUD[7:0] Master Baud Rate
This bit field is used to derive the SCL high time if BAUD.BAUDLOW is non-zero. If BAUD.BAUDLOW is zero, BAUD
will be used to generate both high and low periods of the SCL.
For more information on how to calculate the frequency, see SERCOM 25.6.2.3 Clock Generation – Baud-Rate
Generator.
I've seen in the code inside this method that clock frequency is generated using the following line:
I'll assume that you are dividing by 1000000 SysctemCoreClock and then multiplying by 1000 for unit conversion purposes, But another thing. This formula will work only if BAUD.BAUDLOW is 0, is it worth it to add the following line before the formula?
I've read in SAMD21 datasheet that the frequency generated for the I2C SCL line depends on the BAUD register.
Accoring to the documentation, this field should be generated using the following ecuations:
I've seen in the code inside this method that clock frequency is generated using the following line:
I was willing to know where this ecuation comes from as in the documentation says that for Synchronous baudrate the following ecuation should be used:
From that point of view, should that line be something like this?:
The datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D21_DA1_Family_DataSheet_DS40001882F.pdf, page 412-413
The text was updated successfully, but these errors were encountered: