Just thought I would share my I2C test bed. Built this recently to test the I2C code and I did not want to build and tear it all down - I built this and tore down the configuration a few times in the past years.
Config:
16F1939 a main uC. Lots of memory, runs at 32Mhz and has MSSP module.
I2C devices:
16F88 as GCB Slave hooked up to 3 LEDS
DS1307+ clock
MCP23008 - port expander hooked up to 8 LEDS
MCP23017 - port expander hooked up to 8 LEDS
AXE033 - An I2C LCD
FRAM 1mb EEPROM - via 5v-3v converter
24LC52 - EEPROM
a little bread board bonded to the bed for 'I2C specials'
My test bed has connectivity to
- I2C protocol analyzer
- Oscilloscope
- PC Terminal for test output
- PC Terminal for output for GCB Slave
- In-circuit programming for the main uC and the Slave uC.
A few photos of the test bed are below:
Last edit: Anobium 2014-08-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You have an I2C test bed! That is better than me until recently!
I have two analysers attached.
Xprotolab. This is a scope with I2C decoding. This output to the PC via XScope software - this allows me to see handling issues in the very large data streams. Great product.
Saleae Logic. The 8 channel/24 Ms/s device. This is excellent for detailed examination of protocol.
I also use... a huge amount of debug via the serial port, then I control the PC terminal output via ANSI codes. The main uC and the slave uC are able to stream serially to the PC terminal. I have a few external MAX232 powered up ready for this job.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just thought I would share my I2C test bed. Built this recently to test the I2C code and I did not want to build and tear it all down - I built this and tore down the configuration a few times in the past years.
Config:
16F1939 a main uC. Lots of memory, runs at 32Mhz and has MSSP module.
I2C devices:
16F88 as GCB Slave hooked up to 3 LEDS
DS1307+ clock
MCP23008 - port expander hooked up to 8 LEDS
MCP23017 - port expander hooked up to 8 LEDS
AXE033 - An I2C LCD
FRAM 1mb EEPROM - via 5v-3v converter
24LC52 - EEPROM
a little bread board bonded to the bed for 'I2C specials'
My test bed has connectivity to
- I2C protocol analyzer
- Oscilloscope
- PC Terminal for test output
- PC Terminal for output for GCB Slave
- In-circuit programming for the main uC and the Slave uC.
A few photos of the test bed are below:
Last edit: Anobium 2014-08-25
Now that's a proper setup, well done! Whose I2C analyzer are you using?
Here's an I2C test rig "JR.", he he.
You have an I2C test bed! That is better than me until recently!
I have two analysers attached.
Xprotolab. This is a scope with I2C decoding. This output to the PC via XScope software - this allows me to see handling issues in the very large data streams. Great product.
Saleae Logic. The 8 channel/24 Ms/s device. This is excellent for detailed examination of protocol.
I also use... a huge amount of debug via the serial port, then I control the PC terminal output via ANSI codes. The main uC and the slave uC are able to stream serially to the PC terminal. I have a few external MAX232 powered up ready for this job.
Very interesting analyzers, thanks. Looks like I'm stuck with the PICKit 2 utility for the time being. I don't use the UART for debugging near enough.