Author Topic: DUO RAM  (Read 526 times)

thesteve

  • Hero Member
  • *****
  • Posts: 2952
Re: DUO RAM
« Reply #15 on: June 18, 2011, 04:32:03 AM »
yes please refer to the chips per designator, as the duo has multiple micro-controllers, processors, specialized processors ect.
a data flow chart could prove quite useful.
any pin data on the custom chips would be helpful, especially as it refers to usage

Bonknuts

  • Hero Member
  • *****
  • Posts: 3292
Re: DUO RAM
« Reply #16 on: June 18, 2011, 02:23:12 PM »
Unless the SampleClock output is being used as a interrupt on U501?  But it shouldn't be necessary unless U501 would be unable to keep up with streaming the voice data; after all, it should be able to since it's the source.  Wonder if the limitations of U502 required it to receive more attention in a more timely manner, and there needed to be some kind of feedback from it to U501 (via the SampleClock) to say "ready for next data NOW"?

 Well, the complexity of the design and function are what original made some suspect the IC105 provided pass through functionality to the ADPCM chip. Especially since the ADPCM memory is port based, not flat model mapped to the IC901. The problem is dynamic, because you can set the playback speed. I.e. The time point where you need to switch the playback buffer (it's not split in hardware). I.e. The IC105 needs to know specifically the playback speed written to the ADPCM playback rate register. And other functionality that involves both. If that many address/bus lines are going from the 4bit rams to the IC501, then maybe the it's the chip providing the port+autoincrement of the ram as well (i.e. not flat mapped). It stands to reason. And bus read/write status too (accessing ADPCM memory is slow when playing samples at the same time. You have to poll the status reg, then immediately write when met). I still haven't looked over the M5205 datasheet to see what it doesn't support/provide, and what other chip(s) are supplementing. Thanks for starting this thread. I think some misconceptions (at minimum on my part) will be corrected.

Quote
 However, that seems strange given that the ADPCM clock is sourced by U501 in the first place; U501 should certainly know when it's done something....so it should know when it's time for the next sample without U502 asking for it.

 Have you used a logic analyzer to see if the clock is fixed output (and at what speed) and/or relative to the speed register? That's definitely a bit of interesting new news. I need to probe some of these line with my scope, for my own curiosity.

Quote
Incidentally, U901 (HUC 6280), U902 (HUC 6270), and U903 (HUC 6280) are all custom ASIC's; the 6280 just happens to have an actual CPU core.   It is not strictly correct to call it a CPU.  The real CPU in the DUO is 501, the 91317.

 I haven't seen anything that gives evidence that the D91317 is an MCU, let alone any sort of 'processor' core. ASIC has a pretty general meaning, but it's not in any way tied specifically to a processor or anything else. It's generally just a consolidation of other exiting logic/ICs into a single package. It's not like a GAL or PAL or a CPLD. The HuC6280 is definitely labeled as the CPU core and has the branding 6280 on it. Just because it has an included peripheral (audio) doesn't make anything less. Quite a few arcade boards use the HuC6280 strictly as an audio processor (and refer to the processor by such name), without ever touching/using the onboard audio circuit. The name of the chip has always equated to the processor. It's the other-way 'round. It's the audio unit that has no name. And to the programmer, they have no idea it's even on the same IC package as the CPU, since it's memory mapped port based - no embedded with special CPU only access register. PCFX took the existing audio IC and coupled it with a dual channel ADPCM chip and labeled it 'sound box'; that's the only time it ever got a name (other than loose/generic references to as PSG, PCMPSG, etc).

 Some of chips might be considered an ASIC in the strictest sense, but they were original design packages. The HuC6260, HuC6270, and the HuC6280. The are the original chips of the PCE system with specific names (even official nick names; Tekkonon, 7up, Dr. Pepper). Nothing's changed of them in the consolidation into a single CD setup/system of the Duo. They are the core system chips and their names are respective and existing (and predominantly associative officially and unofficially). The D91317 is specifically an ASIC chip and in the context of the Duo, I don't think any other chip can be confused with that label. If anything, NEC could have saved money by consolidating the stock HuC6260 and HuC6270's. Hell, even the HuC6280. Sega ended up doing that for the late model Genesis systems (late model revisions in the model 2 Genesis/Megadrive systems).

 I realize the IC105 isn't the only possible MCU in the CD system. Using that nick is an old habit from the RE/dev/emulation scene. On a programmer side, it's specifically just that (all the ports mapped and SCSI commands, etc); it's one of only two chips you are aware of (it and the ADPCM chip). Just a carry over on my part from the scene, as thee MCU. Using the designated IC ID number would be better, since you guys are getting confused.

Quote
Thus, the SampleClock input may actually be an interrupt function.  (Just to make matters worse, U105 is an ASIC in design, even though it actually is a microprocessor, and U104 is an actual microcontroller! --AGGHHH!!)
IC104 in part of the CD low level hardware controller. So I never really paid much attention to it (since it's doesn't directly, AFAIK, interface with the CPU (6280)).

Quote
Hmm, if we continue to NOT have a standard naming convention here, our discussion will quickly become more of an effort to determine "which chip is he talking about", rather than actually making progress on the functionality of the system.  Thus, your statement:
>>But I wasn't expecting to see ADPCM ram going to the ASIC<<
confused me.  It doesn't go to the ASIC, it goes to the CPU (in my definitions), even though it's the same U501.  Would it be acceptable to simply use the IC designators on these chips, rather than the chip numbers or their functions?

 I agree. It avoids confusing if you know exactly what IC anyone is referring. But I wouldn't ever go as so far as to ever call the IC501 as thee "Duo" CPU. It's just interface logic, the glue to tie everything together. That label should specifically be the IC901 (not using the original/standard names is still a bit annoying).


Charlie

  • Full Member
  • ***
  • Posts: 247
Re: DUO RAM
« Reply #17 on: June 19, 2011, 05:55:43 AM »
Well, I don't want to tie up this thread with a name/type discussion; the intent is to help with the ram usage.  Just a note that I didn't say "the D91317 is an MCU", I said it is a CPU.  U104 is an MCU.

>>Have you used a logic analyzer ...<<
No, I don't have any specific reason to do so.  I don't need that depth of analysis for the typcial repairs.

I'll update the schematics with data busses in the future.

Charlie
« Last Edit: June 19, 2011, 09:16:54 AM by Charlie »

Charlie

  • Full Member
  • ***
  • Posts: 247
Re: DUO RAM
« Reply #18 on: June 26, 2011, 07:01:53 AM »
Sorry, guys, but the "data flow chart" is going to have to wait.  After I dug deeper into the system, I realized that it will probably take about 4 sheets to show the entire path from the laser into memory in enough detail to be useful; not something I can do in just a few days!  It would help if you could narrow it down a bit!

As an FYI, I went back to the manf's data again, and the tech specs on the DUO (dated 1993):

1. U105 is listed as "U105 uPD6378 ASIC".  It got classified by the tech data as an ASIC ("Application Specific Integrated Circuit") because of it's "application specific" status; it would be more correctly identified as an ASSP ("Application Specific Standard Product") which is how the IC manufacture classified it.  It is, by manufacturers definition, a CR ROM Drive Controller.  It has the following characteristics:
a) Error correction function on chip
b) Error correction repeatable 3 times(real-time)
c) Double-speed replay capability
I also strongly believe it has SCSI capability.

