Hi, seeking advice on an issue I have struck with a 28X2 based solar battery charge controller I have built and programmed. The original design for the controller was based on an 18X (AXE10 datalogger board) that worked fine for several years. I have now included additional functionality including the use of an i2c LCD. This additional functionality meant I had to deploy a new 28X2 based design. The new design has three i2c devices (DS3231 RTC, 24LC256 eeprom, and the LCD using a PCF8574). The program I've written occupies nearly all the capacity of the 28X2. I run the 28X2 at 16MHz (setfreq m16).
The issue is that the 28X2 seems to reset itself randomly. Everything will work for days and then reset itself for no apparent reason. At first I suspected a power supply issue but after a rebuild using a standard 7805 and fitting additional decoupling caps the problem appears unaffected. I have used another 28X2 but again no affect. I have run the 28X2 at lower clock speeds and again no apparent affect on the issue. I have temporarily omitted some less critical sections of code all to no affect.
I have attached the program for interested parties but I was wondering if there is some fundamental issue with the 28X2 in the way I'm trying to use it in this application that I'm not aware of ?View attachment VOLTAGE LOGGER_CONTROL_V24_28X2_100116.bas
Any comments or advice appreciated.
David
The issue is that the 28X2 seems to reset itself randomly. Everything will work for days and then reset itself for no apparent reason. At first I suspected a power supply issue but after a rebuild using a standard 7805 and fitting additional decoupling caps the problem appears unaffected. I have used another 28X2 but again no affect. I have run the 28X2 at lower clock speeds and again no apparent affect on the issue. I have temporarily omitted some less critical sections of code all to no affect.
I have attached the program for interested parties but I was wondering if there is some fundamental issue with the 28X2 in the way I'm trying to use it in this application that I'm not aware of ?View attachment VOLTAGE LOGGER_CONTROL_V24_28X2_100116.bas
Any comments or advice appreciated.
David