etherkit / Si5351Arduino

Library for the Si5351 clock generator IC in the Arduino environment
GNU General Public License v3.0
245 stars 98 forks source link

need definition of error messages #85

Open steeley opened 3 years ago

steeley commented 3 years ago

I'm using this library with a 4351b, 27Mhz Xtal and it seems to work well.

However I would like to see what LOS and REVID actually mean. in my case they always show 1 'indicating some kind of error"?? as show below. but my device seems to be working....

PLLA: 800000000 PLLB: 800000000 SYS_INIT: 0 LOL_A: 0 LOL_B: 0 LOS: 1 REVID: 1

Thanks

evg2 commented 1 year ago

I have same issue with Si5351, 25MHz and work well. I do not know what mean SYS_INIT: 0 LOL_A: 0 LOL_B: 0 LOS: 1 REVID: 1. I know that must be SYS_INIT: 0 LOL_A: 0 LOL_B: 0 LOS: 0 REVID: 3.

Thanks

tcarney57 commented 1 year ago

LOL means "loss of lock" (of the PLL), and LOS means "loss of signal" of the crystal or external clock. There's a few registers for these per generated clock. One set is "sticky" (meaning they have to be deliberately cleared), and the other is transient. These can be read from the device and used as desired. The library example sketch shows their use. In this case, just to confirm the device is working properly.

For detailed information on these and other registers, see Silicon Labs/Skyworks "AN619: Manually Generating an Si5351 Register Map."

evg2 commented 1 year ago

What is REVID doing. Why changes from 1 to 3 if status is normal?