Hey,
I'm stuck at the moment with how to check the I/O of the 16F628 PIC. I'll start from the beginning.
I have 3 inputs, all of which I want to check the voltages and whether they are between a certain voltage or not. First I need to know how to accept the input (I've seen the use of ADRESH but not sure if it applies to this PIC because it has no A/D, so I doubt it) and then how to go about comparing it to a decimal number.
I understand the use of add/sub's to compare, but I don't understand how to compare with a decimal number. I don't quite understand how to declare a decimal number either. How would one, say, declare a constant of 1.3V?
Thanks for any help!
I'm stuck at the moment with how to check the I/O of the 16F628 PIC. I'll start from the beginning.
I have 3 inputs, all of which I want to check the voltages and whether they are between a certain voltage or not. First I need to know how to accept the input (I've seen the use of ADRESH but not sure if it applies to this PIC because it has no A/D, so I doubt it) and then how to go about comparing it to a decimal number.
I understand the use of add/sub's to compare, but I don't understand how to compare with a decimal number. I don't quite understand how to declare a decimal number either. How would one, say, declare a constant of 1.3V?
Thanks for any help!