In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: John -- This driver is blanked on startup. It has to be turned on. Then it never hurts to set PWM (0-31). Second, the latch/load line has to present a rising edge after data is shifted. It's like saying "do it". So after every 16 bits, if you want to see that info on the driver, you need to pulse the /CS-load pin. Not sure if you have the segs wired for automatic hex decode or raw control of the segments, so you may need to set the mode you want also. See the datasheet for register assignments. So presuming you have everything hooked up properly, you might want something like: [code] LOAD PIN RB.1 OUTPUT ' make sure is output SHIFT_OUT SUB 1, 1 BLIP_LOAD SUB 0, 0 SHIFT_OUT $0C ' writing to "shutdown" register SHIFT_OUT $01 ' turn driver on by writing 1 to LSB of shutdown register BLIP_LOAD ' do those 16 bits SHIFT_OUT $0A ' writing to "intensity" register SHIFT_OUT $18 ' 0-31 is brightness value; this is ~ 3/4 full brightness BLIP_LOAD ' do those 16 bits SHIFT_OUT $01 ' writing to "digit 1" register SHIFT_OUT $0F ' show this hex value if DECODE MODE IS CORRECT, otherwise control segments/dp BLIP_LOAD ' do those 16 bits SHIFT_OUT $02 ' writing to "digit 2" register SHIFT_OUT $0F ' show this hex value if DECODE MODE IS CORRECT, otherwise control segments/dp BLIP_LOAD ' do those 16 bits '''''''' SUB SHIFT_OUT __PARAM5 = __PARAM1 SHIFTOUT DQ, Clk, MSBFirst, __PARAM5 ' shift out a byte RETURN SUB BLIP_LOAD LOAD = 1 PAUSEUS 10 LOAD = 0 RETURN [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=440702#m448012 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)