Andrew R
/
Ovation_Controller_1
Latest version with SSD1963 Graphics Driver
Diff: system_defines.h
- Revision:
- 1:ecf8078bf531
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/system_defines.h Mon Apr 04 05:32:25 2011 +0000 @@ -0,0 +1,39 @@ +/************** All the major system definitions are done here ******************/ + +// control pins for I/O +DigitalOut CS(p13); /* chip select the SSD1963 active LOW */ +DigitalOut RS(p14); /* reset to SSD1963 - not used in this implementation*/ +DigitalOut nWR(p15); /* write out to SSD1963 active LOW */ +DigitalOut nRD(p16); /* read data from SSD1963 active LOW - but not used */ +DigitalOut DC(p17); /* Data/Command Select: 1=Command, 0=Data); */ +DigitalOut myled(LED1); /* for test purposes only - on the mbed module */ + +/**************************** data bus I/O pins *********************************/ +BusOut DB(p5,p6,p7,p8,p9,p10,p11,p12); //removed +/******************************************************************************/ +/* System Definitions */ +/* the following are the pin assignments on the mbed controller */ +DigitalOut pga2320(p30);/* normally LOW; take HIGH to select PGA2320 */ +DigitalOut phono(p29); +DigitalIn IRx(p27); /* p28 is the Tx outputand is not used */ +DigitalIn IPSELPB(p26); +DigitalIn IPSELB(p25); +DigitalIn IPSELA(p24); +DigitalIn VOLPB(p23); +DigitalIn VOLB(p22); +DigitalIn VOLA(p21); +AnalogIn ALS(p20); +DigitalOut SBUSON(p19); +DigitalOut NAOE(p18); /* A6821 output enable. Active LOW */ +//DigitalOut DC(p17); +DigitalOut RD(p16); /* also ASTROBE */ +DigitalOut WR(p15); /* MDATA */ +//DigitalOut RS(p14); /* ACLK */ +//DigitalOut CS(p13); +//DigitalOut myled(LED1); +//BusInOut DB(p12, p11, p10, p9, p8, p7, p6, p5); /* for the LCD display */ + +Serial pc(USBTX, USBRX); /* for debugging and in final version for test mode */ +Serial remote(NC, p27); /* remote control serial input; 1200bd 8 data, 1 stop and no parity */ +AnalogIn light(p20); /* for auto display brightness */ +