Overclocked
Member
For a Application I have in mind I need quick processing. I want to be able to Process and Sample two ADC inputs in a time frame of 1ms, but before I do that, I want to time how fast my microcontroller can do simple multiplication. I came up with the following:
I use my O-Scope to measure for how long the Port is low for. I get around 276uS. Is there another way to do this? It seems rather slow to me, but I am running at a 8Mhz clock. Any Advice would be appreciated. This might be a time to look into those 32 Bit PICs I have..
Code:
Device = 18F2410
Clock = 8
Include "IntOSC.bas"
Dim A As Word
Dim B As Word
Dim C As LongWord
A = 2048
B = 1024
While True
Low (PORTB.7) //Make PortB.7 High
C= A*B
High (PORTB.7)
Wend
I use my O-Scope to measure for how long the Port is low for. I get around 276uS. Is there another way to do this? It seems rather slow to me, but I am running at a 8Mhz clock. Any Advice would be appreciated. This might be a time to look into those 32 Bit PICs I have..