tailieunhanh - PROGRAMMING AND CUSTOMIZING THE PIC MICROCONTROLLER 3rd phần 9

sau khi một báo cáo LCALL và các bit PCLATH không được thiết lập thích hợp cho trang hiện tại, thực hiện sẽ nhảy vào trang LCALL. Đối với vi điều khiển PIC cấp thấp, LCALL nên đượcVi mạch đặc biệt mnemonics Hướng dẫn tương đương addcf Reg | Simpo PDF Merge and Split Unregistered Version - http after an LCALL statement and the PCLATH bits are not set appropriately for the current page execution will jump into the LCALL page. For low-end PIC microcontrollers LCALL should be bcf bsf STATUS PA0 bcf bsf STATUS PA1 bcf bsf STATUS PA2 TABLE MICROCHIP SPECIAL MNEMONICS FUNCTION PROVIDED Equivalent Instruction Actual Inserted Instructions Function Operation Add carry to file register addcf Reg d btfsc STATUS incf Reg d C if C 1 if d 1 Reg Reg 1 else w Reg 1 Add digit carry to file register adddcf Reg d btfsc incf STATUS Reg d if DC 1 if d 1 Reg Reg 1 else w Reg 1 Branch to label B Label goto Label PC PCLATH 8 0x01800 Label Branch on carry set BC Label btfsc goto STATUS Label C if C 1 PC PCLATH 8 0x01800 Label Branch on digit carry set BDC Label btfsc goto STATUS Label DC if DC 1 PC PCLATH 0x01800 Label 8 Branch on carry reset BNC Label btfss goto STATUS Label C if C 0 PC PCLATH 0x01800 Label 8 Branch on digit carry reset BNDC Label btfss goto STATUS Label DC If DC 0 PC PCLATH 0x01800 Label 8 Branch on zero reset BNZ Label btfss STATUS goto Label Z If Z 0 PC PCLATH 0x01800 Label 8 Branch on zero set BZ Label btfsc goto STATUS Label Z If Z 1 PC PCLATH 0x01800 Label 8 Continued Simpo PDFMerge and Split Unregistered Version - http TABLE MICROCHIP SPECIAL MNEMONICS CONTINUED FUNCTION PROVIDED Equivalent Instruction Actual Inserted Instructions Function Operation Clear carry clrc bcf STATUS C C 0 Clear digit carry clrdc bcf STATUS DC DC 0 Long call do not use as described above lcall Label Low-End bcf bsf STATUS PA0 bcf bsf STATUS PA1 bcf bsf STATUS PA2 call Label MidRange bcf bsf PCLATH 3 bcf bsf PCLATH 4 call Label Long goto Igoto Label Low-End bcf bsf STATUS PA0 bcf bsf STATUS PA1 bcf bsf STATUS PA2 goto Label Mid-Range bcf bsf PCLATH 3 bcf bsf PCLATH 4 goto Label Load w register with contents of Reg movfw Reg movf Reg w W Reg if Reg 0 Z 1 else Z 0 Negate a file .

TỪ KHÓA LIÊN QUAN