Page 1 of 1

C PROGRAMMING BASICS IN FLOWCODE

Posted: Wed Sep 29, 2010 8:49 am
by PUTS_JO
BEST C PROGRAMMERS

I am starting from scratch
i want to count up in c program the value of text and then print it on my lcd as a test program
it is working for the normal calculation but not for the c code ;
what am i doing wrong ?
the test file is attached
kind regards
puts johan belgium

ps : the char in the first line must be an int ; but doesnt solve the problem

Re: C PROGRAMMING BASICS IN FLOWCODE

Posted: Wed Sep 29, 2010 10:30 am
by Dan81
Hello Johan

Flowcode cannot simulate C code.
LCD was not initialised (macro LCD Start) (useful for real life)
I've modifed your C code , it is not useful to declare FCV_TEXT , Flowcode do it when you declare Text, I have also removed "main"

The file is OK with Proteus ( sorry I tested it with 16F887 and LCD on port B)


Daniel

Re: C PROGRAMMING BASICS IN FLOWCODE

Posted: Wed Sep 29, 2010 11:47 am
by PUTS_JO
BEST DANIEL,

Thanks for your helpful reply.I didn't know that the simulution on c code was not possible.
you talked about 'proteus ' is this something to have as electronics engineer for programming in c flowcode?
i do not know what it is...

Thanks in advance
puts johan :D :D

Re: C PROGRAMMING BASICS IN FLOWCODE

Posted: Wed Sep 29, 2010 12:15 pm
by Dan81
Hello Johan

Proteus is a software with which you can :
- draw schématics
- simulate (very interesting and powerful, and the results are very close to the real life)
- draw layout.

Very useful when your hardware is not ready.

http://www.labcenter.com/index.cfm

Daniel