•
Add next beans
methods according following tables. To set content of the bean inspector
click on the bean name in the project panel.
BitIO:
Bean name
Pin for I/O
Direction
Init. Value
The only one generated method :
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
Pin for I/O
Generate interrupt on
Select methods:
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.
Main Code or press Ctrl+U to open internal editor and edit the
generated code. Two files will be opened: event module
main module (name of the main module is the same as name of the
project).
: BitIO and ExtInt and set-up the properties and
NegVal
.
Enable, Disable
.
Select command main menu | Edit | Edit Event &
20
20
20
20
GreenLED
P46_SOT2
Output
1
Button
P92_INT2
rising edge
EVENT.C
and