Hello
You can stimulate input to a bit within an I/O port using the visualization tool, but I am not sure you can raise an interrupt from this window.
To connect an instrument to PTD2:
- Add either a LED or Switch Instrument to your visualization window
- Click with the right mouse button on the instrument and select Properties
- Set Port to Display to 0x6
- Set Bit Number to display to 2
- Close the Property dialog
- Switch the visualization window from Edit Mode to Display Mode
(Click with the right button in the window and make sure "Edit Mode" is unchecked in the menu).
While application is running it should be possible to toggle the bit 2 in PORTD clicking on the instrument.
I am not sure the KBI interrupt will raise, but it might be worth a try.
CrasyCat