Mikroelektronika MIKROE-932 数据表

下载
页码 16
Page 2
Page 3
Let’s make a simple “Hello world” example for  the 
selected  microcontroller.  First  thing  embedded 
programmers usually write is a simple 
LED blinking
 
program. So, let’s do that in a few simple lines of 
Pascal code. 
LED blinking is just turning ON and OFF LEDs that 
are connected to desired PORT pins. In order to see 
the  example  in  action,  it  is  necessary  to  connect 
the  target  microcontroller  according  to  schematics 
shown on Figure 2-1. In the project we are about 
to  write,  we  will  use  only 
PORTA
,  so  you  should 
connect the LEDs to PORTA only.
Prior to creating a new project, it is necessary to do the following:
Step 1: Install the compiler
Install  the  mikroPascal  PRO  for  ARM®  compiler  from  the 
Product 
DVD
 or download it from the MikroElektronika website: 
http://www.mikroe.com/eng/products/view/753/mikroPascal-pro-for-arm/
Step 2: Start up the compiler
Double click on the compiler icon in the Start menu, or on your desktop 
to Start up the mikroPascal PRO for ARM® compiler. The mikroPascal 
PRO for ARM® IDE (Integrated Development Environment) will appear 
on the screen. Now you are ready to start creating a new project.
2. Hardware Connection
VCC-3.3
AVCC
30
29
28
27
34
33
58
57
56
55
54
53
52
46
36
35
42
43
44
45
37
50
9
48
49
11
12
32
72
69
68
67
66
65
64
63
4
3
78
77
24
23
18
17
16
15
14
13
5
6
7
8
10
79
80
1
2
22
21
20
19
62
61
60
59
38
39
40
41
47
71
31
51
70
26
25
76
75
74
73
LM3S9B95
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
PA7
PA6
ERBIAS
VDD
PF4
PF5
PE5
PE4
LDO
VDD
GND
VDD
PB1/USB0VBUS
VDD
VDD
TXOP
PJ4
PJ5
PJ6
PJ7
GND
TXON
PB5
PB6
PB7
VDD
VDDC
PJ1
PH2
PH3
GNDA
VDDA
PD5
PD4
PE3
PE2
GND
PB4
PD2
PA2
PC6
PC7
GND
VDD
PG0
PG1
USB0DP
USB0DM
NC
PB3/I2C0SDA
PJ0
PD1
PD0
VDDC
PD6
PD7
PE7
PE6
PA1
PA0
PC4
PC5
OSC1
PJ3
PB0/USB0ID
PF2
PF0
OSC0
GND
PJ2
RXIN
MDIO
PF1
PH0
XTALNPHY
XTALPPHY
PH7
PG7
RXIP
PF3
RST
PH1
PA5
PA4
PA3
PA7
PA6
PA2
PA1
PA0
PA5
PA4
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
PA3
PD3
GND
PH6
PH5
PB2/I2C0SCL
PC2
PH4
USB0BIAS
PE0
PE1
PC3
PC1
PC0
VDD
GND
U1
R61
9K1
E9
10uF
VCORE
VCORE
R1
4K7
R5
4K7
R2
4K7
R6
4K7
R3
4K7
R7
4K7
R4
4K7
R8
4K7
LD0
LED
LD4
LED
LD1
LED
LD5
LED
LD2
LED
LD6
LED
LD3
LED
LD7
LED
VCC3
VCC3
Figure 2-1: 
Hardware 
connection 
schematics