Page 40 - PIC18F4550微處理機C語言設計實務
P. 40
PIC18F4550 ฆஈଣዚ C ႧԊணࠇྼਕ
unsigned RA6:1;
};
struct {
unsigned AN0:1;
unsigned AN1:1;
unsigned AN2:1;
unsigned AN3:1;
unsigned T0CKI:1;
unsigned AN4:1;
unsigned OSC2:1;
};
struct {
unsigned:2;
unsigned VREFM:1;
unsigned VREFP:1;
unsigned:1;
unsigned LVDIN:1;
};
struct {
unsigned:5;
unsigned HLVDIN:1;
};
struct {
unsigned ULPWUIN:1;
};
} PORTAbits_t;
extern volatile PORTAbits_t PORTAbits @ 0xF80;
߰ίόʕซࠅπ՟ PORTAd̥ࠅਗ਼ PORTA ൖމɓࡈᜊᅰdٜટᛘ՟אᄳɝd
ν؈ซࠅఊዹછՓ RA0 ٙ໔dא݊ఊዹкᓙ RA0dԴ͜٫ఱ̙˸ਗ਼ RA0 ఊዹਂ፩̈א
٫݊ఊዹίό༁ࠦਂкᓙf
Էνj
PORTA = 0x03;
ڌͪਗ਼ RA0 ၾ RA1 ፩̈ High Չቱ፩̈ Lowf
ν؈Ыซࠅٝ༸ PORTA ٙ RA3 வ˕໔ίɪ݊৷ཥЗHighdᒔ݊ЭཥЗ
Lowࣛd̙˸ٜટᛘ՟ RA3 א࿁ RA3 ਂкᓙf
Էνj
30