WARNING: This page is about a different car, the 2003 Mazda Protege5 and 2003 Mazda Protege. However, it is still accessible from the selected car via links, so may be relevant.
When programming the ID code into a transmitter, verify that other transmitters are not being operated in the vicinity.
Program the ID code as indicated in the procedure.
Fig 1: Keyless Control Module ID Code Checking Flow Chart