Problem getting I2C port 1 and 5 working on MOD54415

Discussion to talk about software related topics only.
User avatar
TomNB
Posts: 541
Joined: Tue May 10, 2016 8:22 am

Re: Problem getting I2C port 1 and 5 working on MOD54415

Post by TomNB »

Hello,

I just ran some tests with a MOD54415 module on a MOD-DEV-70 board. For I2C1 I had to add 4.7k resistors on sda and scl.

The PIC I2C board has the following devices:
Microchip Pickit Serial I2C Demo Board Driver
* Platforms Supported: MOD5441x, NANO54415, MCF5441x OEM
*
* Demonstrates the use of 5 Microchip I2C Peripherals:
* 24LC0B EEPROM, 2Kbit (256 x 8)
* MCP9800 Temperature sensor
* MCP23008 GPIO port expander, connected to LEDs
* TC1321 10-bit DAC
* MCP3221 12-bit ADC


The applications were:

1. \nburn\examples\MOD5441X\MOD5441x-I2C\I2CAddressScan
Using the example with no modifications than changing the I2C port from default of 0 to 1. The peripherals were detected correctly in both cases.

2. \nburn\examples\MOD5441X\MOD5441x-I2C\PicKitI2CSerialDemoBd
Using the example with no modifications than changing the I2C port from default of 0 to 1. All 5 of the peripherals were identified and operated correctly.

So I am uncertain why you are seeing the behavior you describe. I did verify if the proper pull up resistors are not installed the behavior is erratic, but never a crash, just I2C error messages. I am attaching my .s19 file for the address search configured for I2C1. Can you reply with a photo of the pcb you made assembled with the module?

I am using tools revision 2.9.3 and a rev 2.2 module. If you have an older rev module that should still be fine, but I would recommend 1.10 or higher.
If you are still stuck after all this, I would recommend opening a ticket at support.netburner.com.
Attachments
MOD54415-I2C-AddrScan_APP.zip
MOD54415, I2C1
(98.89 KiB) Downloaded 138 times
User avatar
TomNB
Posts: 541
Joined: Tue May 10, 2016 8:22 am

Re: Problem getting I2C port 1 and 5 working on MOD54415

Post by TomNB »

For anyone interested, the pickit board is a great demo board. Here is a link:
https://www.microchip.com/DevelopmentTo ... ERIAL-I2C1
Note that is does not have the pull-up resistors populated, you need to add them.

Also, some notes on the NetBurner MOD-DEV-70 usage with the MOD5441x modules:
Notes when using a MOD-DEV-70 development board:
- The MOD5441x has up to 5 I2C ports that can be used: 0, 1, 2, 4 and 5.
- I2C0, J2-39 and J2-42: This is the default I2C peripheral. It has 4.7k pull up resistors
on SDA and SCL, and is connected to a real time clock chip.
- I2C1, J2-41 and J2-44: Sgnals are not connected to anything, but you will need to add pull up resistors.
- I2C2, J2-17 and J2-18, are used for USB, but can be converted to I2C2 by moving 2 resistors on the
MOD5441x. The ordering model number is MOD54415-100IR-I2C2. Refer to PCN 001 on the MOD5441x product page.
- I2C4, J2-3 and J2-4: Signals are used for UART0 serial port
- I2C5, J2-21 and J2-22: Signals are used for UART1 serial port
Post Reply