Quantcast
Channel: Microchip Taiwan :: 論壇
Viewing full articles (4647 articles)
Browse article index
↧

Re: PIC24FJ64GA006關於ADC轉態的問題 [發表者 argogee]

$
0
0
8-bit PIC (請註明使用元件編號):: PIC24FJ64GA006關於ADC轉態的問題
引用:

Ryang 寫道:
...
ADCHS = 0x0006 ; // CH0正端輸入選擇AN6,負端輸入為Vss
IEC0bits.ADIE = 1 ; // 打開AD的中斷
IPC2bits.ADIP = 7 ; // 中斷等級=7 ( 最高優先權中斷等級 )
ADCON1bits.ADON = 1; // 啟動 AD
}
[/code]


請問,24FJ64GB002 規格書內
REGISTER 22-4: AD1CHS: A/D INPUT SELECT REGISTER
bit 7 CH0NA: Channel 0 Negative Input Select for MUX A Multiplexer Setting bit
1 = Channel 0 negative input is AN1
0 = Channel 0 negative input is VR-

bit 4-0 CH0SA<4:0>: Channel 0 Positive Input Select for MUX A Multiplexer Setting bits
Implemented combinations are identical to those for CH0SB<4:0> (above)
01011 = Channel 0 positive input is AN11

如果我將CH0NA 設1; CH0SA<4:0>設01011,
那是否代表,ADC的數值=AN11-AN1的ADC轉換值? (已知:AN11>=AN1)

(自己try-error也是可以啦,但我先確認是否誤解規格書的說明)
謝謝回覆。
↧

Viewing full articles (4647 articles)
Browse article index

Latest Images

Trending Articles



Latest Images