Jun 7, 2013 #1 S 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
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
Jun 7, 2013 #2 jayanth.devarayanadurga Banned Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Activity points 0 Post full code. If possible zip and post project files.
Jun 8, 2013 #3 S 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 thnq jayanth for your replay jayanth.devarayanadurga said: Post full code. If possible zip and post project files. Click to expand... actually i got it today there was some mistake in target settings.once again very thankfull to you
thnq jayanth for your replay jayanth.devarayanadurga said: Post full code. If possible zip and post project files. Click to expand... actually i got it today there was some mistake in target settings.once again very thankfull to you