Table 3.23 shows the port direction register settings when acquiring a Megadrive peripheral ID. Set the port direction as follows, read RLDU when TH = 1 and RLDU when TH = 0, and calculate the megadrive peripheral ID using the above formula.
Please read R, L, D, U after 2μS after TH change.
Table 3.23 Port Direction Register Settings when Obtaining Megadrive Peripheral ID
Port bit name | TH | TR | TL | R | L | D | U |
Port direction | Set to output | input Set |