56F8300 PERFORMANCE TEST?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

56F8300 PERFORMANCE TEST?

跳至解决方案
2,850 次查看
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)
标记 (1)
0 项奖励
回复
1 解答
1,503 次查看
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,504 次查看
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,503 次查看
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 项奖励
回复