56F8300 PERFORMANCE TEST?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

56F8300 PERFORMANCE TEST?

Jump to solution
2,782 Views
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!

Labels (1)
Tags (1)
0 Kudos
1 Solution
1,435 Views
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

View solution in original post

0 Kudos
2 Replies
1,436 Views
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 Kudos
1,435 Views
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 Kudos