Arduino Forum

Using Arduino => Programming Questions => Topic started by: raghul on Apr 18, 2019, 12:46 pm

Title: using Hardware serial and interrupt together
Post by: raghul on Apr 18, 2019, 12:46 pm
Hi Everyone
 i am trying to use Hardwareserial communication and external interrupt at the same time
whenever i am trying to do this i am losing data i am using pre designed wifi chip it sends serial data continuously to the mc. When ever the interrupt is activated the serial communication no longer works so is there any way where i can make both of them work.
Note:As soon as the board is powered on the interrupts are activated.
        A zero crossing detector 4n35 is used to produce the interrupt
        Serial communication also works continuously   
Title: Re: using Hardware serial and interrupt together
Post by: raghul on Apr 18, 2019, 01:38 pm
i am using arduino uno board
Title: Re: using Hardware serial and interrupt together
Post by: Robin2 on Apr 18, 2019, 03:34 pm
Without seeing your program how can anyone offer any suggestions?

...R
Title: Re: using Hardware serial and interrupt together
Post by: ballscrewbob on Apr 18, 2019, 04:27 pm
In addition to R2's request a schematic may also prove useful.

Bob.