ADC component connection
ADC component connection
I might just be retarded but how is an ADC item actually connected. There is no schematic in the help files. Im going to use a POT as an example: im guessing 5 vdc is applied to the pot wiper and either end is applied to the pic depending on whether I want ascending or descending values...correct?? THANKS!!!
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ADC component connection
Hello
The ADC component is connected to an I/O pin that is labelled on the chip as ADC0 through to ADCn. To change the pin connection simply go into the components connection menu and change the pin as needed. Then all you have to do is perfom a sample and then read the value as an 8-bit byte or a 10-bit value.
To connect analogue devices to the I/O pin eg a pot simply connect the two ends of the pot to 5V and Ground and then connect the middle of the pot to the analogue I/O pin.
The ADC component is connected to an I/O pin that is labelled on the chip as ADC0 through to ADCn. To change the pin connection simply go into the components connection menu and change the pin as needed. Then all you have to do is perfom a sample and then read the value as an 8-bit byte or a 10-bit value.
To connect analogue devices to the I/O pin eg a pot simply connect the two ends of the pot to 5V and Ground and then connect the middle of the pot to the analogue I/O pin.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel