Pic12F1840 how to change settings durin it run
Posted: Fri Jun 05, 2020 10:55 am
Hello Martin,
I ask you for help with an operation that I don't know how to perform.
I am using the PIC12f1840 because I need few I / O and a serial line. The program starts with an initial setting of pins 6 and 7 such as RX and TX and after acquiring some data from a PC (via rs232) I need to set (at this point in the program) these 2 ports as analog inputs (the hardware is ready to do so).
To set the various functions of the chip I use the "2D: Dashboard Panel" and I don't think I can set the functions of pins 7 and 8 both for the rs232 and as analog inputs whose functions I would then call in the program after having finished the work with the rs232.
I would be very grateful if you could give me a suggestion (assuming that what I need it can be done)
Regards
castabob
I ask you for help with an operation that I don't know how to perform.
I am using the PIC12f1840 because I need few I / O and a serial line. The program starts with an initial setting of pins 6 and 7 such as RX and TX and after acquiring some data from a PC (via rs232) I need to set (at this point in the program) these 2 ports as analog inputs (the hardware is ready to do so).
To set the various functions of the chip I use the "2D: Dashboard Panel" and I don't think I can set the functions of pins 7 and 8 both for the rs232 and as analog inputs whose functions I would then call in the program after having finished the work with the rs232.
I would be very grateful if you could give me a suggestion (assuming that what I need it can be done)
Regards
castabob