Discussion in "8051 Discussion Forum" started by    romel_emperado    Nov 4, 2010.
Sat Jan 15 2011, 02:41 pm
guys? hehe
Sun Jan 16 2011, 12:37 am
I think you need to first take a look at proper type definitions
u8 = unsigned char
s8 = char
u16 = unsigned short / unsigned int
s16 = short / int
u32 = unsigned long
s32 = long

now just pass the varable to that function of type u8. now u get it?
Sun Jan 16 2011, 05:59 am
yes ajay i already research that on the net but i dont get it why the function mx_cal defined variable line and then i dont see it is use inside the fuction..


[ Edited Sun Jan 16 2011, 06:12 am ]
Mon Jan 17 2011, 12:02 am


i dont get it why the function mx_cal defined variable line and then i dont see it is use inside the fuction..

romel_emperado


Yes it is strange.
Where is this code from and what language is it ?

Mon Jan 17 2011, 12:46 am
hi experimentuk, thanks for your reply.

Problem is now solved..
instead of calling the function mx_call i just store the weight and met value to a global variable so that i can still access it to other function..

By the way this code is C..
im modifying the ez430 chronos watch firmware...

Actually the watch is using the msp430xxx microcontroller.
Mon Jan 17 2011, 08:39 am
hi again guys another question. Hehe

what does it mean if i declare a value like thi?

#define datalog_interval (5u)


what is (5u) what kind of value is that?
Mon Jan 17 2011, 05:35 pm
hi romel
it can be understand after seeing ur all code
5u can be 5*u
u may be any no
 romel_emperado like this.
Mon Jan 17 2011, 10:46 pm
u is for unsigned int i guess...

sometimes we use UL for unsigned long... thats all i think
 romel_emperado like this.
Tue Jan 18 2011, 10:45 am
thanks ajy ang majoka...

anyway Im almost done with this project.. the unexpected result of my work is good... hehe lol

thanks for your help guys... thanks for your help of explaining everything here
Wed Jan 19 2011, 12:13 am
welcome romel

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am