srdjan wrote:However, on your insistence, I have checked this request. After investigation of pic18f4520 erratas I have concluded that this issues is listed only for the A1 revision. Please, do correct me if I'm wrong.
Yes but is listed for a lots of MCU's.
For PIC18F87J10 is listed in A2 revision
This problem not appear to PIC18F97J60 family ! I don't know, maybe not yet !
Anyway, for safety, is good to put this sequence code :
Code: Select all
1. Configure the SCLx and SDAx pins as outputs by clearing their corresponding TRIS bits.
2. Force SCLx and SDAx low by clearing the corresponding LAT bits.
3. While keeping the LAT bits clear, configure SCLx and SDAx as inputs by setting their TRIS bits.
in I2C_Init for all devices .
PS. I got
100 USD (is not too much...) from my BOSS, because I fix this problems to our devices ! Thanks to Zoran !
Best regards, Florin Andrei Medrea.
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro