max7219 4x 8x8 panels spi


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    ITS as smooth as silk , can't say the same for the camera

    made a better parametric version too

    Code:
    rotate:
    asm
        banksel _bcnt    ;ROW
        movlw   8
        movwf   _bcnt 
        banksel _inx
        movlw   31         ;BUFFER SIZE
        movwf   _inx
    NROW    
        banksel _inx 
        movlw   high (_dspbuff)
        movwf   FSR0H
        movlw   low  (_dspbuff)
        movwf   FSR0L
        movf    _inx,W
        ADDWF   FSR0L,F
        bcf     STATUS, C
        rrf     INDF0 ,f     ;PER COLUMN
        addfsr  0,-1
        rrf     INDF0 ,f     ;PER COLUMN
        addfsr  0,-1
        rrf     INDF0 ,f     ;PER COLUMN
        addfsr  0,-1
        rrf     INDF0 ,f     ;PER COLUMN
        btfss   STATUS, C
        GOTO    NBNC
        addfsr  0,3
        bsf     INDF0,7
    NBNC 
        movlw   4         ;ROW LENGTH
        SUBWF   _inx,F
        banksel _bcnt
        DECFSZ  _bcnt ,F
        GOTO    NROW
    endasm
    return
    Warning I'm not a teacher

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    even nicer

    Code:
    rotate:
    asm
        banksel _bcnt    ;ROW
        movlw   8
        movwf   _bcnt
        movlw   high (_dspbuff)
        movwf   FSR0H
        movlw   low  (_dspbuff)
        movwf   FSR0L
        movlw   31         ;BUFFER SIZE
        ADDWF   FSR0L,F
        banksel _bcnt
    NROW     
        bcf     STATUS, C
        rrf     INDF0 ,f     ;PER COLUMN
        addfsr  0,-1
        rrf     INDF0 ,f     ;PER COLUMN
        addfsr  0,-1
        rrf     INDF0 ,f     ;PER COLUMN
        addfsr  0,-1
        rrf     INDF0 ,f     ;PER COLUMN
        btfss   STATUS, C
        GOTO    NBNC
        addfsr  0,3
        bsf     INDF0,7
        addfsr  0,-3
    NBNC 
        addfsr  0,-1
        DECFSZ  _bcnt ,F
        GOTO    NROW
    endasm
    return
    Warning I'm not a teacher

Similar Threads

  1. 8x8 keypad matrix...
    By mbox in forum General
    Replies: 5
    Last Post: - 9th October 2014, 19:43
  2. 8x8 Scrolling LED display (Simple example)
    By wellyboot in forum Code Examples
    Replies: 68
    Last Post: - 11th July 2013, 06:03
  3. DC/DC with MPPT for solar panels
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 14th May 2013, 03:26
  4. MY FIRST scrolling 8X8 LED
    By earltyso in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th August 2008, 17:23
  5. SPI instead of SHIFTOUT - MAX7219
    By Momboz in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 26th April 2008, 23:58

Members who have read this thread : 1

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