Here we are constructing a small peripheral which has a 1 bit register. This one bit register is actually indicating the status of the LED. If status is 1 which means LED is glowing and 0 means LED id off. Writing to this bit it will alter the state as per provided. We have "Mini2440 Hardware Essentials" data sheet of mini2440 board and we need pin details of -
- System clock pin (hclk)
- Address/Chip Select of peripheral
- Data Bit 0 pin
- Read Enable Pin
- Write Enable Pin
- Wait Pin
- Interrupt Pin
GPIO - Mini2440 with a 34 Pin 2.0mm pitch GPIO interface on CON4. CON4 contains the GPIO pins and a number of other CPU-pins, such as AIN0-AIN3, CLKOUT, SPI interface, I2C interface, GPB0 and GPB1.
System Interface Expansion Bus - The CON5 interface expansion contains a total of 16 data lines (D0-D15), 8 Address Lines (A0-A6, A24) and some control signal lines (chip select, read and write, reset, etc.). CON5 can supply 5V directly from one of the power supply input pins.
We selected these pins for our experiment.
- 33 - CLKOUT0 (GPH9)
- 8 - nGCS2 CS2 GPA13 (addr 0x10000000)
- 25 - LDATAT0 data 0 bit
- 11 - LnOE read enable
- 12 - LnWE write enable
- 13 - nWAIT
- 5 - EINT3