Hello
Sorry I missed the point that the port was defined as input.
You are right if the port is defined as input port you cannot write to the memory mapped register.
The full chip simulator has internal objects defined, representing the CPU Pins.
In your case you have to use this internal object name.
You can check the pin internal names used by the simulator in the following way:
- Start the simulator
- Select "Component" -> "Open". The "Open window Component" dialog is opened.
- Double click on "Inspect". The Inspect component is opened.
- Expand the "Object Pool" Tree
PORTA is defined in the MEBI block.
The name of the simulator internal object for Pin0 from PORTA is Mebi.PORTAPin0
The name of the simulator internal object for whole PORTA register is Mebi.PORTAVal
In order to be able to stimulate this Pin, you have 3 solution:
1. Use the command a (for assign) as follows
a Mebi.PORTAPin0 = 0x1
Be careful the simulator is case sensitive on internal object names.
2. Use the visualization tool
If you prefer to have a graphical interface to toggle the pin you can use the visualization tool.
- Add a LED component
- Set Kind of port to "subscribe"
- Set Port to display to Mebi.PORTAPin0
- Set Visualization tool to Display Mode
Starting from here you can toggle the Pin by clicking on the LED in the component.
3. Use the stimulation component and a stimulation file where you refer to the same
object. Note that this will only work with a professional edition license.
Please refer to {Install}\Help\PDF\Debugger_HC12.pdf, chapter "HC(S)12(X) Debug Connections"
section "HC(S)12(X) Full Chip Simulation Connection" -> "True Time I/O Stimulation" for
information on how to use/create a stimulation file
I hope this helps.
CrasyCat