Olimex Support Forum

ARM => ST => Topic started by: montyto on December 16, 2015, 02:54:53 PM

Title: STM32-P207 sensor temprature
Post by: montyto on December 16, 2015, 02:54:53 PM
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 !
Title: Re: STM32-P207 sensor temprature
Post by: JohnS on December 16, 2015, 03:22:57 PM
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
Title: Re: STM32-P207 sensor temprature
Post by: montyto on December 16, 2015, 04:08:48 PM
So what's the role of this sensor, it will not work
Title: Re: STM32-P207 sensor temprature
Post by: JohnS on December 16, 2015, 05:37:16 PM
It will work fine.  You either do as the manual/schematic say (SOFT_*) or follow the advice.

John
Title: Re: STM32-P207 sensor temprature
Post by: montyto on December 17, 2015, 12:46:40 PM
thanks

can you give me an example code
Title: Re: STM32-P207 sensor temprature
Post by: JohnS on December 17, 2015, 03:02:33 PM
No.  Probably something available via google but otherwise why not write it?  (It's what dev boards are for.)

John
Title: Re: STM32-P207 sensor temprature
Post by: montyto on December 17, 2015, 04:18:03 PM
it s for STM32-p207

thaaaaank you :D
Title: Re: STM32-P207 sensor temprature
Post by: JohnS on December 17, 2015, 05:21:09 PM
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
Title: Re: STM32-P207 sensor temprature
Post by: montyto on December 17, 2015, 05:38:05 PM
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 !
Title: Re: STM32-P207 sensor temprature
Post by: JohnS on December 17, 2015, 06:13:41 PM
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