Control BH1415 with a 16f88


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by savnik View Post
    I have the bh1415f datasheet and i have read , but i don't know how to send the data to bh1415f , because this chip has data,clock and enable
    For the TSA551 i don't have problem.I have use it many times , but this have only data and clock and use I2CWRITE SDA,SCL,ADDR1,[HI,LO,$8E] to send the data
    Code:
    freq var word
    dataout var word
    hardcode var word
    chipselect var portb.0 'or whatever pin you've got set for the chip select
    datapin var portb.1 'or whatever pin you've got set for the data pin
    clockpin var portb.2 'or whatever pin you've got set for the clock pin
    
    hardcode = %0100100000000000 'hardcoded values - not in test mode, phase detector normal, stereo operation, doesn't (shouldn't?) change
    
    freq = 1021   'frequency desired = 102.1 Mhz
    dataout = hardcode + freq 'add in frequency value
    high chipselect
    shiftout datapin , clockpin , 0 , [ dataout/16 ]
    low chipselect

  2. #2
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Code:
    freq var word
    dataout var word
    hardcode var word
    chipselect var portb.0 'or whatever pin you've got set for the chip select
    datapin var portb.1 'or whatever pin you've got set for the data pin
    clockpin var portb.2 'or whatever pin you've got set for the clock pin
    
    hardcode = %0100100000000000 'hardcoded values - not in test mode, phase detector normal, stereo operation, doesn't (shouldn't?) change
    
    freq = 1021   'frequency desired = 102.1 Mhz
    dataout = hardcode + freq 'add in frequency value
    high chipselect
    shiftout datapin , clockpin , 0 , [ dataout/16 ]
    low chipselect
    I test today this code but don't work

Similar Threads

  1. How do I give a radio control car autonomous control
    By Kenjones1935 in forum General
    Replies: 190
    Last Post: - 17th January 2010, 15:40
  2. Problem with 16f88 steep motor control
    By ken_23 in forum Off Topic
    Replies: 0
    Last Post: - 4th July 2008, 12:25
  3. Control unlimited servos at the same time
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th September 2006, 14:14
  4. Stepper motor control using PIC 16F88
    By tonykeys in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd February 2006, 20:09
  5. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18

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