Hello,
I am developing RFID project with interrupt.can anybody tell me how i go with which direction?
Give me some hint.I want it is interrupt based.Give me sample code also.
also please help me out how i connect Rx and Tx pin with interrupt
I am developing RFID project with interrupt.can anybody tell me how i go with which direction?
East?
Why are you thinking you need to use interrupts? What is the RFID data for? What are the requirements for the project?
also please help me out how i connect Rx and Tx pin with interrupt
You don't. Again, why do you think you need to use interrupts?
Hello Sir,
actually,i am it interfacing with my project and in that,i have already used two serial communication,one by hardware serial communication and another is with software serial communication which is used for GSM module.
So,RFID is 3rd serial communication i am goning to implement.So,when GSM is free then i am going to check RFID data.
So, that i am implementing it with interrupt.
You have 4 hardware serial ports in the Mega. There is no reason that I can think of why you would be using SoftwareSerial on the Mega. There is certainly no reason to use TWO instances of SoftwareSerial.
So,when GSM is free then i am going to check RFID data.
How will you know that the moment you go to read the RFID, the GSM won't receive a text message? If that happens, you won't know, because you aren't listening to it.
What, exactly, is going to trigger the interrupt to tell you that you need to receive RFID data? How will you ignore that interrupt if the GSM is not free (whatever that means)? How will you go back to getting the RFID data when the GSM becomes free?
If you are using SoftwareSerial for the GSM and the RFID, and you are not listening to the RFID, because you are listening to the GSM, the RFID device will not generate an interrupt, and waving the RFID tag will have been useless. If you are listening to the RFID instance, you are not listening to the GSM instance.