Famicom Controller Port Pinout (viewed from front of FC PCB):
Port I Port II
_____ ______
|12345| |123456|
¯¯ ¯¯ ¯¯ ¯¯
P I 1: +5V, 2: <CLK ($4016), 3: <Output D0 (strobe), 4: >Input 0 D0, 5: GND
P II 1: +5V, 2: <CLK ($4017), 3: <Output D0 (strobe), 4: >Input 1 D0, 5: GND,
6: Input 0 D2 (Mic)
>: input <: output <>: bidirectional
Here are the Famicom's internal controller ports.
NES Controller Port Pinout (viewed from front of NES console):
Port I Port II
_ _
GND -- |1\ GND -- |1\
CLK ($4016) <- |27\ -- +5V CLK ($4017) <- |27\ -- +5V
Output D0 <- |36| <- Input 0 D3 Output D0 <- |36| <- Input 1 D3
Input 0 D0 -> |45| <- Input 0 D4 Input 1 D0 -> |45| <- Input 1 D4
¯¯ ¯¯
Output D0 is the strobe on controllers.
HVC-101 has the same ports as NES but is missing D3 and D4.
Here is the NES controller port pinout. Ignore D3 and D4 as they are not found in the Famicom's controller port.
Controller Port Pinout (viewed from front of SFC console):
Port I Port II
765 4321 1234 567
(OOO|OOOO] [OOOO|OOO)
P I 1: +5V 2: <CLK ($4016) 3: <Output D0 (strobe) 4: >Input 0 D0
5: >Input 0 D1 6: <>PP 7: GND
P II 1: +5V 2: <CLK ($4017) 3: <Output D0 (strobe) 4: >Input 1 D0
5: >Input 1 D1 6: <>PP & light-gun latch 7: GND
>: input <: output <>: bidirectional
And the SFC controller port pinout. Ignore D1 of both input ports and PP (and light-gun latch) as none of them exist in the Famicom's internal controller port.
Just match +5 V, GND, CLK, Output D0 and Input D0 for each controller, then you just need a connector for the mic.