- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good afternoon
I'm trying to connect proc ble with miniprog3 by I2C to tune my proximity cap sensor but connection fails (read operation failed! Check i2c bus connection.). I follow the capsense CSD application note but without success.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum!
The MiniProg3 already has got pull-ups for the sclk and sdat lines. You additionally need to connect xres, GND and VCC. Depending on your requirements set the supply voltage for the miniprog correctly. The miniprog may power the chip if you want to,
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, i'm powering the chip with miniprog and i try without pull up resistors but the result is the same.
I'm using pins p0.4 for sda and p0.5 for sdl. I program the chip and then i change the connection to this pins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I analise the i2c output with an oscilloscope the sdl switching frequency is correct if miniprog is connected to i2c, when is not connect the sdl pin doesn't switch. The code i use is the example of application note.
void main()
{
//CapSense_1_EnableWidget(CapSense_1_PROXIMITYSENSOR0__PROX);
CyGlobalIntEnable;
CapSense_1_TunerStart();
while(1)
{
CapSense_1_TunerComm();
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set the property of your CapSense_1 from "Auto" to "Manual withTuning".
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Continue with same problem i try also change the i2c pins but give me the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I2C speed in tuner->Configuration set to 100kbps?
No more ideas.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes i set to 100kbps, also try with fast and slow slew rate and different frequencies(changed in tuner and i2c block), and i try also with external supply and nothing. I´m without ideas too. Thank you for the help anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm open to more ideas...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Get the Cypress example running. Remove the LEDs and the associated code. When you have got a development board (ie. Pioneer) try that.
Bob