Author Topic: MC44817 Help  (Read 2953 times)

0 Members and 1 Guest are viewing this topic.

Offline joblessalexTopic starter

  • Contributor
  • Posts: 38
MC44817 Help
« on: September 12, 2013, 04:27:34 am »
I've been messing around with an old tuner which says it is IIC compatible. I'm assuming that is the wire library in arduino, right? So I made up a test program to pull all device IDs since one wasn't listed and got nothing. I assumed it didn't need one and went on to build a basic bit of code to program it to 101.100MHz which is a complete failure. Anyone out there that can tell me what I'm doing wrong?
Datasheet: http://pdf1.alldatasheet.com/datasheet-pdf/view/167872/MOTOROLA/MC44817.html

Code:
Code: [Select]
  #include <Wire.h>



  void write_to_pll() {

  digitalWrite(12, HIGH);
  //  Wire.beginTransmission(); //Maybe needed?
 Wire.write(1111); // buffer
    Wire.write(0000010011111); // frequency
    Wire.endTransmission();
      digitalWrite(12, LOW);
  }


  void setup()
  {
    pinMode(12, OUTPUT);
    Wire.begin(); // initialise the connection
    Serial.begin(9600);
    write_to_pll();
    delay(10); //add a small delay

    Serial.println("Memory written");
  }

  void loop()
  {


  }
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: MC44817 Help
« Reply #1 on: September 12, 2013, 11:00:44 am »
Quote
I'm assuming ...
 I assumed

Why assume when you have the datasheet right there? Read it and you will know that why your assumption is wrong.
================================
https://dannyelectronics.wordpress.com/
 

Offline joblessalexTopic starter

  • Contributor
  • Posts: 38
Re: MC44817 Help
« Reply #2 on: September 12, 2013, 12:19:39 pm »
Quote
I'm assuming ...
 I assumed

Why assume when you have the datasheet right there? Read it and you will know that why your assumption is wrong.
Read it again and still see IIC  with 18, 19, or 34 bit protocol... Where are you seeing any different?
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: MC44817 Help
« Reply #3 on: September 12, 2013, 01:39:55 pm »
Quote
The Data and Clock inputs may be shared with other inputs on the IIC–Bus

Quote
Data and Clock Inputs are IIC Bus Compatible

There is no mention in the datasheet of the I2C protocol: start bits, stop bits, address, etc. It appears to be only electrically compatible with the I2C bus. "Data, clock and enable" seems more like SPI to me. I'd say it's just a poorly written datasheet. Not an I2C device.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8517
  • Country: us
    • SiliconValleyGarage
Re: MC44817 Help
« Reply #4 on: September 12, 2013, 02:27:28 pm »
Its just a stupid shift register. Shift in 18 bits and done.
Datasheet is pretty clear to me.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: MC44817 Help
« Reply #5 on: September 12, 2013, 02:33:55 pm »
Quote
Read it again and still see IIC  with 18, 19, or 34 bit protocol...

I think you are right. It is probably similar to those "parallel spi" protocols, :).
================================
https://dannyelectronics.wordpress.com/
 

Offline joblessalexTopic starter

  • Contributor
  • Posts: 38
Re: MC44817 Help
« Reply #6 on: September 13, 2013, 02:36:28 am »
Being a new player, I would have never guessed that.... Thanks for the help guys!
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: MC44817 Help
« Reply #7 on: September 13, 2013, 10:25:25 am »
Quote
I would have never guessed

Why guess if you can read about it for sure?
================================
https://dannyelectronics.wordpress.com/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf