Page 2 of 2
Re: Recalling delay time after first cycle
Posted: Thu May 02, 2013 2:14 pm
by Tony Brown
Hi Martin
Thanks for replying.
I used the Delay timer V3 .fcf that is posted further up in this topic.
The pcb has strip pin connectors which the lcd plug straight into.
Im using a LM7805 Vregulator to get the 5V, could it be a smoothing issue?
Re: Recalling delay time after first cycle
Posted: Thu May 02, 2013 2:50 pm
by medelec35
Could you post your full circuit please, and I will take a look.
No issues with the third party simulator at all. No wrong chars on LCD.
Re: Recalling delay time after first cycle
Posted: Thu May 02, 2013 6:00 pm
by Tony Brown
Hi Martin
Will have to do that tomorrow, will only be a rough pic through, is that ok?
Regards
Tony
Re: Recalling delay time after first cycle
Posted: Thu May 02, 2013 7:38 pm
by medelec35
I have made some minor modifications.
Including long press A0 when stopped to reset picture count.
Added osccon c code block, to ensure osc is running at 4MHz.
Changed Trigger from RA5 (as that is i/p only) to RA4.
Changed trigger from 1 second to 500ms since there will be issues if timer is set for 1 second.
Can you try attached version please.
Martin
Re: Recalling delay time after first cycle
Posted: Sat May 04, 2013 10:07 am
by Tony Brown
Hi Martin
I have tried the new code and I still have the same problem.
I have had to change the pin outs a bit as my prototype board is set up different the pin outs are :
Hours A0 - pin 17
Minutes A1 pin 18
Seconds A2 pin 1
Go A3 pin 2
Data 1 B3 pin 9
Data 2 B2 pin 8
Data 3 B4 pin 10
Data 4 B5 pin 11
RS B0 pin 6
Enable B1 pin 7
Do you see any problem with the pin outs?
Regards
Tony
Re: Recalling delay time after first cycle
Posted: Sat May 04, 2013 12:25 pm
by medelec35
No don't see any problem, but if you would like to post flowchart I can use it for compiling to chip.
Attached is a modified Flowchart that will only test your i/p's and port B outputs are ok and not getting stuck high or low.
When sent to target divice B0 shoulf be high. So if you have a meter to measure voltage can you confirm that is the case please.
Then every time you press any of the 4 switches the portb out will change. So B1 only should be at 5V etc
Port b is just following this sequence each time any of the 4 buttons are pressed:
B5...B0
000001
000010
000100
001000
010000
100000
000001
000010
000100
001000
010000
100000
etc
Re: Recalling delay time after first cycle
Posted: Mon May 06, 2013 12:42 pm
by Tony Brown
Hi Martin
I tried the test code and everything is ok, got 5V on all pins that were tested on the scope. I did notice though that there is some sort of pulse on the contrast pin, is this normal? tried putting a cap across it to ground and that got rid of the pulse (although is still a bit untidy) and the contrast was still fine.
Regards
Tony