Changes

SP0256 Measured Timings

1,298 bytes added, 10:56, 11 March 2018
* Normally, 7bit PWM should consist of one "packet" with 128 steps. However, this seems to be broken down to four "quarter-packets" with 32 steps. This technique reduces the PWM noise from 10kHz to in-audible 40kHz.
* The image shows one such "quarter-packet" with 32 steps (actually 33 steps, not sure why, so let's ignore that). Additionally, there are some dummy steps with constant LOW level inserted between each quarter-packet, making each quarter 39 steps long. This is done to achieve a sample rate of 10kHz (a full packet is 156 = 4*39 steps, so sample rate is 3.12MHz/2/156 = 10kHz).
* For whatever reason, the quarter packers packets aren't always 39 steps long, and instead , they vary from 38 to 40 steps. Anyways, better let's ignore that, too.
[[File:SP0256 PWM Output.png]]
 
== LRQ / SBY Timings ==
 
This table shows timings when sending an allophone number to the chip (by sending ALD=LOW) while the chip was in standby mode:
Timing min avg max
ALDn falling to LDQn rising 180ns 187ns 190ns
ALDn falling to SBY falling 200ns 204ns 210ns
LRQn high duration 15940ns 24203ns 41600ns
SBY low duration (....allophone length....)
 
[[File:SP0256 ALD Detail.png]]
 
* From the Z80 perspective, the stuff with 180..210ns timings reacts immediately.
* However, the LRQ high duration of 15..41us is visible to the Z80 (though any well programmed Z80 software should not RELY on the presence of this delay) (it should of course be able DEAL with it, ie. it should not send new allophones while LRQ is high) (caution: The SSA-1 detection in "Roland in Space" DOES rely on the presence of that delay).
* Theoretically, in standby state, the chip could process incoming data immediately, so LRQ wouldn't need to go HIGH at all. The fact that it does go HIGH may have two reasons: First, the chip may be unable to react immediately. Second, it may be done intentionally, for use with edge-triggered IRQ or DMA hardware.
== Allophone Lengths ==
* calc = Timings calculated from 10kHz sample rate and the pitch/repeat values in the -AL2 ROM
* min/avg/max = Timings measured on real hardware (Amstrad SSA-1)
The min/avg/max values are slightly higher than the calculated values. This is probably because the SP0256 executes "NOPs" (with repeat=1 and pitch=unchanged) while in standby mode, and refuses to start a new allophone until it has finished the "NOP". [[File:SP0256 SBY Duration.png]]
num name spec calc min avg max
3E /EL/ 190.0 136.5 138.22 139.21 140.52
3F /BB2/ 50.0 50.2 51.92 53.17 54.10
 
[[Category:Hardware]]
2,571
edits