Recalling delay time after first cycle

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times

Re: Recalling delay time after first cycle

Post 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?

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Recalling delay time after first cycle

Post 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.
Martin

Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times

Re: Recalling delay time after first cycle

Post by Tony Brown »

Hi Martin

Will have to do that tomorrow, will only be a rough pic through, is that ok?

Regards

Tony

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Recalling delay time after first cycle

Post 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
Attachments
Delay timer V3a .fcf
(54.47 KiB) Downloaded 226 times
Martin

Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times

Re: Recalling delay time after first cycle

Post 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

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Recalling delay time after first cycle

Post 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
Attachments
Delay timer V3b Test .fcf
(54 KiB) Downloaded 250 times
Martin

Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times

Re: Recalling delay time after first cycle

Post 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

Post Reply