Shop OBEX P1 Docs P2 Docs Learn Events
Serial Help — Parallax Forums

Serial Help

ArchiverArchiver Posts: 46,084
edited 2001-04-23 12:22 in General Discussion
TC-

I'd try storing the 7-segment patterns in EEPROM, then select the
correct pattern in a subroutine according to the values received.
Something like:

seven_seg_data DATA $30,$6D,$79,...,$00 '0,1,2,...,blank
value VAR BYTE 'ASCII 0-9,A-F,blank


vfDisplay:
DEBUG CR,"Value received: ", value
LOOKDOWN value, [noparse][[/noparse]"0", "1", "2", ... "D", "E", "F", " "],value
DEBUG CR,"Index value from LOOKDOWN: ", DEC value
READ seven_seg_data + value, value
DEBUG CR,"7-segment value: ", BIN7 value
SHIFTOUT cpin,dpin,mode,[noparse][[/noparse] value\7 ]
RETURN


The DEBUG statements let you see what's going on (i.e., where I
goofed up).

Did you get your tach working and would you care to share the
solution with us?

Steve

On 22 Apr 01 at 3:50, aconti@n... wrote:

> Hello All,
>
> I am making a Display for my car, I am using the stock VF displays.
> I found a driver that works. The driver that I have is a 32-Bit
> serial- input latched driver. I nead a BS2 to do the same thing as
> the MAX7219 with out the multiplexing. Recive a value (0-9,A-F,&
> space) then turn on the right segment...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-04-22 04:50
    Hello All,

    I am making a Display for my car, I am using the stock VF displays. I
    found a driver that works. The driver that I have is a 32-Bit serial-
    input latched driver. I nead a BS2 to do the same thing as the
    MAX7219 with out the multiplexing. Recive a value (0-9,A-F,& space)
    then turn on the right segment.

    Exp:
    SEGMENT abcdefg
    for 1= %0110000
    for 2= %1101101
    for 3= %1111001
    ect.

    I would use the MAX, But since I can not use the multiplexing. I
    would nead 1 AND Gate,1 Invertor, and 1 display driver just for one
    segment. That is to meny parts for 116 segments. When I only nead 4
    of the drivers that I have.

    I know I would use the SHIFTOUT camand but how would I make it do
    what I want?

    Thanks :-)
    TC

    PS. If it is any help, here is the driver that I am using
    http://www.allegromicro.com/datafile/6818.pdf
  • ArchiverArchiver Posts: 46,084
    edited 2001-04-23 12:22
    TC-
    I'd try storing the 7-segment patterns in EEPROM, then select the
    correct pattern in a subroutine according to the values received.
    Something like:
    seven_seg_data DATA $30,$6D,$79,...,$00 '0,1,2,...,blank
    value VAR BYTE 'ASCII 0-9,A-F,blank

    vfDisplay:
    DEBUG CR,"Value received: ", value
    LOOKDOWN value, [noparse][[/noparse]"0", "1", "2", ... "D", "E", "F", " "],value
    DEBUG CR,"Index value from LOOKDOWN: ", DEC value
    READ seven_seg_data + value, value
    DEBUG CR,"7-segment value: ", BIN7 value
    SHIFTOUT cpin,dpin,mode,[noparse][[/noparse] value\7 ]
    RETURN

    The DEBUG statements let you see what's going on (i.e., where I
    goofed up).
    Did you get your tach working and would you care to share the
    solution with us?
    Steve
    On 22 Apr 01 at 3:50, aconti@n... wrote:
    > Hello All,
    >
    > I am making a Display for my car, I am using the stock VF displays.
    > I found a driver that works. The driver that I have is a 32-Bit
    > serial- input latched driver. I nead a BS2 to do the same thing as
    > the MAX7219 with out the multiplexing. Recive a value (0-9,A-F,&
    > space) then turn on the right segment...


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.