Hi there,
I have an application in mind requiring me to read in three analogue channels as basis to calculate a response. I am using the PIC16F88 for this. So far, I have been experimenting with the Eblocks programmer, the experimenter board and flowcode prof.
I've managed to read the value of a potentiometer connected to D2 on port A using the tutorial26 flowchart. However, when I start looking for the "thermometer" and associated ADC macros (trying to import them) to try and adapt them to read other ADC's as well I cannot find the macros at all. I did come across a sensor_library.asm that I could include in a C block diagram but that looked like it would only read a value on D3?
My question: Is there a a generic flowcode macro for ADC conversion where you can select the input bit(s) on the picmicro or an easy way to implement something like that?
Would appriciate your suggestions
multiple adc inputs?
- Steve
- Matrix Staff
- Posts: 3422
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
Sorry for the late response - I've been away.
I think what you want is the "thermometer" ADC component. You can add 3 of these to your FlowCode program, but you will then need to click the ">" button and select "component connections..." to select the appropriate ADC channel for each component.
Once you have done this, you can use the "call macro" icon to call the thermometer's "SampleADC" and "ReadLow/ReadHigh" macros to initiate ADC conversion.
I think what you want is the "thermometer" ADC component. You can add 3 of these to your FlowCode program, but you will then need to click the ">" button and select "component connections..." to select the appropriate ADC channel for each component.
Once you have done this, you can use the "call macro" icon to call the thermometer's "SampleADC" and "ReadLow/ReadHigh" macros to initiate ADC conversion.