Beruflich Dokumente
Kultur Dokumente
INNOVATIVE EXPERIMENT
1.
keil Vision 3
C RealView
(1.1) Project Manage Components, Enviroment Books...
2 default
( )
C Keil Vision 3
(Compile)
.hex led led.hex
JX-2148 LPC2148
2. C keil Vision 3
(2.1) keil Vision 3
Project Close Project
(2.6)
Data base Phillips NXP
LPC2148 JX-2148
Description LPC2148
OK
(2.7)
Startup LPC2148
Yes Startup
(2.13)
void main()
{
long i;
init();
// Initialize the system
SCS = 0x03;
// select the fast version of the I/O ports
FIO0DIR |= 0x00400000;
while(1)
{
FIO0PIN ^= 0x00400000;
for (i = 0; i < 1000000; i++ );
}
}
(2.14.2)
- Create HEX file led.hex
- HEX format: HEX-386
OK
Output Window
Output Window
led.hex
C:\led
Project
Open Project *.uv2
3.
led.hex
LPC2148 jx-2148 (Run)
LED P0.22
(3.2) JX-2148
(3.3) LPC2000 Flash Utility
INNOVATIVE EXPERIMENT