[[Category:APU]] The following memory-mapped registers are used by the [[APU|NES APU]]. They are write-only except $4015 which is read/write. Unused registers aren't listed. ''For Famicom expansion audio registers, see also: [[:Category:Expansion audio|Expansion audio]]'' {| class="tabular" ! Address || 7654.3210 || Function |- |colspan=2| || '''[[APU Pulse|Pulse 1 channel]]''' (write) |- | '''$4000''' || DDLC NNNN || [[APU Pulse|Duty]], [[APU Envelope|loop envelope]]/[[APU Length Counter|disable length counter]], [[APU Envelope|constant volume]], [[APU Envelope|envelope period/volume]] |- | '''$4001''' || EPPP NSSS || [[APU Sweep|Sweep unit]]: enabled, period, negative, shift count |- | '''$4002''' || LLLL LLLL || [[APU Pulse|Timer low]] |- | '''$4003''' || LLLL LHHH || [[APU Length Counter|Length counter load]], [[APU Pulse|timer high]] (also resets [[APU Pulse|duty]] and starts [[APU Envelope|envelope]]) |- |colspan=3|   |- |colspan=2| || '''[[APU Pulse|Pulse 2 channel]]''' (write) |- | '''$4004''' || DDLC NNNN || [[APU Pulse|Duty]], [[APU Envelope|loop envelope]]/[[APU Length Counter|disable length counter]], [[APU Envelope|constant volume]], [[APU Envelope|envelope period/volume]] |- | '''$4005''' || EPPP NSSS || [[APU Sweep|Sweep unit]]: enabled, period, negative, shift count |- | '''$4006''' || LLLL LLLL || [[APU Pulse|Timer low]] |- | '''$4007''' || LLLL LHHH || [[APU Length Counter|Length counter load]], [[APU Pulse|timer high]] (also resets [[APU Pulse|duty]] and starts [[APU Envelope|envelope]]) |- |colspan=3|   |- |colspan=2| || '''[[APU Triangle|Triangle channel]]''' (write) |- | '''$4008''' || CRRR RRRR || [[APU Length Counter|Length counter disable]]/[[APU Triangle|linear counter control]], [[APU Triangle|linear counter reload value]] |- | '''$400A''' || LLLL LLLL || [[APU Triangle|Timer low]] |- | '''$400B''' || LLLL LHHH || [[APU Length Counter|Length counter load]], [[APU Triangle|timer high]] (also reloads [[APU Triangle|linear counter]]) |- |colspan=3|   |- |colspan=2| || '''[[APU Noise|Noise channel]]''' (write) |- | '''$400C''' || --LC NNNN || [[APU Envelope|Loop envelope]]/[[APU Length Counter|disable length counter]], [[APU Envelope|constant volume]], [[APU Envelope|envelope period/volume]] |- | '''$400E''' || L--- PPPP || [[APU Noise|Loop noise]], [[APU Noise|noise period]] |- | '''$400F''' || LLLL L--- || [[APU Length Counter|Length counter load]] (also starts [[APU Envelope|envelope]]) |- |colspan=3|   |- |colspan=2| || '''[[APU DMC|DMC channel]]''' (write) |- | '''$4010''' || IL-- FFFF || IRQ enable, loop sample, frequency index |- | '''$4011''' || -DDD DDDD || Direct load |- | '''$4012''' || AAAA AAAA || Sample address %11AAAAAA.AA000000 |- | '''$4013''' || LLLL LLLL || Sample length %0000LLLL.LLLL0001 |- |colspan=3|   |- | '''$4015''' || ---D NT21 || '''[[APU Status|Control]]''' (write): [[APU DMC|DMC enable]], [[APU Length Counter|length counter enables]]: [[APU Noise|noise]], [[APU Triangle|triangle]], [[APU Pulse|pulse 2]], [[APU Pulse|pulse 1]] |- | '''$4015''' || IF-D NT21 || '''[[APU Status|Status]]''' (read): [[APU DMC|DMC interrupt]], [[APU Frame Counter|frame interrupt]], [[APU Length Counter|length counter status]]: [[APU Noise|noise]], [[APU Triangle|triangle]], [[APU Pulse|pulse 2]], [[APU Pulse|pulse 1]] |- | '''$4017''' || SD-- ---- || '''[[APU Frame Counter|Frame counter]]''' (write): 5-frame sequence, disable frame interrupt |} {{APU nav}}