Using DAC O/P PIN RA2 16F1709
Posted: Thu Aug 04, 2022 12:22 am
I am using PIC16F1709 and I want to use pin RA2 as the DAC output.
Flowcode8 does not allow me to set the DAC o/p pin. Default port A0.
Looking at the form it appears it I set C code for DAC1CON0 = 10110000 (0XB0) this will enable pin RA2 and disable Pin AO.
My question is my code correct in the attached Flowcode window and do I need to repeat the C block command during the program or will the Component Macro DAC_Output1 send the o/p to pin RA2?
Please see attachments for details
Flowcode8 does not allow me to set the DAC o/p pin. Default port A0.
Looking at the form it appears it I set C code for DAC1CON0 = 10110000 (0XB0) this will enable pin RA2 and disable Pin AO.
My question is my code correct in the attached Flowcode window and do I need to repeat the C block command during the program or will the Component Macro DAC_Output1 send the o/p to pin RA2?
Please see attachments for details