Problem interfacing with PCD3311 tone generator via I2C


hello, i'm attempting interface pcd3311cp[1] ic (dip14) produce tones on tiny 8ohm speaker. code simple:

code: [select]

#include <wire.h>

void setup() {
  wire.begin();
}

void loop() {
  wire.begintransmission(0x24);
  wire.write(0x0f); // generate 1633hz tone
  delay(100);
  wire.write(0x01); // turn off oscillator
  wire.endtransmission();
}


all hear quiet clicking in speaker. unfortunately don't have access oscilloscope can't more what's happening.

i've tried following:

* confirmed speaker works circuit
* tried putting 1k ohm resistor in series speaker (no difference)
* tried calling begintransmission/endtransmission each byte (no difference)
* tried several other pcd3311 chips (no difference)
* ensured i2c address/a0 pin correct (if change address or pull a0 high, hear no clicking)
* ensured mode pin correct (if pull mode high (parallel input mode) hear no clicking)

here connections on pcd3311:

pin1 3.5mhz crystal
pin2 3.5mhz crystal
pin3 pulled low (i2c mode)
pin4 nc
pin5 nc
pin6 connected speaker (+)
pin7 pulled low (i2c address lsb=0 (the address fixed 010010x x pin7, i.e., 0x24 or 0x25))
pin8 scl pull-up resistor
pin9 sda pull-up resistor
pin10 nc
pin11 nc
pin12 nc
pin13 gnd
pin14 vcc

one thing i'm confused in data sheet mention of byte 0x00 meaning oscillator on (section 7.11, table 2). maybe i'm not understanding protocol.

any tips appreciated. i'm stuck. thank you.

[1] data sheet http://www.e-lab.de/downloads/docs/pcd3311c_3312c_2.pdf

photo of breadboard if helps @ all:



Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Problem interfacing with PCD3311 tone generator via I2C


arduino

Comments