async_pulse.stc

来自「可移植的MicroChip的PIC全系列单片机软件仿真器」· STC 代码 · 共 73 行

STC
73
字号
processor p16c84xload h pulse_measure.hex# Stimulus file for testing 3-tcyc resolution# pulse measurements.echo Stimulus file for 3-tcyc pulse measurements# Define a node to which the pins can attach.node test_node# Create an asynchronous  stimulus that's 0x10000 cycles long# and attach it to portb bit 0. stimulus asynchronous_stimulus   # or we could've used asy# The initial state AND the state the stimulus is when# it rolls overinitial_state 1# all times are with respect to the cpu's cycle counterstart_cycle 0x100# the asynchronous stimulus will roll over in 'period'# cycles. Delete this line if you don't want a roll over.period 0x100# Indicate that this is digital data (default):digital# Now the cycles at which stimulus changes states are# specified. The initial cycle was specified above. 0x20  10x40  00x4b  1# Give the stimulus a name:name asy1# Finally, tell the command line interface that we're done# with the stimulusend# Attach the stimulus to the IO portattach test_node asy1 portb0# but we can still have more stuffstimulusecho stimulus createdbreak e 0runx

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?