« Reply #25 on: April 03, 2024, 04:34:58 am »
Thanks everyone for your replies.
My original motivation for asking this question is how can a complete beginner with both PIC microcontrollers and XC8 read the output of the ADC without using a UART or serial bit banging? Up to now serial has been trivial as we have used the CCS C compiler. XC8 is a bit more involved.
I'm writing code that builds GRADUALLY in complication and want to keep code as simple as possible and then build it up gradually.
I thought it would also be interesting as a thought experiment for a situation where a computer/serial link is not available.
I think using 4 different coloured LED's and then having them indicate 1000,100,10 and units would be the simplest method with a pause in between units. This would be for a 10 bit ADC result.
« Last Edit: April 03, 2024, 04:36:50 am by djsb »
Logged
David
Hertfordshire,UK
University Electronics Technician, London PIC,CCS C,Arduino,Kicad, Altium Designer,LPKF S103,S62 Operator, Electronics instructor. Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. Credited Kicad French to English translator.