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
I2C help file details
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
I2C help file details
Best Regards
Mince
Mince
Re: I2C help file details
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.
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.
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
Re: I2C help file details
can you be clear on which version you thought would be better?filip wrote:We were thinking that it would be better if we use this kind of nomenclature
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
Mince
Re: I2C help file details
Hi,
so the users may easily find the appropriate pins on which they will connect their hardware.
Regards,
Filip.
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,can you be clear on which version you thought would be better?
so the users may easily find the appropriate pins on which they will connect their hardware.
Regards,
Filip.