Overclocked
Member
Ive been working with the I2C Bus lately and Ive finally gotten a EEprom to do Page reads and sequential writes. I had problems with it before (wrong resistors for Pullups) but got it working, so now Ive moved on to a TC1321 10 bit DAC. The device runs at 100khz from the I2C bus, by accident I had to still set up for 400Khz..opps, but Ive changed that. I have 10k Pull ups on both SDA and SCL. Ive used the Logic tool on my Junebug and the Device IS communicating and the master is sending out data, but Its just not outputting anything on the Output Pin.
If the device doesnt send out a ACK, does the master still send out data? Included is the logic tool output.
The Device is new out of package. I made a SMD adapter for it and I made sure the pins are connected.
Link to datasheet page:
**broken link removed**
add: I am using the Buffered output (pin 5) with nothing on the output other than a voltmeter.
If the device doesnt send out a ACK, does the master still send out data? Included is the logic tool output.
Code:
Device = 18F2410
Clock = 8 // 8MHz clock
Config OSC = INTIO67
Include "IntOsc8.bas"
Include "I2C.bas"
Include "usart.bas"
Dim DATA As Byte
Const DACAddress = $90
Const WriteReg = $00
DATA = 255
while true
I2C.Initialize(I2C_100_KHZ)
I2C.Start
I2C.WriteByte(DACAddress)
I2C.WriteByte(WriteReg)
I2C.WriteByte(DATA)
I2C.Stop
wend
The Device is new out of package. I made a SMD adapter for it and I made sure the pins are connected.
Link to datasheet page:
**broken link removed**
add: I am using the Buffered output (pin 5) with nothing on the output other than a voltmeter.
Attachments
Last edited: