sync_stim.stc

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

STC
51
字号
# set verbose 3# gpsim# Startup command file for stim_test.hex# Create the processor that's to be simulatedprocessor p16c84 fred# Load the .hex fileload s stim_test.cod# Create a stimulus node:node test_node# Create a square wave stimulus that's 1000 cycles long# and attach it to portb bit 0. The duty cycle is 30%# and the phase is 10%. echo stimulus createstimulus sqw# initial 1start 10000period 1000high_time 300phase 100# port portb 0endecho stimulus createdattach test_node portb0 sa_square_wave# Set a cycle break point on the One hundred thousand'th# execution cyclebreak c 100000# Set a register write break point when 10 (dec) is # written to register 0x20.break wv 0x20 10echo running until the wv break point is hit#runecho running until the cycle break point is hit# run

⌨️ 快捷键说明

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