Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Yes ma'am..if the BUZZER _PIN is commented there is no issues for the PIN RE2Is that the code that actually shows the problem?
Looking at that, there are only 2 places where RE1 changes (via the 'BUZZER_PIN' name) - at least that are not commented out - and they would seem to be far enough away from the references to RE2 to probably not be RWM related.
What I don't see if any reference to ADCON1 to set the PORTE pins to 'digital' mode. That should not be an issue when you set the RE1 and RE2 to output, but it will interfere with RE0 which you set as an input although I can't see any other reference to that pin. Still, it is worth a try to set the pins to digital mode.
Susan
After commenting the BUZZER _PIN HIGH the led becomes stable.. otherwise togglingIs it expecting too much if we want to see exactly the code that causes the reported problems?
--- Updated ---
Sorry, I misread the code. I presume it's the recent version.
What are you specifically observing? LED should be on but is toggling to off? LED should be off but is toggling to on? Both cases? Is the LED output driving active high or low? What's the series resistor value?
--- Updated ---
Does the problem occur if no buzzer is connected?
It's in the header fileHi,
what´s the value of "MAX_GAS_INDEX"?
Where is it defined in your code?
Klaus
You didn't answer any of my specific questions.After commenting the BUZZER _PIN HIGH the led becomes stable.. otherwise toggling