interfacing HT1628 with pic ?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2010
    Location
    morocco
    Posts
    16

    Default interfacing HT1628 with pic ?

    im trying to send command and data to HT1628,anyone can help me i dont understand its datasheet and what i use shiftout or i2cwrite,please help about command and address,

    http://www.chinaelite.com/pdf/HT1628.pdf
    A Fancy Having a Third Rate Actor as President Of His Country........

  2. #2
    Join Date
    Mar 2010
    Location
    Minnesota, USA
    Posts
    41


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by MR2010 View Post
    what i use shiftout or i2cwrite
    You would use SHIFTOUT because it is a serial interface not an I2C.

  3. #3
    Join Date
    Jan 2010
    Location
    morocco
    Posts
    16


    Did you find this post helpful? Yes | No

    Default

    thnks wolwil , ive tryed this code but nothings happening,any idea how to address this ic
    Code:
    DPIN    VAR PortB.0                 
    CPIN    var PortB.1
    STB     VAR PORTB.2              
    B0      var     byte 
    B1      var     byte
    
    
    
    main:
    low STB
    pauseus 1
    b0 = $01 
    
                            
         shiftout DPIN,CPIN,1,[$00,b0]  
         Pause 100               
         shiftout DPIN,CPIN,1,[$03,b0]
         high STB
    
    
            end
    A Fancy Having a Third Rate Actor as President Of His Country........

  4. #4
    Join Date
    Mar 2010
    Location
    Minnesota, USA
    Posts
    41


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by MR2010 View Post
    Code:
                       
         shiftout DPIN,CPIN,1,[$00,b0]
    At a quick glance I believe you have to send the LSB first according to the Datasheet and you are sending the MSB first. On the bottom of page 6 it shows the LSB being the first bit being clocked in.

    Try changing the mode on your shiftout to a 0 like this:
    Code:
         shiftout DPIN,CPIN,0,[$00,b0]

  5. #5
    Join Date
    Jan 2010
    Location
    morocco
    Posts
    16


    Did you find this post helpful? Yes | No

    Thumbs up

    thank you wolwil for helping me , got it working now im trying to sort characters, have a great time wolwil ...
    A Fancy Having a Third Rate Actor as President Of His Country........

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