Page 1 of 1

PACC clarification

Posted: Fri Jul 08, 2016 4:47 am
by MacroMachines
Ive been reading all the documentation in depth and I don't fully understand the PACC, it says on several of the instructions they copy the ACC to the PACC first, but on the block diagram in the user manual it says that PACC is the previous sample. Is this one or the other or both? like if those opcodes copy the value to the PACC, and something else accesses it, would it be the value just output from the prior opcode during this cycle?

am I crazy or don't you need the previous cycle sample rather than one which was stored this cycle by an opcode just before it to make reliable filter coefficients based on the sample rate? are there other implied uses for PACC?

I kindof get how this type of thing works with the LR register for chaining all pass delays, id love more info on that if there is any.

Posted: Fri Jul 08, 2016 4:37 pm
by frank
PACC is simply ACC from the last instruction, useful for things like a low-pass or high-pass shelf, see the WRLX and WRHX instructions.

Posted: Mon Nov 21, 2016 2:41 pm
by MacroMachines
so to get a zero cross detection does that mean I would read the adc in two subsequent instructions and skp zrc?

Posted: Wed Nov 23, 2016 10:47 am
by frank
Yes, something like that should work

Re: PACC clarification

Posted: Sat Apr 11, 2020 3:00 am
by mweavers
Does the SKP instruction affect PACC? Or is it only ACC-changing functions that affect PACC?

Re: PACC clarification

Posted: Sat Apr 11, 2020 11:25 am
by frank
SKPs should not have any affect on PACC, only instructions that change ACC (and are not being skipped) should change PACC.