• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts (老甲)




一些很新手的問題
#1
新會員
新會員


我是PIC學習新手,想請教各位高手,有關於以下程試(我只是COPY其中的部份,為PIC16C54~7),裡面的EQU $及RES 1是什麼意思?
還有可以請各為高手分析一下這兩個MACRO是怎麼寫的?
有什麼文件可查嗎?


麻煩各位高手了啊~~~



;**********************************************************************
;* Usage Description
;* ----------------------- --------------------------------------
;* BIT label,bit,file ;Define a bit label
;* SEB label ;set bit using bit label
;* CLB label ;clear bit using bit label
;* SKBS label ;SKIP on bit set
;* SKBC label ;SKIP on bit clear
;* BBS label,address ;BRANCH on bit set
;* BBC label,address ;BRANCH on bit clear
;* CBS label,address ;CALL on bit set
;* CBC label,address ;CALL on bit clear
;*
;**********************************************************************

BIT MACRO label,bit,file ;Define a bit label
label EQU file<<8|bit ;(macro)
ENDM ;

SEB MACRO label ;Set bit
BSF label>>8,label&7 ;(macro)
ENDM ;


BIT B_C,0STATUS
RTCC RES 1
I2CR0 EQU $
RES 1

發表於: 2006/1/5 18:12
頂部






:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------