56F8300 PERFORMANCE TEST?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

56F8300 PERFORMANCE TEST?

ソリューションへジャンプ
3,022件の閲覧回数
DoktorLekar
Contributor I

I programmed "MC56F8322" in a way that it toggles one pin as fast as it can and the result was around 500kHz .
Is this possible for a controller that runs at 60MIPS?

Thank you!

ラベル(1)
  • DSC

タグ(1)
0 件の賞賛
返信
1 解決策
1,675件の閲覧回数
mvinkler
Contributor II
It should be about 5.5MHz, but it depends on your code (see disassembled code in CW). I tried it on 56F8323 with 60MHz bus clock and I measured 5.5MHz on the GPIO_A0 pin. See the following disassembled code:

TEST:
bfset #1,X:0xF2E1 (3 cycles) ; set the high level
bfclr #1,X:0xF2E1 (3 cycles) ; set the low level
bra TEST (5 cycles)

60MHZ / 11 cycles = 5.5MHz

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,676件の閲覧回数
mvinkler
Contributor II
It should be about 5.5MHz, but it depends on your code (see disassembled code in CW). I tried it on 56F8323 with 60MHz bus clock and I measured 5.5MHz on the GPIO_A0 pin. See the following disassembled code:

TEST:
bfset #1,X:0xF2E1 (3 cycles) ; set the high level
bfclr #1,X:0xF2E1 (3 cycles) ; set the low level
bra TEST (5 cycles)

60MHZ / 11 cycles = 5.5MHz
0 件の賞賛
返信
1,675件の閲覧回数
DoktorLekar
Contributor I
Yes thats right...
 
My line in c++ was :
 
Code:
for(;;){negbit(0);}

 

Message Edited by Alban on 2006-10-26 11:35 AM

0 件の賞賛
返信