can we see the whole transaction , an i2c read needs to do a write to set address and then a restart to read . you have not shown enough
can we see the whole transaction , an i2c read needs to do a write to set address and then a restart to read . you have not shown enough
Warning I'm not a teacher
Thank you Richard. Will do that this evening.
I tried byte read, word read, page read, Nothing works and all var's are just a zero.
The chip is a 16F1939 but I am sure this does not matter. Logic analyzer shows I2C activity either way.
Edit:
OK, now that is weird. On a 45K22 works just fine. On 1939 not...
Ioannis
Last edited by Ioannis; - 18th October 2018 at 13:22.
I am very embarrassed...
I forgot completely ANSELD and ANSELE when testing it...
Ioannis
I forgot completely ANSELD
Another good reason to migrate to xc8 , mcc gives all pin settings/names and function in one easy to use screen
Warning I'm not a teacher
It is not easy to me. I detest C lanquage. Despite my efforts so far, I did not managed to flip over.
It looks very cryptic...
Ioannis
Using ready-to-use tools to adjust the registers as we need, kills our ability of playing with them, and lowers the understanding of the hardware registers.
Manual setting as much as possible is a good way of self developing, I think.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
setting pin function is pic 101 stuff , but essential to get correct .not much programming skill in there once a basic understanding is reachedUsing ready-to-use tools to adjust the registers as we need, kills our ability of playing with them, and lowers the understanding of the hardware registers.
Manual setting as much as possible is a good way of self developing, I think.
would you not use dt_ints or PicMultiCalc
if there's a good tool use it ,I think
Warning I'm not a teacher
Bookmarks