embed_v
Junior Member level 1
hiiii
i want to calculate the prescaler value for the following
16-bit timers to generate a 1us tick and the controller is running at 50mhz.
i am using LM3S811 stellaris uc. in the datasheet it explain like this ...
but i dnt understand how the Mx time to be calculated....
All values assume a 50-MHz clock with Tc=20 ns (clock period).
Table 9-2. 16-Bit Timer With Prescaler Configurations
Prescale #Clock (T c) Max Time Units
00000000 1 1.3107 mS
00000001 2 2.6214 mS
00000010 3 3.9322 mS
------------ -- -- --
11111101 254 332.9229 mS
11111110 255 334.2336 mS
11111111 256 335.5443 mS
so plz guide to cal. the prescale values as per above mentioned
THNX
i want to calculate the prescaler value for the following
16-bit timers to generate a 1us tick and the controller is running at 50mhz.
i am using LM3S811 stellaris uc. in the datasheet it explain like this ...
but i dnt understand how the Mx time to be calculated....
All values assume a 50-MHz clock with Tc=20 ns (clock period).
Table 9-2. 16-Bit Timer With Prescaler Configurations
Prescale #Clock (T c) Max Time Units
00000000 1 1.3107 mS
00000001 2 2.6214 mS
00000010 3 3.9322 mS
------------ -- -- --
11111101 254 332.9229 mS
11111110 255 334.2336 mS
11111111 256 335.5443 mS
so plz guide to cal. the prescale values as per above mentioned
THNX