2camjohn
Member
When I power up my chip sometimes one of my ouputs is high for no reason.
The only place in my code which sets this output high is triggered from an interrupt and then it is only on for a very short delay before It is turned off. When I power on my chip sometimes this output is high and remains on untill I trigger this interrupt and it turns off. This output controls the release of high pressure gas so it is vital that it does not come on unexpectedly or for a long time.
My circuit uses a pic16f84a, 2 inputs and 3 outputs and a 4mhz crystal.
The code is very simple and I am certain nowhere sets the output high except for in the interrupt code.
Thanks
The only place in my code which sets this output high is triggered from an interrupt and then it is only on for a very short delay before It is turned off. When I power on my chip sometimes this output is high and remains on untill I trigger this interrupt and it turns off. This output controls the release of high pressure gas so it is vital that it does not come on unexpectedly or for a long time.
My circuit uses a pic16f84a, 2 inputs and 3 outputs and a 4mhz crystal.
The code is very simple and I am certain nowhere sets the output high except for in the interrupt code.
Thanks