![]() With the two tests that took hours and hours to finish, the average was 3 errors in 11 million. When noise was very low (no square wave), I was able to do 11 million read-after-write with 3 errors (total) - I encounter my error after 10million, so 11 million became the bar for the second run. The noise I was trying to reduce was when the DS1307 has squarewave turned on. My test was to write than read back the 56 bytes of nvram on the DS1307. I have 3 I2C devices (not including the MCU) and found the I2C rather works reliable when noise is low. ![]() I was trying to minimize noise impact on my devices. I did some extensive tests back around Christmas time after making a DS1307 clock. I am wondering if you have devices not being happy at 3.3V. I found that if I loaded the board down and pull the power below about 4.8V, my LCD and other devices go nuts frequently. First, the 3.3V - I am using 5V and I have a couple of LCD 20x4. ![]() I think the 3.3V and/or noise may be an issue. ![]() You're doing serial out to what's presumably 5v without level shifting Still not clear there but if that's the case you could be injecting 5v into your 3.3v circuit which would be bad. Code: atmega328bbA.name=ATmega328 breadboard (8 MHz internal clock)(via ArduinoISP) =stk500 _size=30720 =arduino:arduinoisp =57600 _fuses=0圎2 _fuses=0xDA # BOD on #_fuses=0x05 # BOD OFF _fuses=0x07 =arduino:atmega =ATmegaBOOT_168_atmega328_pro_8MHz.hex _bits=0x3F _bits=0x0F =atmega328p _cpu=8000000L =arduino:arduino It's also a good idea to put a bit of a delay into your setup procedure like 5 seconds to give everything a chance to start up fully but not until you've sorted out your clock speeds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |