In this section we will start programming LPC2138 with the
brief introduction we had in the previous section. As described earlier in
order to start programming LPC 2138 programming, we will start with the
architecture of LPC 2138 first and then proceed with the GPIO pins.
Here,
let me remind you one thing as I said one need to have a good knowledge on
seeing the data sheet for programming any controller. So in order to verify the
more details on LPC2138 please click on the following link. However the things
needed during programming will be covered using snapshots.
To start programming being from user
level please refer the following link for user manual of LPC2138
http://www.nxp.com/documents/user_manual/UM10120.pdf
The following is the pin diagram of LPC2138:
As we seen in the pin diagram LPC 2138 is a 64 pin IC. In
most of the pins each one has multiple functionalities. In here we are going
discuss every feature in the
The following are the minimum requirements to boot up
(startup) an ARM7 LPC2138 controller.
The power pins
Oscillator configurations
Power pins:
LPC 2138
has the following pins in relation with the power supply
V ref (63) -
REFERENCE FOR ADC CONTROL (NORMALLY AS SAME AS THE VBAT EXCEPT WHEN CONTROL
NEEDED)
VSSA (59) -
ANALOG GROUND
VDD (51) - 3.3
V POWER SUPPLY
VssA (50) - ANALOG
GROUND
VBAT (49) - SUPPLY
FOR RTC (3.3V)
VSS (43) - 0V REFERENCE
Vdd (42) - 3.3 V POEWR SUPPLY
VSS( 25) - 0V REF
VDD (23) - 3.3V POWER SUPPLY
VSS (18) - 0V REF
The no of power
supplies are more in order provide isolation between the different modules like
ADC ,RTC, etc.
To avoid ambiguity of connecting these power supplies to
boot up the controller, we will use a easy way by which the power supply
complexity is minimized. To refer this check the following figure. In order to
provide a power supply by considering the all power supplies we will simply
connect the all power pind like below.
Fig: Booting LPC2138
Oscillator
configurations:
For
the instance as the keil is capable of providing the oscillator frequency
required and proteus also provide the facility to follow the prescribed
frequency written in the keil compiler we will not bother about the frequency
of frequency, however we will discuss them when we realizing the circuit with
hardware .
The listed above are the minimum requirement for the booting
up of micro controller.
Nice
ReplyDelete