Different display between Flowcode and real PIC

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
bader357
Posts: 5
Joined: Sun Nov 02, 2008 2:55 pm

Different display between Flowcode and real PIC

Post 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
Attachments
Grafik1.jpg
(72.82 KiB) Downloaded 810 times

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: Different display between Flowcode and real PIC

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

Post Reply