In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Alessandro wrote: Thanks for your answer! To test the speed and the clockcycle i have put a led over the RB0 and through a 460OHM resistor to Vss. The program to test the speed is simple: it turn the led on and than turn it off. [2] Initialize ;Configure port settings mov rb, #%00000000 ;Port B output zero mov !rb,#%11111110 ;Port B.bit0 output dir. ;---------------------------- MAIN PROGRAM ----------------------------- Main mov rb,#$01 mov rb,#$00 jmp Main ;goto main on 4 MHZ turbo, the high period is 470 ns, and the low period is a bit more because of the jump time. Now on 4 MHZ the clock cycle is 250 ns, and the datasheet says that the move istruction takes 1 clock. but it is longer! what is wrong? Thanks again Alessandro [/2] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=255649#m256201 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)