max7219 and pic16f627


Results 1 to 10 of 10

Threaded View

  1. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    ARRGH i didn't notice how you did your code...
    Code:
    for digit = 1 to 5
    current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07]
    SHIFTOUT datapin, clkpin, MSBFIRST, [digit] 'digit adress
    SHIFTOUT datapin, clkpin, MSBFIRST, [current] 'digit data
    PULSOUT load1, 3 
    next
    you must

    enable the load line
    use the shiftout
    disable the load line

    how about using something like
    Code:
    for digit = 1 to 5
        current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07]
        
        LOW Load1
        SHIFTOUT datapin, clkpin, MSBFIRST, [digit] 'digit adress
        SHIFTOUT datapin, clkpin, MSBFIRST, [current] 'digit data
        HiGH load1
        PAUSE 10
        next
    but more than likely
    Code:
    for digit = 1 to 5
        current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07]
        
        LOW Load1
        SHIFTOUT datapin, clkpin, MSBFIRST, [digit,current]
        HiGH load1
        PAUSE 10
        next
    EDIT: It remind me a previous post => http://www.picbasic.co.uk/forum/show...tach%2A+max%2A
    Last edited by mister_e; - 22nd August 2005 at 02:35.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts