Maker Pro
Maker Pro

high n low voltage cutoff

rishad babu

Nov 6, 2015
2
Joined
Nov 6, 2015
Messages
2
i need to program my pic18f4550 for high n low voltage cutoff.how can i do it...??
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,761
Joined
Nov 17, 2011
Messages
13,761
First by being much more specific:
  • What exactly do you mean by "high n low voltage cutoff"?
  • How is this function supposed to be triggered?
  • Which programming language/environment are you using?
 

rishad babu

Nov 6, 2015
2
Joined
Nov 6, 2015
Messages
2
Am programming in c,using mp lab.
I have set RD5 as the output of the pic.i need the output to be 0 above a cetain undesired high voltage and also below a certain low voltage.
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,761
Joined
Nov 17, 2011
Messages
13,761
i need the output to be 0 above a cetain undesired high voltage and also below a certain low voltage.
Where does the voltage to be measured come from?
What voltage range is involved?
How is it connected to the PIC?

Basically you will have to adpat the voltage to be measured to the input range of the PIC's ADC by either amplifying or attenuating it. You the use the PIC's ADC to measure the voltage and set the output level of RD5 accordin to the measured voltage level.
 
Top