From file
Another method is to set the input signal levels in a file, known as the signal
file. The simulator will obtain an input signal level one by one from the
signal file when it executes a read from port instruction. For each port set
to be an input type, there are at the most 1024 input signal levels. If the
last signal input is the 1024-th signal, the simulator will return to the
beginning of the Signal_Sequence for the next input. The input signals are
listed in the signal sequence of the signal file. The following is the format
of a signal file:
PinName1_of_Port
Signal_Sequence1
Signal_Sequence2
...............
PinName2_of_Port
Signal_Sequence
...............
...............
<EOF>
The PinName1_of_Port is the pin name of a port, such as PA0 is bit 0 of port
A. The Signal_Sequence is a sequence of 0 and 1s. Blanks, horizontal tabs
and line feeds are also allowed in the sequence but are ignored by the
simulator and are inserted to improve readability only. Multiple Signal_Se-
quence lines are allowed. The names of all ports can be referred to from the
Monitor port box in the Simulation Options dialog box, Fig 7-2. For I/O
ports, the bit number should be appended to the port name to form the
PinName_of_port.
Note
For each instruction cycle, the simulator will obtain an input signal from
the Signal_Sequence of INT or TMR (or TMR0, TMR1).
When the system enters the HALT state, and a port, e.g PA0, is configured
with a wake-up function, the simulator will obtain a signal from the
Signal_Sequence of this bit of the port (e.g. PA0) as the input signal for each
instruction cycle until the system is woken up. The signal sequence of this
port should have been previously defined.
HT-IDE User’s Guide
64
Summary of Contents for HT-IDE
Page 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Page 12: ...HT IDE User s Guide 2 ...
Page 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Page 24: ...HT IDE User s Guide 14 ...
Page 70: ...HT IDE User s Guide 60 ...
Page 76: ...HT IDE User s Guide 66 ...
Page 92: ...HT IDE User s Guide 82 ...
Page 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Page 94: ...HT IDE User s Guide 84 ...
Page 148: ...HT IDE User s Guide 138 ...
Page 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Page 154: ...HT IDE User s Guide 144 ...
Page 192: ...HT IDE User s Guide 182 ...
Page 194: ...HT IDE User s Guide 184 ...
Page 218: ...HT IDE User s Guide 208 ...
Page 235: ...P a r t V Appendix Part V Appendix 225 ...
Page 236: ...HT IDE User s Guide 226 ...
Page 250: ...HT IDE User s Guide 240 ...