Sure Electronics Dot Matrix Display


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136

    Default Sure Electronics Dot Matrix Display

    Any one had any luck getting the Sure electronic display to work?

    I've got the 6432 display (really two 6416, one above the other. I can get LEDs to light up - but not the ones I think shoul be activated.

    The board works Ok - it comes with a C program that does it's stuff - I'm not familiar enough with C to go through the statement and 'work backwards.'

    My code, that does not work is:
    Code:
    ' File...... 8722 Sure Disp 01
    ' Purpose... Get Sure electronics dot matrix display working 
    ' Date...... March 2010
    
    clear
    define OSC 40	' Use HSPLL during compilation
    
    ' *****************************************************************************
    ' *                                                                           *
    ' *                                 VARIABLES                                 * 
    ' *                                                                           *
    ' *****************************************************************************
    
    Test_1      var long                    ' 32 bits
    Test_2      var long                    ' 32 bits
    Test_3      var long                    ' 32 bits
    
    A             var PORTC.0
    B             var PORTC.1
    C             var PORTC.2
    D             var PORTC.3
    Data_R1   var PORTC.4
    Data_R2   var PORTC.5
    Data_G1   var PORTC.6
    Data_G2   var PORTC.7
    E             var PORTE.0
    Clock       var PORTF.1
    Latch       var PORTF.0
    
    ' *****************************************************************************
    ' *                                                                           *
    ' *                                INITIALISE                                 * 
    ' *                                                                           *
    ' *****************************************************************************
    
    ADCON1  = %00001111                 ' All digital
    CMCON   = %00000111                 ' Comparators off, this frees up PORTF                 
    TRISA=0 : TRISB=0 : TRISC=0 : TRISD=0 : TRISE=0 : TRISF=0 : TRISG=0 : TRISH=0 : TRISJ=0
    PORTA=0 : PORTB=0 : PORTC=0 : PORTD=0 : PORTE=0 : PORTF=0 : PORTG=0 : PORTH=0 : PORTJ=0
    
    ' *****************************************************************************
    ' *                                                                           *
    ' *                                   MAIN                                    * 
    ' *                                                                           *
    ' *****************************************************************************
    
       HIGH E                                           ' Enables the display
       low latch                                        ' So PULSOUT goes high
    Main:
        Test_1 = %11111111111111111111111111111111      ' Active low - so all off
        Test_2 = %11110000111100001111000011110000
        Test_3 = %10101010101010101010101010101010
        
        shiftout Data_G1, Clock, 4, [Test_2\32]
        shiftout Data_G1, Clock, 4, [Test_2\32]       
        pulsout Latch,5
        
        shiftout Data_R1, Clock, 4, [Test_1\32]
        shiftout Data_R1, Clock, 4, [Test_1\32]
        pulsout Latch,5
        
        shiftout Data_R2, Clock, 4, [Test_1\32]
        shiftout Data_R2, Clock, 4, [Test_1\32]
        pulsout Latch,5
           
        shiftout Data_G2, Clock, 4, [Test_3\32]
        shiftout Data_G2, Clock, 4, [Test_3\32]              
        Pulsout Latch,5
            
        A = 0
        B = 0
        C = 1
        D = 0
                  
        GOTO Main
    	end
    The web site is http://www.sure-electronics.com

    Any help would be appreciated.

    Regards Bill Legge

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795


    Did you find this post helpful? Yes | No

    Default

    It may be silly, but since the Pulsout command just Toggles the port pin, are you sure all ports are at the correct state before?

    Try the High/Low commands to check it.

    Ioannis

  3. #3
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136


    Did you find this post helpful? Yes | No

    Default

    Thanks - I had not thought of that. I forgot to set the initial states - I guess it's the sort of thing that one 'gets away with' most of the time.

    I'll give it a try. It's a pity to have such a large dot-matrix display gatering dust!

    Regards Bill Legge

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795


    Did you find this post helpful? Yes | No

    Default

    If you want, please post a picture or video when you finishe it.

    Ioannis

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