Latest version with SSD1963 Graphics Driver

Dependencies:   mbed

Committer:
andrewcrussell
Date:
Mon Apr 04 05:32:25 2011 +0000
Revision:
1:ecf8078bf531

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewcrussell 1:ecf8078bf531 1 /************** All the major system definitions are done here ******************/
andrewcrussell 1:ecf8078bf531 2
andrewcrussell 1:ecf8078bf531 3 // control pins for I/O
andrewcrussell 1:ecf8078bf531 4 DigitalOut CS(p13); /* chip select the SSD1963 active LOW */
andrewcrussell 1:ecf8078bf531 5 DigitalOut RS(p14); /* reset to SSD1963 - not used in this implementation*/
andrewcrussell 1:ecf8078bf531 6 DigitalOut nWR(p15); /* write out to SSD1963 active LOW */
andrewcrussell 1:ecf8078bf531 7 DigitalOut nRD(p16); /* read data from SSD1963 active LOW - but not used */
andrewcrussell 1:ecf8078bf531 8 DigitalOut DC(p17); /* Data/Command Select: 1=Command, 0=Data); */
andrewcrussell 1:ecf8078bf531 9 DigitalOut myled(LED1); /* for test purposes only - on the mbed module */
andrewcrussell 1:ecf8078bf531 10
andrewcrussell 1:ecf8078bf531 11 /**************************** data bus I/O pins *********************************/
andrewcrussell 1:ecf8078bf531 12 BusOut DB(p5,p6,p7,p8,p9,p10,p11,p12); //removed
andrewcrussell 1:ecf8078bf531 13 /******************************************************************************/
andrewcrussell 1:ecf8078bf531 14 /* System Definitions */
andrewcrussell 1:ecf8078bf531 15 /* the following are the pin assignments on the mbed controller */
andrewcrussell 1:ecf8078bf531 16 DigitalOut pga2320(p30);/* normally LOW; take HIGH to select PGA2320 */
andrewcrussell 1:ecf8078bf531 17 DigitalOut phono(p29);
andrewcrussell 1:ecf8078bf531 18 DigitalIn IRx(p27); /* p28 is the Tx outputand is not used */
andrewcrussell 1:ecf8078bf531 19 DigitalIn IPSELPB(p26);
andrewcrussell 1:ecf8078bf531 20 DigitalIn IPSELB(p25);
andrewcrussell 1:ecf8078bf531 21 DigitalIn IPSELA(p24);
andrewcrussell 1:ecf8078bf531 22 DigitalIn VOLPB(p23);
andrewcrussell 1:ecf8078bf531 23 DigitalIn VOLB(p22);
andrewcrussell 1:ecf8078bf531 24 DigitalIn VOLA(p21);
andrewcrussell 1:ecf8078bf531 25 AnalogIn ALS(p20);
andrewcrussell 1:ecf8078bf531 26 DigitalOut SBUSON(p19);
andrewcrussell 1:ecf8078bf531 27 DigitalOut NAOE(p18); /* A6821 output enable. Active LOW */
andrewcrussell 1:ecf8078bf531 28 //DigitalOut DC(p17);
andrewcrussell 1:ecf8078bf531 29 DigitalOut RD(p16); /* also ASTROBE */
andrewcrussell 1:ecf8078bf531 30 DigitalOut WR(p15); /* MDATA */
andrewcrussell 1:ecf8078bf531 31 //DigitalOut RS(p14); /* ACLK */
andrewcrussell 1:ecf8078bf531 32 //DigitalOut CS(p13);
andrewcrussell 1:ecf8078bf531 33 //DigitalOut myled(LED1);
andrewcrussell 1:ecf8078bf531 34 //BusInOut DB(p12, p11, p10, p9, p8, p7, p6, p5); /* for the LCD display */
andrewcrussell 1:ecf8078bf531 35
andrewcrussell 1:ecf8078bf531 36 Serial pc(USBTX, USBRX); /* for debugging and in final version for test mode */
andrewcrussell 1:ecf8078bf531 37 Serial remote(NC, p27); /* remote control serial input; 1200bd 8 data, 1 stop and no parity */
andrewcrussell 1:ecf8078bf531 38 AnalogIn light(p20); /* for auto display brightness */
andrewcrussell 1:ecf8078bf531 39