[Ktechlab-devel] instruction cycles
deifo at ono.com
deifo at ono.com
Sun Feb 19 20:09:53 UTC 2006
I think this bug is not completely fixed.
I compiled svn revision 828 today, and found the following results.
This program produces a perfect square wave on pin 1, as it should.
loop:
BSF PORTA, 1
NOP
NOP
NOP
BCF PORTA,1
NOP
GOTO loop
This other doesn't (low value stays for twice the time of the high). Note
that it's almost the same of the first example. See attached image (example2).
loop:
BSF PORTA, 1
NOP
NOP
;NOP
BCF PORTA,1
;NOP
GOTO loop
This other is strange. The wave goes like that: 1 time high, 2 times low,
2 times high, 2 times low and repeat. It's irregular. See attached image
(example3).
loop:
BSF PORTA, 1
NOP
NOP
;NOP
BCF PORTA,1
NOP
GOTO loop
This one is also irregular. It's the inverse wave of the later.
loop:
BSF PORTA, 1
NOP
NOP
NOP
BCF PORTA,1
;NOP
GOTO loop
This is always on low.
loop:
BSF PORTA, 1
;NOP
;NOP
;NOP
BCF PORTA,1
;NOP ; 0 or more NOP here
GOTO loop
Also I attached 2 more backtraces.
If you want more information just ask. I'm happy to help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example2.png
Type: image/png
Size: 323 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/ktechlab-devel/attachments/20060219/46d2c1f3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example3.png
Type: image/png
Size: 508 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/ktechlab-devel/attachments/20060219/46d2c1f3/attachment-0001.png>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ktechlab-bt1.txt
URL: <http://mail.kde.org/pipermail/ktechlab-devel/attachments/20060219/46d2c1f3/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ktechlab-bt2.txt
URL: <http://mail.kde.org/pipermail/ktechlab-devel/attachments/20060219/46d2c1f3/attachment-0001.txt>
More information about the Ktechlab-devel
mailing list