Announcement

Collapse
No announcement yet.

tea5767

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • swr999
    replied
    Just a quick comment:
    Page 161 of the PBP3 manual says to use a variable for "Address" so that the I2CWRITE knows the size of Address..
    Maybe do something like:

    addr VAR BYTE (or WORD, depending)
    addr = 0
    I2CWRITE SDA,SCL,$60,addr,[---------...]

    Leave a comment:


  • Roger D
    replied
    This works " I2cwrite sda,scl,$C0,[$2D,$EE,$B0,$10,$00]" sets to near 96.1. My problem was getting my pic to run on 3.3 volts "_LVP_OFF& _BODEN_OFF". The original code may also work using $C0 and "_LVP_OFF& _BODEN_OFF"? Thank you for your help!

    Leave a comment:


  • Roger D
    replied
    I changed to this with no luck? Not sure what I am doing wrong?

    I2cwrite sda,scl, $C0,$00,[PLL.highbyte,PLL.lowbyte,$00,$10,$1A ,$00]

    Thanks!
    Last edited by Roger D; 08-16-2017, 10:28 PM.

    Leave a comment:


  • richard
    replied
    try $c0 for address , the data sheet gives a 7 bit address of $60 pbp uses 8bit addresses

    Leave a comment:


  • Roger D
    started a topic tea5767

    tea5767

    Has anyone worked with the TEA5767 I am trying to write to this device using this code with no luck

    PLL = 10770
    sda var porta.0
    scl var porta.1
    I2cwrite sda,scl, $60,$00,[PLL.highbyte,PLL.lowbyte,$00,$10,$1A ,$00]
Working...
X