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
Different display between Flowcode and real PIC
Different display between Flowcode and real PIC
- Attachments
-
- Grafik1.jpg
- (72.82 KiB) Downloaded 810 times
- 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
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.