st7/ ;------------------------------------------------------ ; SEGMENT MAPPING FILE AUTOMATICALLY GENERATED BY STVD7 ; SHOULD NOT BE MANUALLY MODIFIED. ; CHANGES WILL BE LOST WHEN FILE IS REGENERATED. ;------------------------------------------------------ TITLE "KF85.ASM" MOTOROLA #INCLUDE "st7flite05.inc" BYTES ; The following addresses are 8 bits long segment byte at 80-FF 'ram0' MMSH DS.B $1 MMSL DS.B $1 WORDS ; The following addresses are 16 bits long segment byte at FA00-FFDF 'rom' MAIN: LD A,#$0F LD PADDR,A LD PAOR,A NOP NOP NOP NOP NOP NOP NOP BSET PADR,#3 LD A,#20 ;延时子程序 L1: DEC A JRNE L1 BRES PADR,#3 JP MAIN PA3外接一个LED,但是怎么也看不到闪烁的现象。我怎么调试都无法实现,LED老是常亮。我感觉到问题存在与我对I/O口的输出模式,即是所谓的开漏和推拉理解有误。请各位技术工程师帮我解答,谢谢! |