Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : I2C and pin 2
Author | Message | ||||
Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 831 |
Hi, I have the µMite beta 8 running on a 28 pin PIC32MX150F128 with a LED on pin 2. When I activate pin 2 the LED lights up, but when I write something to IIC the light goes out??? Is there a relationship between IIC and pin 2 ??? Edit: The same program works on 44 pin version correct... - LED doesn't go out... Frank |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
There was an issue with pin2 in the first beta release as I recall. I wonder has it reappeared in a different form? Geoff? ================= I just hooked up a LED to pin 2 and fired off i2c commands and light stays on with a zero out of pin 2 (sink mode) and gives a quick blink when pin 2 in source mode. I'm using a 250F chip. David M. |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3196 |
This must take the record for the strangest bug ever. I will investigate immediately. Geoff Geoff Graham - http://geoffg.net |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
It appears to do the same on pin 3 as well. Similar to the earlier beta. Pins 4,5,etc work ok. A weird one? David M. |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3196 |
Yes, this one is weird and thanks very much to Frank and David for finding/confirming it. The fault was caused by a bug in the PIC32 itself. Like every good programmer I had read the errata which said: OK, I thought, a few millivolts here and there will not make much difference. But what they should have said was: (I can hear vasi reaching for the keyboard already). The workaround is to disable slew rate control on the I2C pins. This was a "nice to have" thing but I don't think that it is critical. So I have disabled it in beta 9 which is out now. I have tested beta 9 on my small collection of I2C devices and disabling slew rate control has not made any difference. But I would be grateful if as many people as possible could check their collection of I2C devices to see if disabling the slew rate has broken anything. Thanks for everyone's help, Geoff Geoff Graham - http://geoffg.net |
||||
Print this page |