shyam reddy
Newbie level 2
- Joined
- Jun 7, 2013
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,292
hi,
float()
{
float ch0;
unsigned long ul=20;
ch0=(float)((ul)*(3300.0f/4096.0f));
}
this is my code the value in the ch0 should be some float value but i am getting constant 0 in ch0 when i'm trying in keil 4.7(for cortex-M4 controller ).plz can any one tell me where the actual problem is.
thanks and regards,
shyam reddy
float()
{
float ch0;
unsigned long ul=20;
ch0=(float)((ul)*(3300.0f/4096.0f));
}
this is my code the value in the ch0 should be some float value but i am getting constant 0 in ch0 when i'm trying in keil 4.7(for cortex-M4 controller ).plz can any one tell me where the actual problem is.
thanks and regards,
shyam reddy