Jun 23, 2010 #1 yzou_ua Member level 5 Joined Nov 5, 2008 Messages 92 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Activity points 1,869 I'm new in embedded c program and this symbol always bother me, like: EstimParm.qVIndalpha = ((long)MotorEstimParm.qLsDt * (long)(EstimParm.qDIalpha))>>10; what is '>>10' for??
I'm new in embedded c program and this symbol always bother me, like: EstimParm.qVIndalpha = ((long)MotorEstimParm.qLsDt * (long)(EstimParm.qDIalpha))>>10; what is '>>10' for??
Jun 23, 2010 #2 S srizbf Advanced Member level 5 Joined Apr 3, 2010 Messages 1,992 Helped 417 Reputation 840 Reaction score 329 Trophy points 1,363 Activity points 10,985 right shift by 10 times srizbf 23rdjune2010
Jun 23, 2010 #3 C chanchal.chauhan Full Member level 4 Joined Apr 23, 2009 Messages 216 Helped 5 Reputation 10 Reaction score 1 Trophy points 1,298 Location Hyderabad, India Activity points 2,539 In C we have left shift and right shift operator.That is bit shift opertaion >>10 that means 10 right shift. <<10 that mean 10 left shift. If you have any query please mail on my personal i.d. I am happy to help you. Regards Chanchal
In C we have left shift and right shift operator.That is bit shift opertaion >>10 that means 10 right shift. <<10 that mean 10 left shift. If you have any query please mail on my personal i.d. I am happy to help you. Regards Chanchal
Jun 23, 2010 #4 A amraldo Advanced Member level 4 Joined Aug 29, 2004 Messages 1,183 Helped 145 Reputation 290 Reaction score 37 Trophy points 1,328 Location Egypt Activity points 5,880 It is used to divide the value by 1024 (2^10). -- Amr
Jun 23, 2010 #5 yzou_ua Member level 5 Joined Nov 5, 2008 Messages 92 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Activity points 1,869 Thanks a lot to all of you, guys! amraldo said: It is used to divide the value by 1024 (2^10). -- Amr Click to expand...
Thanks a lot to all of you, guys! amraldo said: It is used to divide the value by 1024 (2^10). -- Amr Click to expand...
Jun 23, 2010 #6 A amraldo Advanced Member level 4 Joined Aug 29, 2004 Messages 1,183 Helped 145 Reputation 290 Reaction score 37 Trophy points 1,328 Location Egypt Activity points 5,880 What is the quote about? -- Amr
Jun 25, 2010 #7 yzou_ua Member level 5 Joined Nov 5, 2008 Messages 92 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Activity points 1,869 Actually, what's the best way to learn programming of embedded c? Any tutorials or just following previous codes written by others?? Thank you.
Actually, what's the best way to learn programming of embedded c? Any tutorials or just following previous codes written by others?? Thank you.
Jun 25, 2010 #8 C chanchal.chauhan Full Member level 4 Joined Apr 23, 2009 Messages 216 Helped 5 Reputation 10 Reaction score 1 Trophy points 1,298 Location Hyderabad, India Activity points 2,539 Here enclosed is Programming PIC microcontroller in C pdf. Please check it out. It will be helpful for you. Regards Chanchal
Here enclosed is Programming PIC microcontroller in C pdf. Please check it out. It will be helpful for you. Regards Chanchal
Jun 25, 2010 #9 C chanchal.chauhan Full Member level 4 Joined Apr 23, 2009 Messages 216 Helped 5 Reputation 10 Reaction score 1 Trophy points 1,298 Location Hyderabad, India Activity points 2,539 You can learn with some sample code which will come with Compiler.
Jun 25, 2010 #10 A amraldo Advanced Member level 4 Joined Aug 29, 2004 Messages 1,183 Helped 145 Reputation 290 Reaction score 37 Trophy points 1,328 Location Egypt Activity points 5,880 There is a book called C by Example. It is really nice. -- Amr
Jun 25, 2010 #11 yzou_ua Member level 5 Joined Nov 5, 2008 Messages 92 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Activity points 1,869 Thx a lot!! It is helpful for sure... chanchal.chauhan said: Here enclosed is Programming PIC microcontroller in C pdf. Please check it out. It will be helpful for you. Regards Chanchal Click to expand...
Thx a lot!! It is helpful for sure... chanchal.chauhan said: Here enclosed is Programming PIC microcontroller in C pdf. Please check it out. It will be helpful for you. Regards Chanchal Click to expand...