Reply 80 of 116, by feipoa
- Rank
- l33t++
The 5V regulator that the EtherTen is using is the MC33269DTRK-5.0G, shown here: https://www.digikey.ca/en/products/detail/ons … TRK-5-0G/919041 Specs say it can do 800 mA, which according to the Wiznet load, should be OK for powering the Clock Gen PCB.
I will test things with regular Uno before looking this issue further. It would be nice to not need to connect my desktop variable PSU. I ordered an Uno from eBay Canada for $13 CAD ($23 shipped), but as the seller has (0) feedback score, it may be a scam at this price. https://www.ebay.com/itm/356013787437 Digikey.ca sells these for $40.
rasz_pl wrote on 2024-10-13, 09:39:Frankly I dont believe you ;] There is zero* chance of this working with no ground connection. I2C works by shorting to ground, no common ground connection means arduino wasnt shorting anything from 5351 perspective.
* some magical parasitic effect due to two SI5351 I/O pins at different potential? but even that wouldnt work in cases where both need to be grounded at same time.
Concerning not having the Arduino GND connected to the Clock Gen PCB, you can refer to my benchtop photos here, see the first 3: Project: Full Can Clock Oscillator Replacement I did not have the 5V and GND headers on the clock gen PCB, yet the Arduino must be sending the singal via I2C to the original clock gen PCB (no ATtiny85), otherwise the SI5351 wouldn't be outputting a clock. I thought maybe I had tied the Arduino GND to the MB GND, but I don't see this in the photos.
Yes, those integer-only mode frequencies look right. I was testing primarily with 84.375 MHz using the Adafruit code. I had planned on trying to measure the jitter between the integer and fractional modes, but haven't got around to it. From what you wrote, it sounds like the jitter should be about the same in both cases.
Concerning your code recommendations to disable Spread Spectrum on the riyas.org code (tiny5351), I receive these errors upon compiling:
/home/feipoa/snap/arduino/current/Arduino/libraries/tiny5351-master/tiny5351.c:39:9: error: conflicting types for 'i2cSendRegister'
uint8_t i2cSendRegister(uint8_t reg, uint8_t data)
^~~~~~~~~~~~~~~
/home/feipoa/snap/arduino/current/Arduino/libraries/tiny5351-master/tiny5351.c:34:2: note: previous implicit declaration of 'i2cSendRegister' was here
i2cSendRegister(149, regval);
^~~~~~~~~~~~~~~
/home/feipoa/snap/arduino/current/Arduino/libraries/tiny5351-master/tiny5351.c: In function 'si5351_freq':
/home/feipoa/snap/arduino/current/Arduino/libraries/tiny5351-master/tiny5351.c:85:22: error: 'false' undeclared (first use in this function)
enableSpreadSpectrum(false);
^~~~~
/home/feipoa/snap/arduino/current/Arduino/libraries/tiny5351-master/tiny5351.c:85:22: note: each undeclared identifier is reported only once for each function it appears in
exit status 1
Error compiling for board ATtiny25/45/85 (No bootloader).
Plan your life wisely, you'll be dead before you know it.