Quantcast
Channel: Interactive Dreams
Viewing all articles
Browse latest Browse all 1857

Reader Question: "Snes2CDi is using the analog pins, why is that, as both the Arduino and CD-i protocol are digital"

$
0
0

The SNES2CDi adapter uses the analogue pins. Why? "You might be curious about the use of an analog input where there is no analog signal. The reason is that the CDi and the Arduino have different logical levels : the CDi asserts the RTS line at about 2.4 volts when the Arduino needs about 3 volts on digital inputs. By reading the RTS line on an analog input, I've been able to set manually a lower "virtual logical level". This allows to use the Arduino alone, without any other electronic component to adapt the levels. For some reason, all my attemps to use the hardware UART to send data to the CDi failed. This is why I used NewSoftSerial (called SoftwareSerial in the Arduino IDE) to emulate another UART. As it is only used to send data, the RX interrupt is not really used and this is why the RX pin is not connected. The CDi doesn't send anything on its TX, it only communicates on the RTS line, this is the reason why the communication between the Arduino and the CDi is kind of asymetrical."


Viewing all articles
Browse latest Browse all 1857

Trending Articles