cancel
Showing results for 
Search instead for 
Did you mean: 

point number

nad
Associate II
Posted on December 27, 2010 at 14:08

hello, 

I have a problem with the point number. 

for exemple:

0.9383

    

0.7445

    

0.6478

    

0.5906. 

How to leave his number in the GPIO.

4 REPLIES 4
Andrew Neil
Evangelist III
Posted on December 27, 2010 at 14:48

''I have a problem with the point number''

I think you mean, floating-point number?

''How to leave his number in the GPIO''

Sorry, I don't understand what you mean by that - please explain?

nad
Associate II
Posted on December 27, 2010 at 16:43

I'll make the connection between the STM8 and another device with controllable 

point number between 0 and 1. 

I'll save a matrix that contains these numbers and each event 

will have one number that will come out. 

For example: 

if (condition1) 

GPIOx = 0.2654; 

Sorry ,

I'm not good in English

 

Andrew Neil
Evangelist III
Posted on December 27, 2010 at 19:02

GPIOx represents a single 8-bit port - how do you plan to represent your ''point number'' on a single 8-bit port?

nad
Associate II
Posted on December 27, 2010 at 23:02

forgiveness 

I mean is that it 's one way to represent a floating point number with STM8S.