SpinAsm LOG and Main Page: Difference between pages

From PedalPCB Wiki
(Difference between pages)
Jump to navigation Jump to search
(Created page with "==LOG== {| class="wikitable" |+ !Mnemonic !Operation !Instruction coding |- |LOG |<nowiki>C * LOG(|ACC|) + D</nowiki> |CCCCCCCCCCCCCCCCDDDDDDDDDDD01011 |} ======Description====== LOG will multiply the Base2 LOG of the current absolute value in ACC with C and add the constant D to the result. It is important to note that the LOG function returns a fixed point number in S4.19 format instead of the standard S.23 format, which in turn means that the most negative Base2 LO...")
 
Tag: Reverted
 
Line 1: Line 1:
==LOG==
This is the testing area for the '''PedalPCB Wiki'''.  The information listed here is for experimental purposes only.
{| class="wikitable"
|+
!Mnemonic
!Operation
!Instruction coding
|-
|LOG
|<nowiki>C * LOG(|ACC|) + D</nowiki>
|CCCCCCCCCCCCCCCCDDDDDDDDDDD01011
|}


======Description======
== Component References ==
LOG will multiply the Base2 LOG of the current absolute value in ACC with C and add the constant D to the result.
* [[Potentiometers]]
* [[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]]


It is important to note that the LOG function returns a fixed point number in S4.19 format instead of the standard S.23 format, which in turn means that the most negative Base2 LOG value is –16.
== Wiring Diagrams ==
* [[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]]


The LOG instruction can handle absolute linear accumulator values from 0.99999988 to 0.00001526 which translates to a dynamic range of apx. 96dB.
== To Do ==
* Basic Electronics Theory
* Resistors
* Capacitors
* Diodes
* Transistors
* Integrated Circuits
* Enclosures
* Switches
* [[PCB list by SKU]]
* [[JFET chart]]


D an offset to be added to the logarithmic value in the range of –16 to + 15.999998.
== SpinAsm Reference ==
{| class="wikitable"
* [[SpinAsm SOF]]
|+
* [[SpinAsm AND]]
!Name
* [[SpinAsm OR]]
!Width
* [[SpinAsm XOR]]
!Entry formats, range
* [[SpinAsm LOG]]
|-
|C
|16 Bit
|Real (S1.14)
Hex ($0000 ­ $FFFF)
Symbolic
|-
|D
|11 Bit
|Real(S4.6)
Symbolic
|}
 
======Syntax======
LOG C, D
 
======Coding Example======
<syntaxhighlight line="1">
log  1.0,0
</syntaxhighlight>

Revision as of 20:44, 6 January 2023