i am using Pic18f2620 to sense a analog( eg temp sensor) input and convert it to digital input...
i came up with this code i wonder is it correct or wong.... do i need to add additional files?
eg temp sensor, compare it with the desire temp. and if is over the desire temp, the alarm will be triggered.