1. Get in vehicle and close all doors, then open the drivers door and leave it open.
2. Within 24 seconds you must insert key into the ignition and cycle the ignition switch to ON and then OFF three times and leave the key in the ignition. Then close and open the drivers door three times.
3. When done properly the doors will automatically lock and then unlock. Now the vehicle is in programming mode. If locks do not cycle you must start the procedure over.
4. Push the unlock button twice on the first remote to be programmed. The door locks will cycle automatically to indicate successful programming. If there is only one remote to be programmed to the vehicle you must push any button twice again on the same remote, wait for locks to cycle, then push any button twice one more time on the same remote.
If there are two remotes to be programmed then press any button on the second remote twice, wait for locks to cycle, then push any button twice again on the second remote. To program three remotes to this vehicle you must press button twice on second remote, wait for locks to cycle, then press any button twice on the third remote.
5. Programming is now complete. Close the door and test remotes to ensure proper programming.
2008 Mazda 3 4-Door Remote Programming