November 23, 2024, 04:47:12 AM

STM32-P207 sensor temprature

Started by montyto, December 16, 2015, 02:54:53 PM

Previous topic - Next topic

montyto

hi i'm new here
i juste start with STM32-P207 board,
i need to use temperature sensor in board, it connect with PG12 & PG10,
but i dont find in Alternate function mapping that PG12 & PG10 are mapping in I2C


Any help please !

JohnS

Similar thread here https://www.olimex.com/forum/index.php?topic=776.0

You may want to cut the traces and connect the temp sensor to one of the I2Cs.

(Or buy a temp sensor you can connect more easily.)

John

montyto

So what's the role of this sensor, it will not work

JohnS

It will work fine.  You either do as the manual/schematic say (SOFT_*) or follow the advice.

John

montyto

thanks

can you give me an example code

JohnS

No.  Probably something available via google but otherwise why not write it?  (It's what dev boards are for.)

John

montyto


JohnS

#7
If you read ST doc, as you must, you'll see the whole family is largely compatible.  ST have samples...

Worst case, you write some code.

John

montyto

can you explain  me this :
Unfortunately, the board lacked free hardware SDA/SCL pins and we had to go with GPIO pins, naming them SOFT_SDA and SOFT_SCL so people would know what to expect (e.g. that they would need to implement software I2C on PG9 and PG11 processor pins).

how to configure pins to work in I2C bye software !

JohnS

#9
It means if you leave it as is (I think I would not) you need to mimic I2C in software.

That is the same as on the other thread you already added to here https://www.olimex.com/forum/index.php?topic=3554.0

John