MPLAB C30
MPLAB C30
MPLAB C30
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
SFR 的 存 取●●Special Function Registers 可 以 被 C 程 式 碼 直 接 存取 :−−−Word access: PORTA = 0xFFEC;SFRNAMEbits.BITNAME 的 結 構 位 元 存 取 方 式 可 以 直 接讀 / 寫 暫 存 器 內 特 定 位 元●e.g. PORTAbits.RA1 = 1; orIPC0bits.INT0IP = 0;_SFRNAME and _SFRNAMEbits 也 可 以 被 用 來 參 考 到 同 一SFR : 因 為 .gld 檔 定 義 兩 種 名 稱 參 考 同 一 位 址●eg e.g. PORTA & PORTAbits 都 指 向 同 一 位 址如 此 使 用 的 前 提 必 須 使 用 標 準 的 Header file (.h) 以及 Linker Script (.gld)© 2008 Microchip Technology Incorporated. All Rights Reserved. <strong>C30</strong> 入 門 及 應 用 Slide 27