Visualization Tools - True Time Simulator

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Visualization Tools - True Time Simulator

1,853 Views
DavidoBG
Contributor II
Is it possible, with Visualization Tools  (embedded True Time Simulator SW), to put an instrument like button connected as input and not output ?
For exemple i would like connect a push button on PTAD2 to simulate a KBI isr because i have not yet HW board.
For instance, with Visualization Tools, i can just display the output state of PORT. 
 
Thanks for your help
 
David
  
Labels (1)
0 Kudos
4 Replies

472 Views
DavidoBG
Contributor II
OK that's right, thanks
David
0 Kudos

472 Views
DavidoBG
Contributor II
I follow your instructions crasycat but i cannot toggle button. I seems, the button display the output state of this port.
Do you have any vtl sample file. I use MS9S08QE8
 
Thanks David
0 Kudos

472 Views
CrasyCat
Specialist III
Hello
 
Attached a small project, with a visualization tool component allowing you to toggle PTA2.
Just rebuild the project.
Once in the debugger, when you are stopped at main do a Step Over to make sure the function PE_low_level_init is executed and all peripherals are initialized properly.
 
After that you can click on the LED or Switch instrument to toggle PTA2.
 
CrasyCat
0 Kudos

472 Views
CrasyCat
Specialist III
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
0 Kudos