In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: This program [code] DEVICE SX28, OSCXT2, BOR42 FREQ 50_000_000 value VAR BYTE ShiftReg PIN RC OUTPUT ' Data is output on pin RC.0 ClkPin PIN RB.0 OUTPUT PROGRAM Start Start: FOR value = 0 TO 255 ASM CLRB ClkPin MOV ShiftReg,value ' Output bit 0 of value SETB ClkPin CLRB ClkPin RR ShiftReg ' Output bit 1 of value SETB ClkPin CLRB ClkPin RR ShiftReg ' Output bit 2 of value SETB ClkPin CLRB ClkPin RR ShiftReg ' Output bit 3 of value SETB ClkPin CLRB ClkPin RR ShiftReg ' Output bit 4 of value SETB ClkPin CLRB ClkPin RR ShiftReg ' Output bit 5 of value SETB ClkPin CLRB ClkPin RR ShiftReg ' Output bit 6 of value SETB ClkPin CLRB ClkPin RR ShiftReg ' Output bit 7 of value SETB ClkPin ENDASM NEXT END [/code] Sends 2048 bits in 153.58uSec or 13.33 MHz. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=353205#m353287 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)