Ano programming language gagamitin mo?..
http://www.electronicslab.ph/forum/index.php?topic=780.0
#device adc=8
Ibig sabihin ata nyan ang sampling nya is 8 bit.
#device adc=16
value=read_adc();
read_adc(ADC_START_ONLY);delay_us(xx);value=read_adc(ADC_READ_ONLY);
question:sa CCS C, anong pinagkaiba ng code na:Code: [Select]value=read_adc();saka:Code: [Select]read_adc(ADC_START_ONLY);delay_us(xx);value=read_adc(ADC_READ_ONLY); anong advantages saka disadvantages nila?
regarding sa hardware:magkakaproblema kaya ako kapag ganito circuit ko: input(tru coax) --- 2Mohm---2Mohm---------ADC port | 1Mohm | GND(i hope maintindihan nyo circuit ko)voltage divider lang sya ?5 (parang voltage probe na x5 hehe)ang concern ko is yung impedance, masyadong mataas!di kaya magka-error na sa reading ng analog voltage ?
why not choose lesser resistance values?...
...which means the charge holding capacitor of the ADC module will takes a significant amount of time to charge. This will lead either to significant error in the voltage reading or a slower sampling time...
regarding sa hardware:magkakaproblema kaya ako kapag ganito circuit ko: input(tru coax) --- 2Mohm---2Mohm---------ADC port | 1Mohm | GND(i hope maintindihan nyo circuit ko)voltage divider lang sya ÷5 (parang voltage probe na x5 hehe)ang concern ko is yung impedance, masyadong mataas!di kaya magka-error na sa reading ng analog voltage ?
>di kaya mas malaki ang error ko?No. Opamps should not affect. Voltage offset though affects at lower inputs near 0V. But you could correct this by using a negative voltage supply or floating ground (1/2Vcc) and subtract the 1/2Vcc in software.
Yes, TAD is minimum 1.6uS in 877. Maybe same as your chip.
Add a 1.65V regulator or another opamp to output 1.65V and put the negative input (scope GND) of your scope there.You main input opamp still is supplied at 3.3V. Your pic ground will not be the same as your input ground.
hindi ko pa rin ma-imagine ito, kanina pa.. paano nya nako-correct yung offset voltage during when the input is near 0 volt?
|\Scope IN+o---------|+\ | +-+--o To ADC +--|-/ | | |/ | o 3.3V | | | +-------+ 100K /| | /+|-------+-----+Scope IN- o----------------+--+ | | | | \-|--+ 100K 1uF | \| | | | +--------+ | | GND GND