throbscottle
Well-Known Member
I've just spent 2 days writing my first ever pic (or any sort of μC for that matter) program, which is also my first ever assembler program. It is to read and decode the output from a LTC24151 adc, (for a 6 digit voltmeter) auto-range up if there's an overflow, auto-range down if the reading is low enough, and output serial bcd with dp and blanking. It's intended to eventually handle function switching, though I haven't done that yet. No registers are used to hold the adc conversion result, it's just decoded directly. Output is lsb first. It's slightly incomplete - needs interrupts and a leading digit check.
It's initially written for 16F57 to get 3 ports, but that will probably change.
I haven't yet got a pic to try this on since I've not finally settled on everything it has to do.
So now my eyes have gone all funny, I'd really appreciate if anyone experienced with pic microcontrollers could look over it and see if I've done anything stupid, or in an overly long way.
Very many thanks in advance
It's initially written for 16F57 to get 3 ports, but that will probably change.
I haven't yet got a pic to try this on since I've not finally settled on everything it has to do.
So now my eyes have gone all funny, I'd really appreciate if anyone experienced with pic microcontrollers could look over it and see if I've done anything stupid, or in an overly long way.
Very many thanks in advance