Boyu Fang
/
Ovation_Controller
TFT
Fork of Ovation_Controller_1 by
system_defines.h@3:92845c139aca, 2014-08-28 (annotated)
- Committer:
- bf1891
- Date:
- Thu Aug 28 15:18:07 2014 +0000
- Revision:
- 3:92845c139aca
- Parent:
- 1:ecf8078bf531
publish;
Who changed what in which revision?
User | Revision | Line number | New 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 |
bf1891 | 3:92845c139aca | 4 | DigitalOut CS(p28); /* chip select the SSD1963 active LOW */ |
bf1891 | 3:92845c139aca | 5 | DigitalOut RS(p8); /* reset to SSD1963 - not used in this implementation*/ |
bf1891 | 3:92845c139aca | 6 | DigitalOut nWR(p7); /* write out to SSD1963 active LOW */ |
bf1891 | 3:92845c139aca | 7 | DigitalOut nRD(p6); /* read data from SSD1963 active LOW - but not used */ |
bf1891 | 3:92845c139aca | 8 | DigitalOut DC(p5); /* 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 *********************************/ |
bf1891 | 3:92845c139aca | 12 | BusOut DB(p10,p11,p12,p13,p14,p15,p16,p17); //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); |
bf1891 | 3:92845c139aca | 29 | DigitalOut RD(LED2); /* also ASTROBE */ |
bf1891 | 3:92845c139aca | 30 | DigitalOut WR(LED3); /* 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 |