2. U501 is listed as "U501 uPD91317 CPU".  It is a custom ASIC (as classified by the manufacturer) with the following characteristics (as per the data sheet):
a) High integration: 17k gates
b) Accepts MEGA macro and ANALOG macro blocks
c) Accepts RAM up to 64k bits
d) Survives latch-up currents over 1A
e) Power consumption: 15uw/MHz/cell
f) Ram access time 25ns for 256x8


Charlie

Bonknuts

  • Hero Member
  • *****
  • Posts: 3292
Re: DUO RAM
« Reply #19 on: June 26, 2011, 04:22:31 PM »
Not sure if this helps your cause, but here is the info for the original CD base + CDROM unit.

http://www.pcedev.net/PCE_chips/IFU-30/

 The base only holds the giant ASIC (just like the one in the Duo). Again, ADPCM functionality is completely handled by this chip to interface to the systems processor (6280). It doesn't the functionality of the Duo's bus switching logic since it doesn't have direct control/interface of the hucard port. The CD deck also holds the 64k of CDROM (two 32kx8bit 70ns SRAM, instead of the two 128ks of the Duo since it's not SuperCDROM ram) and 2kx8bit 150ns SRAM for BRAM (150ns is just slightly too slow for the CPU to access it in normal mode, thus why the system card puts it in slow 1.79mhz mode to access this). All three ram ICs are on a daughter board, though that doesn't really have any relevance in comparing to the Duo.

CD interface deck:
D91061GD (custom ASIC)
M5205 (ADPCM controller)
M5M5256BFP-70 x2 (64k CDRAM)
LC3517BML-15 x1 (2k BRAM)
M5M4464AP-12 x2 (ADPCM ram. 64kx4bit DRAM x2)
Some misc stock 74x series logic for bus transmission (mostly 245's)
1x CDROM inteface port


CDROM unit itself:
D4364Q-12L (surface mount ram)
D6378GF
D78C14GF
CXD11167Q
CXA1082BQ
CXA1081M

Quote
I also strongly believe it has SCSI capability.


 It's pretty close from what I've been told. I haven't worked with low level scsi packet interfacing before but from what I've read on it (indirectly through researching ATAPI scsi type replication), the command string structure looks like scsi from looking at the system card debugging/tracing and custom interface routines of later games.


Charlie

  • Full Member
  • ***
  • Posts: 247
Re: DUO RAM
« Reply #20 on: June 27, 2011, 02:15:23 AM »
Cool pix!  Thanks!  Never opened the IFU (don't think I have the docs on it, just the DUO), but it make sense that the DUO and the CD/IFU would use very similar circuitry, right down to probably the same chips in most/all cases ('1167, '1082).

Charlie

thesteve

  • Hero Member
  • *****
  • Posts: 2952
Re: DUO RAM
« Reply #21 on: April 22, 2014, 02:51:30 PM »
http://www.pcenginefx.com/forums/index.php?topic=16503.msg342958#msg342958
started a thread on identifying the pinouts/functions of the cd related circuits

Fidde_se

  • Sr. Member
  • ****
  • Posts: 297
Re: DUO RAM
« Reply #22 on: April 22, 2014, 05:59:56 PM »
The IFU-30 (Briefcase) Full Component Guide might help too http://www.pcenginefx.com/forums/index.php?topic=15656.msg319816
GW/GB/GBP/GBL/GBC/GBA/GBASP/GBASP2/GBM/DS/DSL/DSiXL/3DS/PM/VB/FC/NES/SNES/N64/GC/Wii/PS/PSONE/PS2/PS2S/
SMS/SMS2/GG/NOM/MD/MD2/MD3/MD1CD/SS/DC/XB/XB360/NGP/NGPC/NGPC2/WS/WSC/CSW/PCEGT/PCE/PCECG1/PCECG2/
PCECD/TG16TE/NGAGE/GIZ/GP32/GP2XF1/GP2XF2/GP2XWIZ/GP2XCAN/DA320/ST520/ST1040/LNX/LNX2/JAG/PORT/CD32/A500/
C64/CDi/VMU/POCKSTN/PSP/PSPCFW/FDS/VSM