In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: OK Great. I think I understand. [quote="PJ Allen"] [code] TRIS_B = $00 R1 var byte R2 var byte G1 var byte G2 var byte b_R1 var byte b_R2 var byte b_G1 var byte b_G2 var byte bitmask var byte hotdog var byte PROGRAM Start Start: RB = 00 chopomatic: bitmask = $80 FOR hotdog = 1 TO 8 B_R1 = R1 & bitmask ' 0 or bitmask B_R1 = B_R1 / bitmask ' 0 or 1 RB.0 = B_R1 B_R2 = R2 & bitmask ' 0 or bitmask B_R2 = B_R2 / bitmask ' 0 or 1 RB.1 = B_R2 B_G1 = G1 & bitmask ' 0 or bitmask B_G1 = B_G1 / bitmask ' 0 or 1 RB.2 = B_G1 B_G2 = G2 & bitmask ' 0 or bitmask B_G2 = B_G2 / bitmask ' 0 or 1 RB.3 = B_G2 ' the RB bits have been set, ready to pulse clock for external latch Pulsout RB.7, 2 bitmask = bitmask / 2 ' 1_$40, 2_$20, 3_$10, 4_$08, 5_$04, 6_$02, 7_$01, 8_XX NEXT hotdog END [/quote] So according to PJ's program, I can coordinate the data pins as follows: Display Board Port pin "R1" is connected to SX-28 pin RB.0 Display Board Port pin "R2" is connected to SX-28 pin RB.1 Display Board Port pin "G1" is connected to SX-28 pin RB.2 Display Board Port pin "G2" is connected to SX-28 pin RB.3 Display Board Port pin "CK" (Clock) is connected directly to SX-28 pin RB.7 Finally Display Board Port pin "A" is connected directly to SX-28 pin RA.0 Display Board Port pin "B" is connected directly to SX-28 pin RA.1 Display Board Port pin "C" is connected directly to SX-28 pin RA.2 Display Board Port pin "D" is connected directly to SX-28 pin RA.3 Display Board Port pin "EN" (Enable) is connected directly to ground Display Board Port pin "ST" (Latch) is connected directly (to SX-28 pin RB.5 [i]or RB.6[/i]) Add a statement like [i]PULSEOUT RB.5, 2[/i] after the FOR NEXT "hotdog" loop. If this is correct, I will try this tomorrow night after work. Thanks! ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=273480#m273793 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)