The plug-in's are COM objects, which can be added to your project. These objects simulate peripheral hardware, such as LCD displays, led indicators and even BiPOM peripheral boards.
The following steps help you add Visual plug-in's to your project.
1. Create new project or open existing project in MicroIDE.
2. To change the project settings of the current project, select "Settings" under "Project" menu and select "Visual Plugins" tab.
3. You can add new plug-in's to current project by clicking "Add Plugin" button (marked as 1 on the picture above).
List of plug-in's which was added to current project is at the left side of window (marked as 2 on the picture above).
4. To add new Visual Plugin, click "Add Plugin" button. "Add Visual Plugin" dialog window will be shown.
5. This dialog shows all available COM objects. You should select you plug-in and click "OK". Selected Plug-in appears in list.
6. You can simulate your project now. If you use TB1VisualPlugin.Plugin you can see a window like the one on the picture.
Dialog has a picture of the TB1 board with chips (rectangles), LEDs (green, yellow and red circles) and ports (four button at the left side).
You can change state of port by clicking on proper button. All changes are immediately reflected in the Register Window.
All plug-in's are COM objects. Each plug-in must have the following methods:
- SetRegisters - receive state of registers
- StartDebugging - called when debugging has started
- EndDebugging - called when debugging finished
- CallCallback - this function is called from MicroIDE
If Plugin doesn't support these methods, when you try to add such Plugin to Visual Plugin list, you get error message like on picture below:
|