19
19
19
19
P R O C E S S O R E X P E R T T U T O R I A L
Tutorial project for Processor Expert and DevKit16 is located in directory
ProcessorExpert\Projects\Demo.Tutorial\LED.pe
. This demo project
contains two BitIO beans connected to LEDs on DevKit16 and ExtInt bean
connected on INT2. The LEDs are toggled on external interrupt. The interrupt is
generated by the PC keyboard.
C R E A T E Y O U R O W N T U T O R I A L ( S T E P B Y S T E P )
In this short course you can learn how to create simple project including CPU,
two BitIO beans and ExtInt bean. BitIO beans are set as output and control the
LEDs and ExtInt bean captures the external interrupt and switches the LEDs.
This project is also located in Processor Expert sub-directory
Project\Demo.Tutorial\
.
•
Open Processor Expert
from Window's Start menu.
•
Open new project
.
Press button
Open new project
on startup panel
or use command in
main menu | File | New project
.
•
Select CPU configuration
.
There are several prepared projects
included in the Processor Expert. These projects contain typical CPU
settings and two configurations: one configuration for debug and second
one for release (final) version of the application. Select project:
MB90540 16-bit external bus
.
•
Add the first bean
:
Select
Input/Output
page on the Beans Palette
in the Processor Expert main window. Click on the button BitIO to add
BitIO bean into current project.
•
Set-up the bean
.
Open bean inspector using command
main menu |
View | Inspector
or press
Ctrl+I
and select page
Properties
. Change
following values for properties:
Bean name
RedLED
Pin for I/O
P47_SCK2
Direction
Output
Select page
Methods
and choose only method
NegVal
as generated and
other methods as not generated.