Look Here First

Curious why I created this blog? The following two posts explain it all. Click on the titles below to read more.

What this Blog is about.

Project Description.

Thursday, March 17, 2011

The LPC2418 ARM7 and the Logomatic V2 Datalogger

LPC2418 ARM7

The LPC2418 ARM7  is a 32-bit processor running at speeds of up to 60Mhz.(1)   This is roughly equivalent to the processor used in the original Playstation.(2)  The LPC has about twice the clock speed as the Playstation when running at full power, but considering the LPC's application in a portable game system running off a battery, the processor will likely be running at or below Playstation speeds.

A 32-bit processor running at Playstation speeds may seem like overkill for a simple game like Pac-Man.  It is overpowered for the game.  In designing this system, the student was designing hardware that could run a variety of games.   In the future the student would like to continue programming games that are too complex to be programmed in the short time frame of the project.

Besides speed the LPC 2418 has many other features as outlined by the Keil parts database website.
The NXP (founded by Philips) LPC2148 is an ARM7TDMI-S based high-performance 32-bit RISC Microcontroller with Thumb extensions 512KB on-chip Flash ROM with In-System Programming (ISP) and In-Application Programming (IAP), 32KB RAM, Vectored Interrupt Controller, Two 10bit ADCs with 14 channels, USB 2.0 Full Speed Device Controller, Two UARTs, one with full modem interface. Two I2C serial interfaces, Two SPI serial interfaces Two 32-bit timers, Watchdog Timer, PWM unit, Real Time Clock with optional battery backup, Brown out detect circuit General purpose I/O pins. CPU clock up to 60 MHz, On-chip crystal oscillator and On-chip PLL.
Of the many systems on the chip, The SPI, USB 2.0 interface, the ADC, and the 32 bit timers are of the most interest to this project.

The SPI (Serial Peripheral Interface) will be the tool used to connect to and communicate with the LCD screen.  The SPI works by sending data serially that is synchronized with a clock.    Although the LPC2418 has two SPI systems, only one SPI is available on the output pins on the  Logomatic V2.  This should not be an obstacle to this project. The two pins from the SPI system that will be used are the SCK1 (SCK) and the MOSI1 (MOSI).  SCK sets the speed of the data transfer.  The speed of SCK depends on the speed of the
VPB Clock and the SPCCR register.  The VPBDIV register value that sets the speed of the VPB Clock by dividing the C Clock by the value in VPBDIV.   The speed of the VPB Clock is further divided by the value in the SPCCR register.  A frequency of 1MHz on the SCK should be sufficient.  Another register of note is the SPCR register which sets the SPI to a master or slave mode.  When interfacing with the screen the SPI should be the master and the SPCR register should have a value of 0x20.  The SPI will be discussed more in the software section The Nokia 6100 Display Driver

(1) http://www.keil.com/dd/chip/3880.htm

No comments:

Post a Comment