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,
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,