Go to advanced search

by andornot
Mon Jun 12, 2017 4:21 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RasPi and PIC I2C read problem
Replies: 17
Views: 7297

Re: RasPi and PIC I2C read problem

The symptoms could indicate the PIC is clock stretching which is not supported by the Pi. Thanks for replying. I didn't know that. I have clock stretching turned off on the PIC. If I turn on clock stretching for transmit I can't do anything at any speed. I get IOError: [Errno 121] Remote I/O error ...
by andornot
Sun Jun 11, 2017 9:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspi and Pic i2c problem
Replies: 5
Views: 1233

Re: Raspi and Pic i2c problem

It looks like you are using the CCS PICC compiler. In your #USE statement the address must be 2 x the address you wish it to be. If you want the address to be 0x40, you must enter 0x80 in the address field of the #USE like this:

Code: Select all

#use i2c(SLAVE, sda=PIN_d5, scl=PIN_d6, address = 0x80)
by andornot
Sun Jun 11, 2017 9:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RasPi and PIC I2C read problem
Replies: 17
Views: 7297

Re: RasPi and PIC I2C read problem

I know this is an old post, but I have encountered a similar problem. The only solution I have found is to reduce the I2C baudrate to 12000. Faster baud rates will return some values with the MSB set when it is not. The error becomes more prevalent as the baud rate is increased. At 100k baud, all of...
by andornot
Wed Mar 27, 2013 2:42 pm
Forum: Troubleshooting
Topic: Need some help with getting WIFI working please
Replies: 25
Views: 10763

Re: Need some help with getting WIFI working please

I struggled with the same problem. Searched everywhere and tried every edit to wpa_supplicant.conf and interfaces files. Nothing worked until I clued in to the fact that nobody was using WEP or a hidden SSID. So, to get wifi working with the rtl8188cus chipset dongle, set your router to WPA encrypti...

Go to advanced search