Interrupts
Posted: Fri Dec 09, 2022 2:04 am
Hello -
I'm putting a signal (sine wave zero crossing) on the interrupt input pin of the PIC18f2553. I'm driving a motor from AC and the drive is a triac. Works well.
Normally, I like to store variables in Eeprom, and since I can't continuously write eprom values due to life, I store on power down. I monitor the DC volts, and at a specific low voltage, I run the eprom routine. That works well too.
Since I have a zero cross information each time the mains is at zero, I think I can determine the loss of AC based on missing pulses. In my case the time between pulses is 1/120 seconds (8.33ms)
Been thinking about this, and I think I need another interrupt for real time measurement.
I would like to understand how an interrupt acts when another interrupt happens. Any thoughts? How does flowcode handle this?
I'm putting a signal (sine wave zero crossing) on the interrupt input pin of the PIC18f2553. I'm driving a motor from AC and the drive is a triac. Works well.
Normally, I like to store variables in Eeprom, and since I can't continuously write eprom values due to life, I store on power down. I monitor the DC volts, and at a specific low voltage, I run the eprom routine. That works well too.
Since I have a zero cross information each time the mains is at zero, I think I can determine the loss of AC based on missing pulses. In my case the time between pulses is 1/120 seconds (8.33ms)
Been thinking about this, and I think I need another interrupt for real time measurement.
I would like to understand how an interrupt acts when another interrupt happens. Any thoughts? How does flowcode handle this?