42bs Posted March 10, 2018 Share Posted March 10, 2018 (edited) Hi, since RS232 is mostly gone in modern PCs, I wanted to use one of the many USB<->TTL adapters. Looking around there are many with a Prolific chip, some with CP2022 and also some with FTDI. Prolific is bad, as these allow only the "standard" baudrates. But CP2022 accepts also the Lynx-Baudrate of 62500Bd! Important: Most TTY examples check only for those standard baudrates. But Windows sends _any_ down to the driver. Reading back returns the actual baudrate used! Important is, that those chips are 5V tolerant, so there is no level-shifter needed! The straight forward connection GND to GND ComLynx RX/TX to RX/TX of the CP2022 works for sending from PC to Lynx, but not from Lynx to PC. One needs a small (Schottky) diode from ComLynx to TX (see gfx). I used just a small SMD diode I found on some old PCB. With this, data transfer with 62500Bd works perfect. Cheers Edited March 10, 2018 by 42bs Quote Link to comment Share on other sites More sharing options...
sage Posted March 10, 2018 Share Posted March 10, 2018 Thanks for sharing this. Quote Link to comment Share on other sites More sharing options...
sage Posted September 3, 2018 Share Posted September 3, 2018 I found a already equipped board with a dual interface using this chip: https://www.silabs.com/documents/public/data-sheets/CP2105.pdf Nice thing, you can connect two lynx at one USB cable. but only one of the connections features "unusual" speeds like 31250 and 62500. Annoying thing, shipping is more expensive that the boards :-( 42bs: I was wondering about the diode. its clear that it prevents the TX from pulling the line while the lynx is sending. but wouldnt a resitor do a better job? Quote Link to comment Share on other sites More sharing options...
42bs Posted September 5, 2018 Author Share Posted September 5, 2018 I found a already equipped board with a dual interface using this chip: https://www.silabs.com/documents/public/data-sheets/CP2105.pdf Nice thing, you can connect two lynx at one USB cable. but only one of the connections features "unusual" speeds like 31250 and 62500. Annoying thing, shipping is more expensive that the boards :-( 42bs: I was wondering about the diode. its clear that it prevents the TX from pulling the line while the lynx is sending. but wouldnt a resitor do a better job? You mean two Lynx'es w/o ComLynx-ing? While developing T-Tris, I did download the game to up to 4 Lynx in paralell w/o problem. Regarding the diode: I found the hint in another forum. I tried an resistor but it did not work. Too bad, I cannot remenber the explaination ... Quote Link to comment Share on other sites More sharing options...
+karri Posted September 5, 2018 Share Posted September 5, 2018 the inactive state is 5V. When some other lynx sends a 0 we don't want our Lynx 5V to block the communication. A diode works as an AND gate. Quote Link to comment Share on other sites More sharing options...
+karri Posted September 5, 2018 Share Posted September 5, 2018 the inactive state is 5V. When some other lynx sends a 0 we don't want our Lynx 5V to block the communication. A diode works as an AND gate. Quote Link to comment Share on other sites More sharing options...
+karri Posted September 5, 2018 Share Posted September 5, 2018 Reminder to myself: don't post to newsgroups while riding in an underground train in Hamburg... You just get double postings Quote Link to comment Share on other sites More sharing options...
42bs Posted September 6, 2018 Author Share Posted September 6, 2018 the inactive state is 5V. When some other lynx sends a 0 we don't want our Lynx 5V to block the communication. A diode works as an AND gate. Just to check if I understand: The inactive state of the TX port is 5V. If connected directly with the RX/TX line, the Lynx cannot sink enough current to pull the line below the 0-level (IIRC < 1.5V). So the diode will prevent current from the TX to the RX/TX line. So a sufficiently high resistor might also work. Am I right? 1 Quote Link to comment Share on other sites More sharing options...
42bs Posted September 6, 2018 Author Share Posted September 6, 2018 Reminder to myself: don't post to newsgroups while riding in an underground train in Hamburg... You just get double postings :-) Quote Link to comment Share on other sites More sharing options...
sage Posted September 6, 2018 Share Posted September 6, 2018 You mean two Lynx'es w/o ComLynx-ing? While developing T-Tris, I did download the game to up to 4 Lynx in paralell w/o problem. Regarding the diode: I found the hint in another forum. I tried an resistor but it did not work. Too bad, I cannot remenber the explaination ... Not so much for the uploading. PS: parallel upload to several lynxes never worked reliable for me. Quote Link to comment Share on other sites More sharing options...
+karri Posted September 6, 2018 Share Posted September 6, 2018 ComLynx is open collector circuit. You can connect many Lynxes in parallell. If you use resistors then every Lynx will source some current. The talking Lynx may not be able to sink the amount. Using a diode blocks the current flowing from inactive 5V to active 0. Quote Link to comment Share on other sites More sharing options...
sage Posted September 7, 2018 Share Posted September 7, 2018 Let me ask, did you include teh diode in you schematics on the flash card? Quote Link to comment Share on other sites More sharing options...
+karri Posted September 7, 2018 Share Posted September 7, 2018 I don't believe I did, probably just tied the pins together. Quote Link to comment Share on other sites More sharing options...
sage Posted September 7, 2018 Share Posted September 7, 2018 I have to rework all the old hardware shit I think. JUst queues nicely intoshacky power connector, shacky comlinx connectors, shacky cartridge connector ... the whole stuff is falling apart... Quote Link to comment Share on other sites More sharing options...
sage Posted September 7, 2018 Share Posted September 7, 2018 *rotfl* bs42: the interface you sold me a zillion years ago uses a resistor between RX and TX ))) Time to change that Quote Link to comment Share on other sites More sharing options...
42bs Posted September 8, 2018 Author Share Posted September 8, 2018 (edited) sage, the difference is that the CP2022 solution is powered by the USB. The MAX232 solution is powered by the Lynx and I doubt that the 5V does provide 500mA as the USB can. The Lynx simply can't pull down the 5V from the CP2022. It wasn't like it did not work at all but the received values were corrupted. Edited September 8, 2018 by 42bs Quote Link to comment Share on other sites More sharing options...
sage Posted September 8, 2018 Share Posted September 8, 2018 hm. valid point. but it might be the source of the problem if I have multiple lynxes at one adapter (parallel upload, comlynx debugging). the diode modification worded very well with my new usb adapters with 31250/62500baud. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.