In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJ Allen wrote: Here's a RAM matrix, if you will, for the SX28 (it can be adapted for SX-yo-name-it.) It's a Proof of Concept program, not the answers to anyone's prayers. I assigned VALues to rcv_data, but you'll have to make a program that'll read your DS....device and place those values, accordingly. The values get placed on the B outputs in succession, as the [i]FOR r =[/i] loop repeats. (If you whump your LEDs on RB.0, .1, .2, .3, .4, .5 then everything should be apparent.) [code] DEVICE sx28, oschs3, TURBO, STACKX, OPTIONX IRC_CAL IRC_SLOW FREQ 28_000_000 PROGRAM starter starter: TRIS_B = $00 rcv_data VAR Byte (3) r VAR Byte rcv_data (0) = $11 rcv_data (1) = $0E rcv_data (2) = $15 Place_data: FOR r = 0 TO 2 RB = rcv_data (r) PAUSE 2000 NEXT GOTO Place_data [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=183305#m183445 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)