Richard,

i have thanked you so many times for your effort and help.

I think i have attached in the code most of the information required.

You have helped me in the first major issue i had with the right values and the command needed inside the HSEROUT.

Then we moved to I2C command. I think there i have shared the reg and addr values. For the SCL and SDA i dont think that is necessary at all to post which port is or not.

Anyway, now the code is working just fine and i need once again to thank you all for your help and time.

Once again Richard. Life is simpler and shorter than we all think. Smile because you have the knowledge in this field to help people.