Help 7Segment Single x Quad

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

ACPC
Posts: 3
Joined: Thu Apr 18, 2019 7:05 pm
Contact:

Help 7Segment Single x Quad

Postby ACPC » Tue Apr 23, 2019 1:33 am

Only 7Segment Quad works, how to make 7Segment single works too?
I Alread checked datasheet but is not clear for me what is wrong.
Single
SEG0___________________SEG1__________________SEG2__________________SEG3
pin0(A) $PORTB.0________pin0(A) $PORTB.0________pin0(A) $PORTB.0________pin0(A) $PORTB.0
pin1(B) $PORTB.1________pin1(B) $PORTB.1________pin1(B) $PORTB.1________pin1(B) $PORTB.1
pin2(C) $PORTB.2________pin2(C) $PORTB.2________pin2(C) $PORTB.2________pin2(C) $PORTB.2
pin3(D) $PORTB.3________pin3(D) $PORTB.3________pin3(D) $PORTB.3________pin3(D) $PORTB.3
pin4(E) $PORTB.4________pin4(E) $PORTB.4________pin4(E) $PORTB.4________pin4(E) $PORTB.4
pin5(F) $PORTB.5________pin5(F) $PORTB.5________pin5(F) $PORTB.5________pin5(F) $PORTB.5
pin6(G) $PORTB.6________pin6(G) $PORTB.6________pin6(G) $PORTB.6_______pin6(G) $PORTB.6
pin7(DP) $PORTB.7_______pin7(DP) $PORTB.7_______pin7(DP) $PORTB.7_______pin7(DP) $PORTB.7
common $PORTA.0_______common $PORTA.1______common $PORTA.2_______common $PORTA.3

Quad
Common_Pin0 $PORTA.0
Common_Pin0 $PORTA.1
Common_Pin0 $PORTA.2
Common_Pin0 $PORTA.3
pin0(A) $PORTB.0
pin1(B) $PORTB.1
pin2(C) $PORTB.2
pin3(D) $PORTB.3
pin4(E) $PORTB.4
pin5(F) $PORTB.5
pin6(G) $PORTB.6
pin7(DP) $PORTB.7

Regards
AC
Last edited by ACPC on Tue Apr 23, 2019 12:06 pm, edited 1 time in total.

User avatar
Benj
Matrix Staff
Posts: 14216
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4355 times
Been thanked: 4095 times
Contact:

Re: Help 7Segment Single x Quad

Postby Benj » Tue Apr 23, 2019 9:55 am

Hello AC,

Are you programming in Flowcode? If so which version and can you attach your program you are having problems with?

How is your circuitry configured? Can you attach a schematic?

ACPC
Posts: 3
Joined: Thu Apr 18, 2019 7:05 pm
Contact:

Re: Help 7Segment Single x Quad

Postby ACPC » Tue Apr 23, 2019 12:03 pm

Hi Benj,

Here is.
Attachments
Volt_30_V_7SEGx4_SEP_F88.fcfx
(10.75 KiB) Downloaded 23 times

User avatar
Benj
Matrix Staff
Posts: 14216
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4355 times
Been thanked: 4095 times
Contact:

Re: Help 7Segment Single x Quad

Postby Benj » Tue Apr 23, 2019 12:51 pm

Thanks, Which version of Flowcode are you using?

User avatar
Benj
Matrix Staff
Posts: 14216
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4355 times
Been thanked: 4095 times
Contact:

Re: Help 7Segment Single x Quad

Postby Benj » Tue Apr 23, 2019 12:57 pm

This should now work correctly. I basically added extra output icons to disable the segment after it has been displayed.

Volt_30_V_7SEGx4_SEP_F88.fcfx
(14.42 KiB) Downloaded 40 times

ACPC
Posts: 3
Joined: Thu Apr 18, 2019 7:05 pm
Contact:

Re: Help 7Segment Single x Quad

Postby ACPC » Tue Apr 23, 2019 1:20 pm

Working, but 7seg are blinkink.
Macro ClearDigit fix this problem too
7Segment Quad works fine, not blinking.

Thanks

AC

version 6