PaulHetrel
New Member
Dear readers,
I've built the hardware for a clock project that employs an AXE033 LCD display module with optional clock upgrade using ic2 mode and interfaced to a 28X1 chip.
I can readily display text on the program using the ic2 test programming example (refer document AXE033.pmd v4.1 pg 6). My problem is that when trying to display a clock time on the LCD screen, it is blank. The conditions and other details of the programming and hardware configuration are this:
• The output LED from the DS1307 flashes twice in quick succession every 1 second as if the output is being reset.
• I have the 28X1 mounted on a project development board and removed the 10K resistor array from it and provided my on own pull up resistors for the switch inputs used for the project.
• Note the AXE033 has its own pull up resistors for the sda/scl lines. The SDA/SCL lines are OK as far as continuity from the DS1307 to inputs 3 and 4 of the 28X1
• ic2 mode used as per instructions set out in above referred doc. (AXE033)
• Using a 4.5V rail (3 x 1.5 batteries) with voltage protection diode shorted.
• I have linked (J1) in the clock module to operate in Ic2 mode. Voltage at the Vcc pin of the DS1307 is sitting at about 4.7V. I have ramped this up to 5.0V.
• The contrast setting is OK as would be expected with a text output.
• I have tried using the Hic2 commands in place the ic2, slave, write and read commands as recommended by the basic commands manual.
• I have tried reading from data memory using the EEPROM command rather than the DS1307 registers, but still failing to display anything.
• I have loaded sample times into the registers of the DS1307 and initialised the DS1307 & LCD display .
• Appropriate conversions of the time data from BCD to ASCII have been done.
My questions are:
What is causing the display to fail reading/writing from the DS1307?
Is there a basic RTC clock set-up test program that would work for my hardware set-up to ensure that my programming is correct?
Can serial mode be used for this project although the AXE1033 documentation suggests i2c mode to be used for an X1 type chip and the reading./writing from the DS1307 ?
The last question is where can I see any indication of the time clock or text variables in the simulator software of DS1307 registers and/or what is going and from the LCD module? I know this is available in the serial mode and display output can be seen on the simulator panel. The variables I did use were b0-b6 with a control variable, but need further indication to what is happening and have tried other combinations as per sample programs in the Basic commands manual.
Thank-you in advance for any comments and/or suggestions to help solve these issues.
Regards
Paul Hetrelezis
I've built the hardware for a clock project that employs an AXE033 LCD display module with optional clock upgrade using ic2 mode and interfaced to a 28X1 chip.
I can readily display text on the program using the ic2 test programming example (refer document AXE033.pmd v4.1 pg 6). My problem is that when trying to display a clock time on the LCD screen, it is blank. The conditions and other details of the programming and hardware configuration are this:
• The output LED from the DS1307 flashes twice in quick succession every 1 second as if the output is being reset.
• I have the 28X1 mounted on a project development board and removed the 10K resistor array from it and provided my on own pull up resistors for the switch inputs used for the project.
• Note the AXE033 has its own pull up resistors for the sda/scl lines. The SDA/SCL lines are OK as far as continuity from the DS1307 to inputs 3 and 4 of the 28X1
• ic2 mode used as per instructions set out in above referred doc. (AXE033)
• Using a 4.5V rail (3 x 1.5 batteries) with voltage protection diode shorted.
• I have linked (J1) in the clock module to operate in Ic2 mode. Voltage at the Vcc pin of the DS1307 is sitting at about 4.7V. I have ramped this up to 5.0V.
• The contrast setting is OK as would be expected with a text output.
• I have tried using the Hic2 commands in place the ic2, slave, write and read commands as recommended by the basic commands manual.
• I have tried reading from data memory using the EEPROM command rather than the DS1307 registers, but still failing to display anything.
• I have loaded sample times into the registers of the DS1307 and initialised the DS1307 & LCD display .
• Appropriate conversions of the time data from BCD to ASCII have been done.
My questions are:
What is causing the display to fail reading/writing from the DS1307?
Is there a basic RTC clock set-up test program that would work for my hardware set-up to ensure that my programming is correct?
Can serial mode be used for this project although the AXE1033 documentation suggests i2c mode to be used for an X1 type chip and the reading./writing from the DS1307 ?
The last question is where can I see any indication of the time clock or text variables in the simulator software of DS1307 registers and/or what is going and from the LCD module? I know this is available in the serial mode and display output can be seen on the simulator panel. The variables I did use were b0-b6 with a control variable, but need further indication to what is happening and have tried other combinations as per sample programs in the Basic commands manual.
Thank-you in advance for any comments and/or suggestions to help solve these issues.
Regards
Paul Hetrelezis