Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

File: Rx63n 10 bit ADC- channel 4 to 7 reading less volatge

$
0
0
I am using a RX63n series -10 bit ADC. I am using a continuous scan mode for 10 bit adc. On channel AN0 to AN4 is 24 v monitor. AN5 , AN6 is a stepper motor monitor. AN7 is 5V monitor. Channel AN0-4 works fine. Channel AN7 reading very less voltage as less than 1 v. On pin the voltage comes fine 5v but adc register shows less count value after conversion. I am using following setting - AD.ADCSR.BYTE = 0x47u; // 01000111 // |||||||+- CH[0] When ADCR.MODE[1:0] == 10b or 11b, this selects the scan channel // ||||||+-- CH[1] b'111' scans channels AN0 to AN7 // |||||+--- CH[2] // ||||+---- RESERVED // |||+----- RESERVED // ||+------ ADST 0:Stops A/D conversion. 1:Starts A/D conversion // |+------- ADIE 0:ADIO interrupt is disabled by completing A/D conversion. 1:ADIO interrupt is enabled by completing A/D conversion. // +-------- RESERVED AD.ADCR.BYTE = 0x0Eu; // 00001110 // |||||||+- MODE[0] 00:Single channel mode. 01:Setting prohibited. 10:Continuous scan move. 11:Single scan mode. // ||||||+-- MODE[1] // |||||+--- CKS[0] 00:PCLK/8. 01:PCLK/4. 10:PCLK/2. 11:PCLK // ||||+---- CKS[1] // |||+----- RESERVED // ||+------ TRGS[0] 000:SW trigger. // |+------- TRGS[1] // +-------- TRGS[2] AD.ADCR2.BYTE = 0x00u; // 00000000 // |||||||+- RESERVED // ||||||+-- RESERVED // |||||+--- RESERVED // ||||+---- RESERVED // |||+----- EXSEL[0] 00:Analog input channel (ANxx). 01:ANEX1. 10,11:Settings prohibited. // ||+------ EXSEL[1] // |+------- EXOEN Extended Analog Output Control. 0:Output is disabled. 1:Output is enabled. // +-------- DPSEL 0:A/D data is flush-right. 1:A/D data is flush-left. AD.ADSSTR = 0xFFu; // 11111111 Please help.

Viewing all articles
Browse latest Browse all 59170

Trending Articles