Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] Question of ADC on uchip

Status
Not open for further replies.

silverwolfman

Junior Member level 1
Joined
Feb 22, 2013
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,408
Hi guys,

A question about the dsPIC33 chip of uchip:
Because the chip I selected only has one ADC1Buff, so I try to set the config bit(AD1CSSL)to switch between different Analog inputs, but here comes the problem when I switching between 2 different inputs,

AD1CSSL=0x0006;
AN1=ADC1BUF0;
AD1CSSL=0x0004;
AN2=ADC1BUF0;

turn out the result of AN1 is the same with AN2, however, when I read AN1 or AN2 separately, the value is correct. So I guess the problem is that when using the mux to switch between channels, the charge cap don't have the enough time to recharge or discharge when sampling. Is there any method to avoid this situation? Add some delay in between? The system is speed sensitive:(

Best Regards,
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top