Post Created date
Converting float to string
You are most welcome :)
Thursday, 15 August 2013 - 13:04
Converting float to string
As for why your sprintf is not working, maybe the library you are using does not support floats? My general approach to using "floating point" numbers on embedded microcontrollers...
Thursday, 15 August 2013 - 12:58
Converting float to string
double atof (const char *s) The idea is that you pass the (address of the) string to atof and it returns a (double) float.
Thursday, 15 August 2013 - 12:48
Converting float to string
My original suggestion would first convert the modified string to an integer, which was a number of powers of ten too big. If you simply divided the integer to the appropriate...
Thursday, 15 August 2013 - 12:34
Converting float to string
Akternatively, this might be useful... /* - ATOF.C - The ANSI "atof" function. $Name: V3_33D $ */ #include "ctype.h" #include "stdlib.h" double atof (const...
Thursday, 15 August 2013 - 12:32
Converting float to string
If I were to do this, I might strip the decimal point from the floating point string, remembering the position of the point in the string. Then use atoi to convert the string to...
Thursday, 15 August 2013 - 12:24
Help from PRO’s wanted: Interrupt causes stack crash?
IMHO, the fact that the address of "len" remains constant means that stack "creep" is not an issue, then. (I am not familiar with the StackCount() function.) My next approach...
Tuesday, 11 June 2013 - 08:12
Help from PRO’s wanted: Interrupt causes stack crash?
Depending on how many units you have (allowing parallel testing), I would also be inclined to make the large (?) character buffers static. I accept that it SHOULD make no...
Monday, 10 June 2013 - 11:03
Help from PRO’s wanted: Interrupt causes stack crash?
OK. Then I refer back to my first suggestion. Write out the address of (say) "len" at every call. As this is on the stack, we will see if your stack is "creeping" downwards. As...
Monday, 10 June 2013 - 10:14
Help from PRO’s wanted: Interrupt causes stack crash?
Hi Korstiaan Although I have no concrete idea of what is happening, the problem "smells" of stack growing downwards and crashing into any static data that you might have. If you...
Monday, 10 June 2013 - 09:16
Not able to read key press from 4X4 HEX keypad
while(PIND & (0 << COL1)) //CHECK IN 1sT COLOUMN This line does not make sense, Praveen. The "while" loop will never execute. /A
Wednesday, 5 June 2013 - 11:01
Not able to read key press from 4X4 HEX keypad
What Kartman is saying, Praveen, is that PINC0 is defined to be a bit number rather than a bit mask. Although, as you say, you have defined "ROW1" as PINC0, you are still...
Wednesday, 5 June 2013 - 09:51

Pages