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

📄 vm.prj

📁 串口转发IIC程序
💻 PRJ
字号:
; ************************************************************
; PROJECT:
; AUTHOR:
; ************************************************************

; Micro + software running
; ------------------------------------------------------------
.MICRO "ATmega16"
.TOOLCHAIN "GENERIC"
.TARGET    "com2iic.hex"
.COFF      "com2iic.cof"
;.SOURCE "source1.c" ; Optional with GENERIC toolchain

.TRACE              ; Activate micro trace

; Following lines are optional; if not included
; exactly these values are taken by default
; ------------------------------------------------------------
.POWER VDD=5 VSS=0  ; Power nodes
.CLOCK 11.0592meg         ; Micro clock
.STORE 250m         ; Trace (micro+signals) storage time

; Micro nodes: RESET, AREF, PA0-PA7, PB0-PB7, PC0-PC7, PD0-PD7, ACO, TIM1OVF
; Define here the hardware around the micro
; ------------------------------------------------------------

;------------------------------------------------------------
; I2 monitor cells  SDA  SCL
;
Xone   I2C(100K 10) pc1  pc0 ;  100KHz master clock, slave addr = 10 (decimal)

Rsda VDD PC1 10K ; Pullup resistors, also necessary in VMLAB!
Rscl VDD PC0 10K ; for I2C

Xtwo TTY(115200 8 0 0 1 4) pd0 pd1

.plot v(pc1) v(pc0) v(pd0) v(pd1)


⌨️ 快捷键说明

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