Page 1 of 1

Different display between Flowcode and real PIC

Posted: Sun Nov 02, 2008 3:08 pm
by bader357
I writing a small program with one 7 segment display for the 16F877a. If I enter a 0 in Flowcode so I become a 0 in the program but on the real PIC only a (-.) minus and decimalpoint.
Also only the output RB6 and RB7 are aktiv on Processor piture in Flowcode, but for a 0 should are be 6 outputs aktive, why?
Sorry for my english and thanks

Re: Different display between Flowcode and real PIC

Posted: Mon Nov 03, 2008 11:06 am
by Steve
The 7-segment component in Flowcode is a "common anode" variety. It sounds like your "real" display is a common-cathode one. You can edit the code in the C file accompanying the display component (in the "components" subdirectory of Flowcode) so that it gives out the correct values for the digits.