I2C0 and I2C1 on FT90x on HMI-50C display

General discussion on mikroC PRO for FT90x.
Post Reply
Author
Message
ua100k
Posts: 27
Joined: 05 Jul 2017 22:37

I2C0 and I2C1 on FT90x on HMI-50C display

#1 Post by ua100k » 08 May 2019 02:15

Hi,

Looking at the diagram, I2C0 is on the break out board and goes through the Camera cable.

However I2C1 is show on the circuit coming out of the FT900 but there is no other reference to it. The HMI-50C specifications say there are 2 I2C ports available. So how do I access the 2nd I2C, i.e. I2C1 and in the programming, how do I refer to the I2C1 instead of I2C0.

thank you.

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: I2C0 and I2C1 on FT90x on HMI-50C display

#2 Post by stefan.filipovic » 09 May 2019 10:07

Hi,

Unfortunately, I2C1 pins are not derived to the camera nor main connector, so they do not exist on the breakout board so you cannot access them easily.
However, those pins are used for I2C Slave mode only, but there is no I2C Slave library in our FT90x compiler. The mikroC PRO for FT90x provides a library which supports the master I²C mode only.

Kind regards,
Stefan Filipović

ua100k
Posts: 27
Joined: 05 Jul 2017 22:37

Re: I2C0 and I2C1 on FT90x on HMI-50C display

#3 Post by ua100k » 09 May 2019 15:42

Hi Stephan,

Ok. Thank you.

Do you have this documentation anywhere? can I read up about the rest of the HMI-50 programming capability.

The reason is that the advertisement of 2xI2C on the HMI-50 product page is then misleading as one I2C is only a slave and not accessible from anywhere, and therefore cannot be used.

I would like to see what else is limited or missing so I don't spend time trying to find it.

Thank you.

ua100k
Posts: 27
Joined: 05 Jul 2017 22:37

Re: I2C0 and I2C1 on FT90x on HMI-50C display

#4 Post by ua100k » 10 May 2019 02:06

Hi Stephan,


According to the FT900 datasheet the 2nd I2C, I2C1 can be master or slave.

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: I2C0 and I2C1 on FT90x on HMI-50C display

#5 Post by stefan.filipovic » 10 May 2019 12:07

Hi,

I made a mistake in explanation, I wanted to say that according to the FT900 datasheet, I2C1 is by default configured to I2C1 Slave.

You may find these two blog arcticles useful:
https://www.mikroe.com/blog/mikromedia-hmi
https://www.mikroe.com/blog/mikromedia- ... y-purposes

Unfortunately, as I said before, I2C1 pins are not derived to main nor camera connectors so you do not have access to them through mikromedia HMI breakout board.

I apologize for the inconvenience caused by this.

Kind regards,
Stefan Filipović

ua100k
Posts: 27
Joined: 05 Jul 2017 22:37

Re: I2C0 and I2C1 on FT90x on HMI-50C display

#6 Post by ua100k » 10 May 2019 12:32

Hi Stephan,

Thank you for the quick reply.

I am not sure which blog you are referring to in the links. I did look at these pages which have some general information but nothing about one I2C being set to slave only.

Can you tell me how I access the 2nd I2C. I understand the break out board does not have it.

Thank you.

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: I2C0 and I2C1 on FT90x on HMI-50C display

#7 Post by stefan.filipovic » 10 May 2019 13:56

Hi,

I was talking about pin description from the FT900 datasheet.
pin description.png
pin description.png (27.39 KiB) Viewed 3022 times
Those pins are not derived to the accessible pins, so I'm afraid you cannot access them.

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroC PRO for FT90x General”