huynh
05-17-2010, 02:30 PM
Dear all users,
It's my honor to have your opinion in an issue that involved with the clock frequency of Prostick USB.
I use an Prostick USB to receive data from some sensors, including the Digital magnetic compass and the rotational speed sensor. the clock setup is "
_CLKMODE = XTAL1 + PLL16X, 80 Mhz clock
_XINFREQ = 5_000_000;
As I use the function "byte[Stringptr][index++] := rx" the clock frequency looks quite different. By checking the following output:
out := (100_000_000/(clkfreq/1_000_000) + 1), (note: it just a function consisted of clkfreq/1_000_000)
i found that:
+ without the code of "byte[Stringptr][index++] := rx", the value of "out" is 12500001, so the clkfreq can be calculated as 80Mhz
+ as the code of "byte[Stringptr][index++] := rx" is included, the value of "out " is 724638, hence the corresponding clkfreq is 138Mhz
is it correct?
I do not have much experience about this issue. I am wondering whether there is a conflict as using the function of "byte[Stringptr][index++] := rx" or not.
Thank for any suggestion.
thien,
It's my honor to have your opinion in an issue that involved with the clock frequency of Prostick USB.
I use an Prostick USB to receive data from some sensors, including the Digital magnetic compass and the rotational speed sensor. the clock setup is "
_CLKMODE = XTAL1 + PLL16X, 80 Mhz clock
_XINFREQ = 5_000_000;
As I use the function "byte[Stringptr][index++] := rx" the clock frequency looks quite different. By checking the following output:
out := (100_000_000/(clkfreq/1_000_000) + 1), (note: it just a function consisted of clkfreq/1_000_000)
i found that:
+ without the code of "byte[Stringptr][index++] := rx", the value of "out" is 12500001, so the clkfreq can be calculated as 80Mhz
+ as the code of "byte[Stringptr][index++] := rx" is included, the value of "out " is 724638, hence the corresponding clkfreq is 138Mhz
is it correct?
I do not have much experience about this issue. I am wondering whether there is a conflict as using the function of "byte[Stringptr][index++] := rx" or not.
Thank for any suggestion.
thien,