Andrew R
/
Ovation_Controller_1
Latest version with SSD1963 Graphics Driver
Embed:
(wiki syntax)
Show/hide line numbers
system_defines.h
00001 /************** All the major system definitions are done here ******************/ 00002 00003 // control pins for I/O 00004 DigitalOut CS(p13); /* chip select the SSD1963 active LOW */ 00005 DigitalOut RS(p14); /* reset to SSD1963 - not used in this implementation*/ 00006 DigitalOut nWR(p15); /* write out to SSD1963 active LOW */ 00007 DigitalOut nRD(p16); /* read data from SSD1963 active LOW - but not used */ 00008 DigitalOut DC(p17); /* Data/Command Select: 1=Command, 0=Data); */ 00009 DigitalOut myled(LED1); /* for test purposes only - on the mbed module */ 00010 00011 /**************************** data bus I/O pins *********************************/ 00012 BusOut DB(p5,p6,p7,p8,p9,p10,p11,p12); //removed 00013 /******************************************************************************/ 00014 /* System Definitions */ 00015 /* the following are the pin assignments on the mbed controller */ 00016 DigitalOut pga2320(p30);/* normally LOW; take HIGH to select PGA2320 */ 00017 DigitalOut phono(p29); 00018 DigitalIn IRx(p27); /* p28 is the Tx outputand is not used */ 00019 DigitalIn IPSELPB(p26); 00020 DigitalIn IPSELB(p25); 00021 DigitalIn IPSELA(p24); 00022 DigitalIn VOLPB(p23); 00023 DigitalIn VOLB(p22); 00024 DigitalIn VOLA(p21); 00025 AnalogIn ALS(p20); 00026 DigitalOut SBUSON(p19); 00027 DigitalOut NAOE(p18); /* A6821 output enable. Active LOW */ 00028 //DigitalOut DC(p17); 00029 DigitalOut RD(p16); /* also ASTROBE */ 00030 DigitalOut WR(p15); /* MDATA */ 00031 //DigitalOut RS(p14); /* ACLK */ 00032 //DigitalOut CS(p13); 00033 //DigitalOut myled(LED1); 00034 //BusInOut DB(p12, p11, p10, p9, p8, p7, p6, p5); /* for the LCD display */ 00035 00036 Serial pc(USBTX, USBRX); /* for debugging and in final version for test mode */ 00037 Serial remote(NC, p27); /* remote control serial input; 1200bd 8 data, 1 stop and no parity */ 00038 AnalogIn light(p20); /* for auto display brightness */ 00039
Generated on Tue Jul 12 2022 23:07:04 by 1.7.2