Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4747

How long does this take to execute

$
0
0
Hello all
'how many clock cycles for the two lines inside the LOOP?

DEFINE OSC 32

' chip is 16F1939, 8MHz xtal 4X PLL = 32MHz clock

OutputPin1 var PORTD.0
InputPin1 var PORTD.1
Sw1 var byte

'here is executable section
do
OutputPin1 = 1
Sw1 = InputPin1
loop
END

' is it as simple as n per line or is there compiler overhead ?
' and everything else being equal would an 18F be the same?

Viewing all articles
Browse latest Browse all 4747

Trending Articles