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

📄 iopin_stim.asm

📁 可移植的MicroChip的PIC全系列单片机软件仿真器
💻 ASM
字号:
	list	p=16c84	;; The purpose of this program is to test gpsim's stimulation capability	;; between iopins. In this example, the open collector iopin of porta (bit 4)	;; is toggled. The response is then examined at portb bit 0.	;; 	;; 	;; 	;; 		include "p16c84.inc"  cblock  0x20			temp1	temp2	temp3  endc	org	0	goto	start		org	4start	clrf	temp1		; a counter	clrf	temp2		; a flag keeping track of the state of port b	clrf	temp3	bsf	status,rp0	bcf	porta,4	bcf	status,rp0begin	movf	temp3,w	movwf	porta	;; Count the rising edges on portb bit 0		movf	portb,w	xorwf	temp2,w	xorwf	temp2,f	andwf	temp2,w	andlw	1		skpz	  incf	temp1,f	incf	temp3	goto	begin	end

⌨️ 快捷键说明

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