I2C help file details

Post your requests and ideas on the future development of mikroC PRO for ARM.
Post Reply
Author
Message
Mince-n-Tatties
Posts: 2780
Joined: 25 Dec 2008 15:22
Location: Scotland

I2C help file details

#1 Post by Mince-n-Tatties » 14 Jun 2012 16:27

Hi mE

compiler version 2.50

in the help file, i notice for I2Cx_Init info reads as follows

ST specifics :

I2C1_Init is set on PORTB pins 6 and 7,
I2C2_Init is set on PORTB pins 10 and 11,
I2C3_Init is set on PORTH pins 7 and 8.

can i suggest that it would be better to replace "pins" with "bits". e.g. I2C1_Init on an STM32F100C4_48PIN would be pins 42 and 43, portb bits 6 & 7
Best Regards

Mince

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: I2C help file details

#2 Post by filip » 15 Jun 2012 11:52

Hi,

OK, we appreciate your suggestion.
We were thinking that it would be better if we use this kind of nomenclature, so the user may know on which pins on the PORTx the I2C lines are on.

Regards,
Filip.

Mince-n-Tatties
Posts: 2780
Joined: 25 Dec 2008 15:22
Location: Scotland

Re: I2C help file details

#3 Post by Mince-n-Tatties » 15 Jun 2012 17:08

filip wrote:We were thinking that it would be better if we use this kind of nomenclature
can you be clear on which version you thought would be better?

I will also be clear...

In this context in English the use of the word "pin" relates directly to a physical entity i.e. the package pin.
There is no physical portb pin 6 with I2C function hence the correct usage would be portb bit 6.
Best Regards

Mince

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: I2C help file details

#4 Post by filip » 20 Jun 2012 09:47

Hi,
can you be clear on which version you thought would be better?
We thought it would be better if we use PORTB pins 6 and 7 (for example), as they are available on the PORT pinouts on the STM development system,
so the users may easily find the appropriate pins on which they will connect their hardware.

Regards,
Filip.

Post Reply

Return to “mikroC PRO for ARM Wish List”