Wrong I2C output on UDB4 board

Post Reply
alpert
Posts: 12
Joined: Mon Dec 19, 2011 11:32 am

Wrong I2C output on UDB4 board

Post by alpert » Thu Feb 09, 2012 5:38 pm

Hello,
I'm trying to use the I2C on UDB4 board with Lubin's Block-set. I've done this on to other boards (with dsPIC30 and dsPIC33) and it had worked perfectly.
Unfortunately, when I'm trying it on UDB4 board (with dsPIC33fj256GP710a) the I2C signal that i get is very strange.
This is how I2C signal should look when everything works fine:
I2C.jpg
When i look with oscilloscope on the I2C signal of the UDB4, it show non stoping bits in the SDA and SCL without any meaning.

This is the model that I've build:
ex10_I2C.mdl
(37.09 KiB) Downloaded 492 times

Does someone have any idea why it happens?

Thanks,
Alpert.

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: Wrong I2C output on UDB4 board

Post by LubinKerhuel » Mon Mar 26, 2012 11:32 am

Hello Lior,

I just tested and I am getting exactly the same result.

When I2C is beeing used, we should not see so many transition as there is no acknowledge from the other side.
Something's might be wrong with the software.

I did not see errata on this 33Fj256GP710A Chip rgarding I2C.
You might try to check the code generated by the blockset to see if there is anything's wrong.
Testing with I2C 1 (connected to EEPROM) does not change anything. Were you able to find out which EEPROM chip is on the board ? UDB4 Schematic does not provide its reference.

Alternatively, if you are wiling to log data, I tested an interreting solution: openlog which just fit perfectly on the UDB4 board (see pictures).
I was able to set-up long lasting logs (few hours). Only potential problem is the speed of the Flash card (When used with Open Log) which does not allows to log about 2600 bytes/s. Using class 10 flash card does not help. Best result (i.e. log without any data loss) were obtained using an ole transflash 128Mb card (SanDisk). recent Transcend Flash Card Class 10 are just not fast enough.

Lubin
UDB4 with OpenLog
UDB4 with OpenLog
DSC03660_reduced.jpg (89.8 KiB) Viewed 9830 times
UDB4 with OpenLog & GPS
UDB4 with OpenLog & GPS

alpert
Posts: 12
Joined: Mon Dec 19, 2011 11:32 am

Re: Wrong I2C output on UDB4 board

Post by alpert » Tue Mar 27, 2012 7:16 am

Hi Lubin,
Thank you for your answer.
It looks like this problem is related to the configuration bits. Mybe, from some resone, your I2C block is not configure the registers properly.
It's very strange that it works fine on dsPIC 33FJ256FC710 (Gluon-Pilot's board) , which is not so different from the 33Fj256GP710A .

I'm using the I2C to control the Brushless motors, not the EEPROM. I'm using MIKRO-KOPTER's BL-Motors, and their drivers works with I2C comunication. I agree the eeprom is not very usfull (only 32 KB).
The model of the eeprom on the board is 24LC256. Here is a link to the datasheet:
http://dl.dropbox.com/u/13765132/24LC256.pdf

Thanks,
Lior

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests