Main Page and SpinAsm EXP: Difference between pages

From PedalPCB Wiki
(Difference between pages)
Jump to navigation Jump to search
Tag: Reverted
 
(Created page with "==EXP== {| class="wikitable" |+ !Mnemonic !Operation !Instruction coding |- |EXP |C * EXP(ACC) + D |CCCCCCCCCCCCCCCCDDDDDDDDDDD01100 |} ======Description====== EXP will multiply 2^ACC with C and add the constant D to the result. Since ACC (in it’s role as the destination for the EXP instruction) is limited to linear values from 0 to +0.99999988, the EXP instruction is limited to logarithmic ACC values (in it’s role as the source operand for the EXP instruction) ...")
 
Line 1: Line 1:
This is the testing area for the '''PedalPCB Wiki'''.  The information listed here is for experimental purposes only.
==EXP==
{| class="wikitable"
|+
!Mnemonic
!Operation
!Instruction coding
|-
|EXP
|C * EXP(ACC) + D
|CCCCCCCCCCCCCCCCDDDDDDDDDDD01100
|}


== Component References ==
======Description======
* [[Potentiometers]]
EXP will multiply 2^ACC with C and add the constant D to the result. 
* [[LEDs]]
* [[Jacks]]
* [[Switches]]
** [[Momentary vs Latching]]
** [[Normally Open vs Normally Closed]]
** [[Make before Break vs Break before Make]]
** [[ON/ON]]
** [[ON/OFF/ON]]
** [[ON/ON/ON]]
** [[SPST]]
** [[SPDT]]
** [[DPDT]]
** [[3PDT]]
** [[4PDT]]
** [[Rotary Switches]]
* [[SMD Component Lookup]]
* [[EIA-96 SMD Resistor Codes]]
* [[Op Amp Slew Rates]]
* [[Resistor Color Code Chart]]


== Wiring Diagrams ==
Since ACC (in it’s role as the destination for the EXP instruction) is limited to linear values from 0 to +0.99999988, the EXP instruction is limited to logarithmic ACC values (in it’s role as the source operand for the EXP instruction)  from –16 to 0. Like the LOG instruction, EXP will treat the ACC content as a S4.19 number. Positive logarithmic ACC values will be clipped to +0.99999988 which is the most positive linear value that can be represented within the accumulator.
* [[Standard True-Bypass Wiring]]
* [[2-in-1 Pedal Wiring]]
* [[2-in-1 Pedal Wiring (Single Footswitch)]]
* [[2-in-1 Pedal Wiring (AB)]]
* [[3PDT Order Switch Wiring]]
* [[Expression Control Wiring]]
* [[DPDT ON/ON/ON as 3-way Switch]]


== To Do ==
D is intended to allow the linear ACC to be offset by a constant in the range from –1 to +0.9990234375
* Basic Electronics Theory
{| class="wikitable"
* Resistors
|+
* Capacitors
!Name
* Diodes
!Width
* Transistors
!Entry formats, range
* Integrated Circuits
|-
* Enclosures
|C
* Switches
|16 Bit
* [[PCB list by SKU]]
|Real (S1.14)
* [[JFET chart]]
Hex ($0000 ­ $FFFF)


== SpinAsm Reference ==
Symbolic
* [[SpinAsm SOF]]
|-
* [[SpinAsm AND]]
|D
* [[SpinAsm OR]]
|11 Bit
* [[SpinAsm XOR]]
|Real(S.10)
* [[SpinAsm LOG]]
Symbolic
|}
 
======Syntax======
EXP C, D
 
======Coding Example======
<syntaxhighlight line="1">
exp 0.8,0
</syntaxhighlight>

Revision as of 20:46, 6 January 2023

EXP

Mnemonic Operation Instruction coding
EXP C * EXP(ACC) + D CCCCCCCCCCCCCCCCDDDDDDDDDDD01100
Description

EXP will multiply 2^ACC with C and add the constant D to the result.

Since ACC (in it’s role as the destination for the EXP instruction) is limited to linear values from 0 to +0.99999988, the EXP instruction is limited to logarithmic ACC values (in it’s role as the source operand for the EXP instruction)  from –16 to 0. Like the LOG instruction, EXP will treat the ACC content as a S4.19 number. Positive logarithmic ACC values will be clipped to +0.99999988 which is the most positive linear value that can be represented within the accumulator.

D is intended to allow the linear ACC to be offset by a constant in the range from –1 to +0.9990234375

Name Width Entry formats, range
C 16 Bit Real (S1.14)

Hex ($0000 ­ $FFFF)

Symbolic

D 11 Bit Real(S.10)

Symbolic

Syntax

EXP C, D

Coding Example
exp 0.8,0