HT16K33 led 14 segment backpack


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: HT16K33 led 14 segment backpack

    Thanks for reply. Not working but now more clear for me how to handle this controller. I tried init the controller with default I2c adress $70 like this:
    Code:
    ;pic 12F1840
    #CONFIG
        __config _CONFIG1, _FOSC_INTOSC & _MCLRE_ON & _CP_OFF & _CPD_OFF
        __config _CONFIG2, _PLLEN_OFF & _LVP_OFF
    #ENDCONFIG
    
    
    OSCCON = %01110000 
    DEFINE OSC 8 
    
    
    TRISA = %000000      
    
    
    ANSELA = 0				'Digital
      
     scl var portA.2
     sda var portA.1
     
     SADD VAR BYTE
     ROW VAR WORD[5]
     COL var byte
     TMP VAR WORD
     CLEAR
    
     INIT:
     i2cwrite sda,scl,$70,[$21] 'on 
     i2cwrite sda,scl,$70,[$81] 'blink off
     i2cwrite sda,scl,$70,[$E8] 'HALF BRIGHT
     i2cwrite sda,scl,$70,[$A0] 'NO INT
     i2cwrite sda,scl,$70,[SADD,ROW,ROW,ROW,ROW,ROW] ;CLEAR
    
    pause 200
    
    ;send something
    
    row=5
    SADD=1
    
    i2cwrite sda,scl,$70,[SADD,ROW[0],ROW[1],ROW[2],ROW[3],ROW[4]]
    No sign of life.

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


    Did you find this post helpful? Yes | No

    Default Re: HT16K33 led 14 segment backpack

    No sign of life.
    would not expect any with $70 as an address , if you have a ht16k33 the address is %1110xyz0 where xyz are a2 a1 a0

    if a0-a2 are set low the the address is $e0 as per my example
    Warning I'm not a teacher

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


    Did you find this post helpful? Yes | No

    Default Re: HT16K33 led 14 segment backpack

    not only that row[0] to [4] are set to 0 still

    Code:
    ;pic 12F1840#CONFIG 
       __config _CONFIG1, _FOSC_INTOSC & _MCLRE_ON & _CP_OFF & _CPD_OFF  
      __config _CONFIG2, _PLLEN_OFF & _LVP_OFF
    #ENDCONFIG
    OSCCON = %01110000 
    DEFINE OSC 8 TRISA = %000000      
    ANSELA = 0				'Digital  
    scl var portA.2 
    sda var portA.1
      SADD VAR BYTE 
    ROW VAR WORD[4] 
    COL var byte 
    TMP VAR WORD 
    CLEAR 
    INIT:
     i2cwrite sda,scl,$e0,[$21] 'on  
    i2cwrite sda,scl,$e0,[$81] 'blink off 
    i2cwrite sda,scl,$e0,[$E8] 'HALF BRIGHT 
    i2cwrite sda,scl,$e0,[$A0] 'NO INT
     i2cwrite sda,scl,$e0,[SADD,ROW,ROW,ROW,ROW] ;CLEAR
    pause 200;send something
    row[0]=5:row[1]=4:row[3]=2:row[0]=1
    SADD=1 ; not sure about this might need to be 0
    i2cwrite sda,scl,$70,[SADD,ROW[0],ROW[1],ROW[2],ROW[3]]
    Last edited by richard; - 11th April 2021 at 16:15.
    Warning I'm not a teacher

Similar Threads

  1. 7 segment led displays
    By raybel in forum FAQ - Frequently Asked Questions
    Replies: 3
    Last Post: - 12th September 2013, 18:22
  2. Seven Segment LED
    By Brian in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th May 2011, 05:26
  3. Replies: 3
    Last Post: - 5th December 2008, 16:00
  4. Dual 7-segment LED display counter
    By mosbc69 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2008, 23:53
  5. Dual 7-Segment LED Display
    By erice1984 in forum Schematics
    Replies: 14
    Last Post: - 3rd July 2007, 00:51

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