PIC12F629 has only one interrupt entry, so the conflict caused by multiple interrupts should be avoided.
The pin level change triggers the interrupt and the external int interrupt. When the total interrupt gie is cleared, the interrupt program will not be executed.
When the MCU enters sleep, it often uses pin level change interrupt or external int interrupt to wake up. If it is the former, it will wake up when the key is pressed, and it will wake up when the key is raised. If there are other interrupts at this time, such as initializing the timer and setting gie, the two interrupts will conflict.
If the I / O port of PIC MCU is used as the input pin, the comparator must be turned off during initialization, otherwise, it will not respond.
When using PT2262 and MCU as the transmitter, if you use battery, you should save the most power. Normally, the MCU sleeps and ptt2262 is not powered on. You can use the triode to control the power supply of ptt2262, which is powered on only once when transmitting.
In the 315MHz am circuit, the frequency selective inductor can be molded or wound by itself. Of course, it is best to use a ring PCB copper wire at one end.
315MHz transceiver antenna length calculation formula: l = 1 / 4 wavelength; and wavelength = 3.0 * 10 ^ 8 / 315MHz, the best matching antenna is about 25cm, rod antenna can be used, of course, a long thick line on PCB can also be used.
The receiving end uses super regenerative receiving circuit. The drawing that is widely circulated on the network can be used after it has been moved down. I plagiarized it once, and I hope it can also be used. It's not easy to understand.