FreeCalypso > hg > freecalypso-schem2
view venus/src/periph/audio_hso.v @ 96:ae6951a70d2b
U403: change from 74LVC2G125 to 74LVC2G126
The two parts have the same footprint and pinout, but '126 3-state buffers
have active-high OE inputs instead of active-low. The change is purely
for software benefit: having GPIO 11/12 set to 1 correspond to that current
contribution being enabled will be much more intuitive for developers and
tinkerers.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 09 May 2022 19:27:11 +0000 |
parents | 229f0b2dd1bf |
children |
line wrap: on
line source
/* * This Verilog module encapsulates our secondary headset audio channel, * connected to Iota headset interface. */ module audio_hso (GND, Vio, HSMICBIAS, HSMICP, HSO, Detect); input GND, Vio; input HSO, HSMICBIAS; output HSMICP, Detect; /* internal wires */ wire EAR_jack, MIC_jack; /* instantiate the jack */ trrs_jack jack (.T(GND), .R(MIC_jack), .R2(EAR_jack), .S(GND), .T_sw(Detect), .R_sw() /* not used */ ); /* output path */ capacitor HSO_cap (HSO, EAR_jack); /* microphone input circuit */ capacitor C37 (HSMICBIAS, GND); resistor R19 (HSMICBIAS, MIC_jack); capacitor C38 (MIC_jack, GND); capacitor C23 (MIC_jack, HSMICP); capacitor C22 (HSMICP, GND); /* Detect pull-up resistor */ resistor Detect_pullup (Detect, Vio); endmodule