DTC P1705: Transaxle Range Switch Out Of Self-Test Range: Description
WARNING: This page is about a different car, the 2002 Mazda 626 and 2001 Mazda 626. However, it is still accessible from the selected car via links, so may be relevant.
DTC will set if PCM detects improper TR switch position during self-test, PCM determines that TR switch circuit has a malfunction.