⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gpio_stim.stc

📁 可移植的MicroChip的PIC全系列单片机软件仿真器
💻 STC
字号:
# another test stimulation file## the '#' marks the beginning of a comment ## This stimulus file is used for testing the gpio# port on a 12c508 or 12c509echo I/O pin Stimulus file for gpio.# Define a node to which the pins can attach.node a_gpio_node# Create an asynchronous  stimulus that's 1000 cycles long# and attach it to portc bit 2. # stimulus asy 0x100 0x200 0x300 0x400 0x500 0x600 0x700 period 0x1000 name asy1 endstimulus 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 0x1000# Now the cycles at which stimulus changes states are# specified. The initial cycle was specified above. So# the first cycle specified below will toggle this state.# In this example, the stimulus will go high at cycle 100# and then go low at cycle 200, high at 300, and so on0x200 00x300 10x400 00x600 10x700 00x800 10x900 0# Give the stimulus a name:name asy1# Finally, tell the command line interface that we're done# with the stimulusend# but we can still have more stuff# Attach the stimulus to the IO portattach a_gpio_node asy1 gpio4echo stimulus created

⌨️ 快捷键说明

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