20
20
20
20
•
Add next beans
:
BitIO and ExtInt and set-up the properties and
methods according following tables. To set content of the bean inspector
click on the bean name in the project panel.
BitIO:
Bean name
GreenLED
Pin for I/O
P46_SOT2
Direction
Output
Init. Value
1
The only one generated method :
NegVal
Note:
DevKit16 contains only red LEDs conntected to the I/O ports of
the CPU. Do not be confused from the name of the bean.
ExtInt:
Bean name
Button
Pin for I/O
P92_INT2
Generate interrupt on
rising edge
Select methods:
Enable, Disable
.
Select events:
OnInterrupt
.
•
Codesign.
If there are no errors in your project select command
main
menu | Codesign | Codesign
or press
Ctrl+G
to codesign code. All
drivers are generated during codesign.
Note:
Processor Expert requires to save the project before codesign.
You can do it using command
File | Save
project
or press
Ctrl+S
. If you
do not save project before codesign Processor Expert ask you to do it
automatically.
•
Edit user code.
Select command
main menu | Edit | Edit Event &
Main Code
or press
Ctrl+U
to open internal editor and edit the
generated code. Two files will be opened: event module
EVENT.C
and
main module (
name of the main module is the same as name of the
project
).