Hai everyone,
I CANT POST IT ON THE FLOWCODE V4 FORUM BECAUSE I DONT HAVE FLOWCODE AT HOME, WE USE FLOWCODE AT SCHOOL.
I'm making this project with Flowcode V4 and Eblocks. I use the Microcontroller 16f877A eblock USB programmer, eblocks LCD, eblocks switch board.
i have made my programme and i debugged it on flowcode and it works!!!! but when i put the programm into the microcontroller with eblocks and stuf it doesnt do anythinggg, i have tried EVERYTHING but i cant find an answer i REALLY hope one of you can help me cause this project is really important to me.
Can someone PLEASE tell me why when i debugg this it works but with eblocks it doesnt??
thankssss
Problem with Eblocks, pls help me !!!!
Problem with Eblocks, pls help me !!!!
- Attachments
-
- GIPPPPPPPPPP.fcf
- my programme
- (12.5 KiB) Downloaded 327 times
Last edited by iman05 on Tue Feb 15, 2011 5:54 pm, edited 1 time in total.
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
Re: PROBLEM WITH EBLOCKS, PLS HELP ME !!!!
Hi,
If you're using Flowcode v4, you'll need to post your questions/problems in the v4 forum.
Regards,
Nicolas L. F.
If you're using Flowcode v4, you'll need to post your questions/problems in the v4 forum.
Regards,
Nicolas L. F.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: PROBLEM WITH EBLOCKS, PLS HELP ME !!!!
I am assuming you are referring to a blank LCD?
1st If I was you I would put some indication on the display while B5 is low. The problem you have could be an issue with LCD or when you press B5, the i/p to port B5 may not be pulled high. Because you have got LDC to display values only after b5 goes high, you will not know which Eblock you have the problem with.
All I can advise is make sure you have both LCD and switch Eblock connected to +5V terminal block, and you have the recommended external DC supply plugged in to EB006 programming board.
There are quiet a few programing issues to do with you have got time1 and time2 as bytes, so after 255 ms, byte will rollover to 0 and start again.
Also non float calculations, if result of a calculation is under 1 e.g. 0.9 the result in the chip will be 0. So always multiply up to make result larger, then you can divide back down.
A Integer or byte * float always results in 0
You can try * int by 1.0 then * float, but I'm not sure if that will work. Some one else may be able to help you on that one.
I'm not sure how this is going to progress since it is off topic. Perhaps Staff at Matrix Multimedia, will confirm if you are using a genuine schools version for Flowcode 1st, then perhaps will move to V4 section? If they do then if you explain how you want your flowchart to work, E.g timing interval is up to a max of 250 ms etc. Then I can see if I can assist you further.
1st If I was you I would put some indication on the display while B5 is low. The problem you have could be an issue with LCD or when you press B5, the i/p to port B5 may not be pulled high. Because you have got LDC to display values only after b5 goes high, you will not know which Eblock you have the problem with.
All I can advise is make sure you have both LCD and switch Eblock connected to +5V terminal block, and you have the recommended external DC supply plugged in to EB006 programming board.
There are quiet a few programing issues to do with you have got time1 and time2 as bytes, so after 255 ms, byte will rollover to 0 and start again.
Also non float calculations, if result of a calculation is under 1 e.g. 0.9 the result in the chip will be 0. So always multiply up to make result larger, then you can divide back down.
A Integer or byte * float always results in 0
You can try * int by 1.0 then * float, but I'm not sure if that will work. Some one else may be able to help you on that one.
I'm not sure how this is going to progress since it is off topic. Perhaps Staff at Matrix Multimedia, will confirm if you are using a genuine schools version for Flowcode 1st, then perhaps will move to V4 section? If they do then if you explain how you want your flowchart to work, E.g timing interval is up to a max of 250 ms etc. Then I can see if I can assist you further.
Martin