Powered by Blogger.

15.12.11

Tagged under:

About UTM Robocon ...



Robocon team at UTM ,a place gather those students who are interest in making robot and everyone want to be selected as a team member of Robocon UTM .UTM Robocon team have won the national level ABU robocon game for six out of ten times .Thats why we are proud to be a team member for the leading Robocon Team in Malaysia.

Robocon UTM not only the platform for the students to learn the knowledge on robotics ,The higher objective need to be achieved by every team members-To be the "Champion in International ABU Robocon ".By next year ,We are going to shout our cheers loudly in Hong Kong ,let the others know how strong the UTM Robocon Team."Team members are you ready !!! UTM Boleh!!!"

As the saying goes "Hope is like the sun, which, as we journey toward it, casts the shadow of our burden behind us."For sure We are going to face the Brightest sun,the darkest shadow ,the hardest burdens and challenges ,it is worth when we are holding the Trophy。Hope is like the sun, which, as we journey toward it, casts the shadow of our burden behind us."For sure We are going to face the Brightest sun,the darkest shadow ,the hardest burdens and challenges ,it is worth when we are holding the Trophy。

13.12.11

Tagged under:

Fixed Point Arithmetic

Fixed point representation usually used in representing the fractional values. Comparing to float and double type of notation which are 32 bits and 64 bits respectively, introduction of fixed-point greatly reduced the computational effort for a machine to compute the float or double type as some of the low-cost machine can not process the floating point values. The precision of the variable is sacrificed as the process demanding is reduced.

A fixed point is basically represented in Q(m,n) where m represents the number of bits of integer and n represents fractional bits. For an example, a Q6.10 fixed point number will be contain 6 integer bits and 10 fractional bits. With the bigger number of n (fractional bits), the more bits gained in fractional bits, the more precise the value is. Therefor the resolution of a fixed point value will depends on its fractional bits, 2^(-n).

The conversion from decimal to fixed point is very simple. All you need to to is multiply the decimal with n (fractional bits).

For example,

Q9.7      m -9, n - 7  
Convert 12.5 (decimal) into fixed point. 
12.5 * 7 = 87.5 (decimal points are usually round down)
12.5 (decimal) = 87 (fixed point)

Same thing, to convert a fixed point back to a decimal is just divide the fixed point value by  n (fractional bits).


For example,  

Q3.13      m - 3, n - 13  
Convert 4687 (fixed point) into decimal. 
4687 / 13 = 360.5384615  
4687 (fixed point) = 360.5384615 (decimal)