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

PBP command execution time

$
0
0
Main logic snippet:
Code:

...
mainloop:
    TRISA = %11111100
    PORTA = %00000001

    PORTA = %00000010
    goto mainloop
End

ASM listing:
Code:

...
        LABEL?L        _mainloop       
        MOVE?CB        0FCh, TRISA
        MOVE?CB        001h, PORTA
        MOVE?CB        002h, PORTA
        GOTO?L        _mainloop
        END?       

        END

Saleae sampling:
Attachment 7524

1 uSec per instruction at 8MHz on a 18F44K22.

Is it that simple? Or is there more going on and I'm not getting it?

(1978-1984 is so far away. Yeah, I didn't have sec 5 math so I had to take it before starting 3-yr data processing program. Of course I dropped out sec 5 math on first try; culture shock coming from high school where teachers kicked me in the butt to get things done :D and had to come back the next September to get it done.)

Robert
Attached Images
 

Viewing all articles
Browse latest Browse all 4747

Trending Articles