On 9/28/2012 4:41 PM, Matt Pobursky wrote: > Those look interesting. Did you happen to find any datasheets for those > parts? Kind of hard to do a PCB layout or write code for them without it. > > I just did an online search and couldn't find anything. > > Matt Pobursky > Maximum Performance Systems > > They use the Pt6961 chip and I already have one of them working now. The code is a bit strange at first but the pinout for the displays=20 looking from the front, is VSS , Data out, Data In, Clock, Strobe, VCC I used +5V supply, may work with 3.3V Pull the strobe high, send a command byte,strobe low, strobe high, send=20 data byte, strobe low That does the setup routine setup sequence is: 0x0c The digits are accessed slightly different. Pull strobe high, send digit command followed by digit data, strobe low Code is below , written with Mplabx and the xc8 compiler Have fun Mark /* * File: main.c * Author: Mark Hanchey * * Created on September 28, 2012, 10:02 PM * Sample code for driving PT6961 LED display * Using Pic18F4520 @ 8Mhz */ #include #include #include #include #pragma config OSC=3DINTIO67, WDT=3DOFF,MCLRE=3DON #pragma config DEBUG =3D OFF ,LVP =3DOFF #pragma config PWRT=3D OFF #define _XTAL_FREQ 8000000 #define STB LATDbits.LD0 #define DIO LATCbits.LC5 #define CLK LATCbits.LC3 void delayMs(int x) // MS delay { int i; for (x ;x>0;x--) { for (i=3D0;i<=3D110;i++); } } void Write_6961_data(int temp) { int i; for(i=3D0;i<8;i++) { DIO=3Dtemp & 1; temp>>=3D1; CLK=3D0; CLK=3D1; } } void Write_6961_cmd(int cmd) { STB=3D1;DIO=3D1;CLK=3D1; STB=3D0; Write_6961_data(cmd); } void Set_6961(void) { Write_6961_cmd(0x02); Write_6961_cmd(0x40); Write_6961_cmd(0xc0); Write_6961_cmd(0x8f); } int main(int argc, char** argv) { const char DISP[]=3D{0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07,=20 0x7f, 0x6f, 0x77, 0x7c, 0x58, 0x5e, 0x79, 0x71,0x80}; TRISC =3D 0; TRISD =3D 0; Set_6961(); while(1){ for(int i=3D0; i<17; i++){ Write_6961_cmd(0xC0); Write_6961_data(DISP[i]); Write_6961_cmd(0xC2); Write_6961_data(DISP[i]); Write_6961_cmd(0xC4); Write_6961_data(DISP[i]); Write_6961_cmd(0xC6); Write_6961_data(DISP[i]); delayMs(10); } } return (EXIT_SUCCESS); } --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .