-
1A. Get the board ready
We had taken the board with the third party USB boot-loader already inside. Also, we made a note of those jumpers which we could use as GPIO and special usage pins(SPI related pins).
-
2B. Decide on the display and make connections
After considering many factors, we decided to use the nokia 5110 LCD display for our console. We managed to solder a male header to the display board and connected it to a breadboard. From there, we connected each pin from the display to these pins on the LPC2148 Blueboard:
VCC - 3.3V pin on J9 (PIN 11;
GND - GND pin on J9(PIN 1)
BL - Shorted to VCC
CS - SSEL0 pin on J9, but the pin is configured as a GPIO for better control
D/C - MISO0 pin on J9, but configured as GPIO
DIN - MOSI0 pin on J9
CLK - SCK0 pin on J9
RST - TXD1 pin on J6
-
3C. Configure push buttons as external interrupts
We used those jumpers where the EINT options were available, connecting two push buttons to EINT1 and EINT3, and using the push button on board for EINT2. A detailed connection schematic is included in the files.
-
4D. Start Coding!
We had to write the library for interfacing the screen with LPC2148. Code can be found in the files section.
After that just copy all files (headers and c files) to one folder, start a new project in Keil, compile and build the bin file. Copy that to the board, and you are good to go! All the code files can be found in the files section.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.