Skip to contentSkip to conversation

Can't get 2 sensor chips working

DISCUSSION David 2 participants 4 messages May 19, 2005

lore
Share & tools
lore

David

author
#0 lore raw

Hi,

I am trying to get a PCF8591 and a PCF8574 working using the i2c-pport adaptor.

I have at the moment the i2c-pport and algo-bit modules loaded and am trying to get access to the PCF chips.

modprobe pcf8574
modprobe pcf8591
AND
modprobe pcf8574 probe=0,0x20
modprobe pcf8591 probe=0,0x48

don't actually creaate any files under proc and the modules remain unused as far as lsmod is concerned.

I can get the devices up if I
modprobe pcf8574 force_pcf8574=0,0x20
modprobe pcf8591 force_pcf8591=0,0x48

everything loads, I get the relavent files under
/proc/sys/dev/sensors

it doesn't look like I am really taking to the chips though.

Changes I make on the inputs aren't reflected in the values under /proc.

If I run the i2cdetect 0 I get UU showing in both 0x20 and 0x48

I have used my scope and know that signals are getting to the chips in question but it isn't a storage scope so I can't look to see if the pulses are really valid i2c pulses.

Any hints on what to do next.

Signature · 3 lines
Best Regards,

David Price
author
#1 lore raw

I don't know if I can do that without a storage CRO. I tried altering my triggering but can't seem to hold the signal still long enough to actually see it.

Don't know if I can sample using my soundcard. I might be able to record (dpending on whether the pport bus runs at less than 20Khz in speed.

I then need to find an audio application that will display the waveform in scope mode.

Am I missing something or is this my next step?

Quoted 49 lines · Mark D. Studebaker

you can try i2cdump 0 0 0x20
then look on the scope.
If the chip is not responding you will see only the chip address and the register address
(2 bytes for each access)
If the chip is responding you will see the 3rd byte on the bus (the chip response)

Quoted 40 lines · David

Hi,

I am trying to get a PCF8591 and a PCF8574 working using the i2c-pport adaptor.

I have at the moment the i2c-pport and algo-bit modules loaded and am trying to get access to the PCF chips.

modprobe pcf8574
modprobe pcf8591
AND
modprobe pcf8574 probe=0,0x20
modprobe pcf8591 probe=0,0x48

don't actually creaate any files under proc and the modules remain unused as far as lsmod is concerned.

I can get the devices up if I
modprobe pcf8574 force_pcf8574=0,0x20
modprobe pcf8591 force_pcf8591=0,0x48

everything loads, I get the relavent files under
/proc/sys/dev/sensors

it doesn't look like I am really taking to the chips though.

Changes I make on the inputs aren't reflected in the values under /proc.

If I run the i2cdetect 0 I get UU showing in both 0x20 and 0x48

I have used my scope and know that signals are getting to the chips in question but it isn't a storage scope so I can't look to see if the pulses are really valid i2c pulses.

Any hints on what to do next.

--
Best Regards,

David Price

Signature · 3 lines
Best Regards,

David Price
#2 lore raw
In reply to David

you can try i2cdump 0 0 0x20
then look on the scope.
If the chip is not responding you will see only the chip address and the register address
(2 bytes for each access)
If the chip is responding you will see the 3rd byte on the bus (the chip response)

Quoted 41 lines · David

Hi,

I am trying to get a PCF8591 and a PCF8574 working using the i2c-pport adaptor.

I have at the moment the i2c-pport and algo-bit modules loaded and am trying to get access to the PCF chips.

modprobe pcf8574
modprobe pcf8591
AND
modprobe pcf8574 probe=0,0x20
modprobe pcf8591 probe=0,0x48

don't actually creaate any files under proc and the modules remain unused as far as lsmod is concerned.

I can get the devices up if I
modprobe pcf8574 force_pcf8574=0,0x20
modprobe pcf8591 force_pcf8591=0,0x48

everything loads, I get the relavent files under
/proc/sys/dev/sensors

it doesn't look like I am really taking to the chips though.

Changes I make on the inputs aren't reflected in the values under /proc.

If I run the i2cdetect 0 I get UU showing in both 0x20 and 0x48

I have used my scope and know that signals are getting to the chips in question but it isn't a storage scope so I can't look to see if the pulses are really valid i2c pulses.

Any hints on what to do next.

--
Best Regards,

David Price

#3 lore raw
In reply to David

I've heard of other trouble with the parallel port adapters (i2c-pport and pcf-epp), I don't know if it's the driver or the hardware that is the trouble.
I wouldn't want to debug it without a good 'scope.
Anything else is going to be quite frustrating.
Good luck.

Quoted 67 lines · David

I don't know if I can do that without a storage CRO. I tried altering my triggering but can't seem to hold the signal still long enough to actually see it.

Don't know if I can sample using my soundcard. I might be able to record (dpending on whether the pport bus runs at less than 20Khz in speed.

I then need to find an audio application that will display the waveform in scope mode.

Am I missing something or is this my next step?

Quoted 50 lines · Mark D. Studebaker

you can try i2cdump 0 0 0x20
then look on the scope.
If the chip is not responding you will see only the chip address and the register address
(2 bytes for each access)
If the chip is responding you will see the 3rd byte on the bus (the chip response)

Quoted 40 lines · David

Hi,

I am trying to get a PCF8591 and a PCF8574 working using the i2c-pport adaptor.

I have at the moment the i2c-pport and algo-bit modules loaded and am trying to get access to the PCF chips.

modprobe pcf8574
modprobe pcf8591
AND
modprobe pcf8574 probe=0,0x20
modprobe pcf8591 probe=0,0x48

don't actually creaate any files under proc and the modules remain unused as far as lsmod is concerned.

I can get the devices up if I
modprobe pcf8574 force_pcf8574=0,0x20
modprobe pcf8591 force_pcf8591=0,0x48

everything loads, I get the relavent files under
/proc/sys/dev/sensors

it doesn't look like I am really taking to the chips though.

Changes I make on the inputs aren't reflected in the values under /proc.

If I run the i2cdetect 0 I get UU showing in both 0x20 and 0x48

I have used my scope and know that signals are getting to the chips in question but it isn't a storage scope so I can't look to see if the pulses are really valid i2c pulses.

Any hints on what to do next.

--
Best Regards,

David Price