Other Parts Discussed in Thread: CC2538
Hi,
In my application I am using the Sample Thermostat (HA 1.1.0) on CC2538. I am using a button to activate the match description request (falling edge=wake up; rising edge=trigger). I used to use another button to send temperature value from sleeping end device to coordinator in the same way but now I have a 15ms wide pulse of different polarity from external hardware instead. The pulse starts low (rising edge=wake up, falling edge=trigger) and generates a following problem:
The application seems to be working fine when the match description request is issued. MCU enters sleep mode and waits for the external hardware interrupt mentioned earlier. When interrupt is issued the mcu wakes up on the rising edge and after 15ms when the failing edge is issued the mcu triggers to transmit the temperature value and enter the sleep mode. However, when the next interrupt arrives it wakes up the mcu on rising edge but the falling edge is missed for some reason. This causing the mcu to stay awake until the next interrupt occurs. In that instance it recognises the falling edge, transmits the temperature and enters the sleep mode. Any idea why the falling edge interrupt is missed? I disabled the de-bouncer on that pin but problem still occurs.
I have a problem to sort this one out and would like to hear from someone who can help me with this. Perhaps even better would be to set up the wake up and trigger interrupts both on the same rising edge.
Kind regards
Milan