# The player bus (PBUS): the controller daisy chain Sources: '636 = WO1994010636A1 "Player bus apparatus and method" (3DO Co., 1992); '641 IV.C, VI.E and table I; SDK `pgsfldr/spg/12spg005`, `12spg006` (event broker, pods); wiki opera_pbus (tier 3; device layouts from Portfolio's `event.h` and its sources). ## The bus (DOC) - A 9-signal connector: left and right audio with grounds (the pad carries the headphone output), serial data in, serial data out, clock PBCK, Vcc, ground. Devices daisy-chain: the clock passes through, data is regenerated in each device; latch on the rising edge, shift on the falling edge. - PBCK comes from video timing, two bit times per line. Each field: lines 1-16 are a sync "long clock" (8 lines one level, 8 the other: '636 and '641 disagree which, C19); devices load their parallel data at the line 8/9 transition; DMA starts on line 17; 448 data bits per field (14 words); LSB first. - One 32-bit shift register in MADAM serves both directions. One DMA group of 3 registers (input address, output address, length), 1-word bursts, no looping, an interrupt at the end: on line 17 store the register to the input buffer (the first word is stale), load the next output word, shift 32 bits, repeat. Software re-arms it each field (wiki: MADAM 0x570 input address, 0x574 length, 0x578 output address; MAME's run writes these 239 times in 600 frames). - Initialisation: send zeros and read until 8 or more consecutive zero bits; all-zero output must be harmless to every device. A run of zeros ends the input. ## Devices (wiki, tier 3) The patent's 4-bit ID scheme is design-era (C20); shipped IDs: control pad (first bit set, 16 bits: ID, 0, 0, down, up, right, left, A, B, C, P, X, right shift, left shift, 0, 0), analog stick 0x01 (then 0x7B, length 0x08, three 8-bit axes and buttons), keyboard 0x02/0x4B, IR receiver 0x03, glasses 0x41, mouse 0x49 (4 buttons, 10-bit signed dx, dy), light gun 0x4D (buttons, a 20-bit counter from vertical blank to the hit, a 5-bit line-pulse count), splitter 0x56, Orbatak's coin/start box 0xC0. Devices may carry a downloadable driver ("cportNN.rom"). The OS polls once per field (SDK 12spg005). Output-bit formats per device and the splitter protocol are U40.