NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: NES-to-PC serial link cable  
Posted byblargg
Posted on7/4/04 03:07 AM
From IP199.170.89.125  



Remember that the NES clock rate only limits resolution, not long-term accuracy; done properly the error can be kept within +/- 0.5 clock cycles. For example, if the required delay between bits is 15.5 cycles, bits can be read at a delay that alternates between 15 and 16 cycles resulting in no cumulative error. Or if the delay is 15.25 cycles, delay 15, 15, 16, 15 (15, 15, 15, 16 would be worse since it doesn't spread the error as evenly).

To anyone who's writing software-based serial receive, be sure to wait an extra half bit after you find the beginning of the start bit so that you're sampling the data bits in the middle rather than near the beginning where there's less margin for error.

Even at 57.6kbps, in my NES dev cart loader I have virtually no time to do any processing on the data so I have to just blast it to a buffer. I'm guessing that X-MODEM uses a small block size and requires acknowledgement from the receiver before another block is sent. I can't imagine how you'd keep up on the NES side otherwise.

I have to say that this scheme works very well. The code I usually test does something and then is done, so I have it re-run the loader afterwards so it's ready to receive the next iteration. This allows testing without having to take my hands away from the PC keyboard and mouse. A really cool thing is that the return link from NES to PC can be used to dump debug messages or status information to a terminal while code is running. I suppose one could even put a monitor (debugger) on the NES side which was operated from a terminal on the PC, or maybe have a dedicated PC app which handled user interaction to allowing a simpler monitor program on the NES.

The one I made many years ago for the SNES was nice because the SNES had 128K RAM to upload code to; I haven't added extra RAM to my NES dev cart so all I have is the 8K battery-backed RAM on the hacked Zelda board. What I want is a NES dev cart with a lot of RAM and a small bootloader ROM which is swapped out when my code is running. Memblers, are you making something like this, or just the serial cable?




-
Entire Thread
Subject  Posted byPosted On
*NES-to-PC serial link cable  Memblers7/1/04 08:36 AM
.*Re: NES-to-PC serial link cable  Zipplet7/4/04 2:09 PM
.*Re: NES-to-PC serial link cable  abonetochew7/3/04 02:33 AM
..*Re: NES-to-PC serial link cable  Memblers7/3/04 03:38 AM
...*Subroutines on the EPROM?  tepples7/3/04 06:36 AM
...*Re: NES-to-PC serial link cable  abonetochew7/3/04 04:37 AM
....*Re: NES-to-PC serial link cable  Memblers7/3/04 06:42 AM
.....*Re: NES-to-PC serial link cable  blargg7/3/04 11:50 AM
......*Re: NES-to-PC serial link cable  Memblers7/3/04 10:10 PM
.......*Re: NES-to-PC serial link cable  abonetochew7/4/04 00:49 AM
........*Re: NES-to-PC serial link cable  Memblers7/4/04 01:59 AM
..........Re: NES-to-PC serial link cable  blargg7/4/04 03:07 AM
.........*Re: NES-to-PC serial link cable  abonetochew7/4/04 02:50 AM
..........*Re: NES-to-PC serial link cable  Memblers7/4/04 05:32 AM
...........*Re: NES-to-PC serial link cable  nfg7/6/04 03:21 AM
............*Re: NES-to-PC serial link cable  Memblers7/6/04 08:33 AM
.............*Re: NES-to-PC serial link cable  nfg7/6/04 6:26 PM
..............*Re: NES-to-PC serial link cable  Memblers7/7/04 1:00 PM
...............*Re: NES-to-PC serial link cable  nfg7/7/04 3:45 PM
.....*Re: NES-to-PC serial link cable  koitsu7/3/04 11:18 AM
......*Re: NES-to-PC serial link cable  Memblers7/3/04 9:58 PM
....*Re: NES-to-PC serial link cable  tepples7/3/04 06:34 AM
.*With an NES RAM cart?  tepples7/1/04 6:39 PM
..*Status update?  tepples9/22/04 06:28 AM
...*Re: Status update?  Memblers9/22/04 1:34 PM
....*Re: Status update?  tepples9/22/04 4:20 PM
.....*Re: Status update?  Memblers9/22/04 6:16 PM
......*Re: Status update?  drk4219/23/04 02:21 AM
.*Re: NES-to-PC serial link cable  BrianProvinciano7/1/04 11:20 AM
..*Re: NES-to-PC serial link cable  Memblers7/1/04 11:53 PM
...*Re: NES-to-PC serial link cable  BrianProvinciano7/2/04 01:51 AM
..*Re: NES-to-PC serial link cable  koitsu7/1/04 1:35 PM
...*Re: NES-to-PC serial link cable  BrianProvinciano7/1/04 6:50 PM
....*Re: NES-to-PC serial link cable  koitsu7/1/04 8:32 PM
.....*KB/s or kbits/s?  tepples7/1/04 11:13 PM
......*Re: KB/s or kbits/s?  BrianProvinciano7/2/04 01:44 AM
.......*Re: KB/s or kbits/s?  koitsu7/2/04 05:19 AM
........*Re: KB/s or kbits/s?  BrianProvinciano7/2/04 05:28 AM
.*Re: NES-to-PC serial link cable  Necrosaro4207/1/04 08:44 AM
..*Re: NES-to-PC serial link cable  koitsu7/1/04 10:31 AM
..*Re: NES-to-PC serial link cable  Memblers7/1/04 09:18 AM
...*Re: NES-to-PC serial link cable  Necrosaro4207/1/04 09:51 AM
....*Re: NES-to-PC serial link cable  Memblers7/1/04 10:11 AM
.....*Re: NES-to-PC serial link cable  Anonymous7/1/04 7:33 PM
......*Re: NES-to-PC serial link cable  Memblers7/4/04 00:19 AM
.......*Re: NES-to-PC serial link cable  kik7/4/04 08:56 AM
........*Re: NES-to-PC serial link cable  Memblers7/5/04 04:46 AM
.........*Modchip?  tepples7/5/04 05:49 AM
..........*Re: Modchip?  Memblers7/5/04 7:06 PM
...........*Re: Modchip?  tepples7/5/04 7:22 PM
............*Re: Modchip?  Memblers7/5/04 8:36 PM
.............*Re: Modchip?  tepples7/5/04 11:23 PM
..............*Re: Modchip?  nfg7/6/04 03:37 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo