EEPROM Data Assembly Code Question

Status
Not open for further replies.

ejjohnso

Newbie
Joined
Jul 1, 2021
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
23
Years ago, a friend created a charge controller for my students to build, but it always seemed buggy, and not knowing anything about Assembly Language, I was not able to troubleshoot for potential issues. So it sat for years relatively unused. This summer I decided to set out and learn the language with the hopes of finding the problem. I think I've pretty much understood everything except the last bit of code. The idea of the controller is the take 4 preset voltage values (14.7, 12.6, 12.2 and 11.6) and execute some function at each point. Essentially relays are triggered if these values are met. Can someone tell me if the following code for the EEPROM is correctly input? I have included the code in question as well as the entire code if context is needed. I've also included the schematic if, for example, voltage divider values are needed.

Thank You in Advance

Code in Question:

; EEPROM Data
EE CODE 0x2100
DE 0x48, 0x5C, 0x67, 0x93
END ; directive 'end of program'

Entire Code:
 

Attachments

  • Charge Controller Schematic.pdf
    211.2 KB · Views: 104

The lines you ask about is just a table in EEPROM with 4 entries.
It is probably the voltage limits, and data in EEPROM can be changed without reprogramming the software.

Some obvious problem in the schematic:
The Zener diode and the capacitor in parallel with the 5.6k resistor seem to be reversed, and no voltage specified for the diode.
There are no freewheeling diodes across the relay coil connections.
 

Thank you... I will make these changes and hopefully see a cleaner working controller.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…