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

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: verifying DMC IRQ timing  
Posted byblargg
Posted on11/25/03 10:41 PM
From IP199.170.89.41  



I agree fully. I've been forming a test in my mind with the most bang-for-the-buck. Run the test code on a real NES and digitize its output for analysis. First, play a square wave of some period for a short time, to provide a precise reference to the NES's clock rate as sampled, so that neither needs to be know. Then play a DMC saw wave as described, using a few delay and period settings. Use DMC sample lengths of 1 ($4013 = 0) and 17 ($4013 = 1), just in case for length 1 it triggers the IRQ immediately. Save a copy of the exact asm used for the test.

Maybe the DMC triggers an IRQ immediately for sample length = 1, meaning the IRQ generation is tied to the fetching of the last byte, rather than the exhaustion of the bit buffer coupled with no more bytes left to fetch. This would be bad, since sample length 17 generates a quite low frequency wave. If the IRQ triggered several bytes sooner than the end, sample length 17 might be reduced to a usable quantity.

Should I write an asm file for a hardware test, that maximizes the value of the test?




-
Entire Thread
Subject  Posted byPosted On
*DMC Saw and Square without hogging CPU  blargg11/24/03 12:33 PM
.*Re: DMC Saw and Square without hogging CPU  Anonymous11/27/03 11:09 PM
..*Re: DMC Saw and Square without hogging CPU  blargg11/28/03 06:52 AM
...*Re: DMC Saw and Square without hogging CPU  Anonymous11/28/03 11:34 AM
....*Re: DMC Saw and Square without hogging CPU  Memblers11/28/03 7:41 PM
.....*Re: DMC Saw and Square without hogging CPU  blargg11/28/03 11:30 PM
......*Re: DMC Saw and Square without hogging CPU  Memblers12/3/03 10:37 PM
.......*Re: DMC Saw and Square without hogging CPU  blargg12/4/03 00:21 AM
........*Finally works on NES hardware!  blargg12/4/03 09:35 AM
.........*Re: Finally works on NES hardware!  tepples12/4/03 4:21 PM
..........*Re: Finally works on NES hardware!  blargg12/5/03 00:21 AM
...........*Re: Finally works on NES hardware!  tepples12/5/03 01:30 AM
............*Re: Finally works on NES hardware!  Memblers12/6/03 01:32 AM
.............*Re: Finally works on NES hardware!  blargg12/6/03 10:46 PM
..............*Re: Finally works on NES hardware!  blargg12/7/03 09:27 AM
...............*Re: Finally works on NES hardware!  Memblers12/7/03 10:33 PM
........*Re: DMC Saw and Square without hogging CPU  Memblers12/4/03 06:00 AM
.........*Re: DMC Saw and Square without hogging CPU  Disch12/4/03 08:19 AM
........*Re: DMC Saw and Square without hogging CPU  tepples12/4/03 04:32 AM
.*Re: DMC Saw and Square without hogging CPU  Memblers11/24/03 9:46 PM
..*Re: DMC Saw and Square without hogging CPU  blargg11/25/03 06:31 AM
...*Re: DMC Saw and Square without hogging CPU  Memblers11/25/03 10:40 AM
....*Re: DMC Saw and Square without hogging CPU  blargg11/25/03 2:59 PM
.....*Re: DMC Saw and Square without hogging CPU  Anonymous11/25/03 4:15 PM
.......Re: verifying DMC IRQ timing  blargg11/25/03 10:41 PM
.......*Re: verifying DMC IRQ timing  Xodnizel11/25/03 11:01 PM
........*Re: verifying DMC IRQ timing  Memblers11/26/03 11:07 AM
.........*Re: verifying DMC IRQ timing  Memblers11/27/03 07:25 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo