Main Page and SpinAsm SOF: Difference between pages

From PedalPCB Wiki
(Difference between pages)
Jump to navigation Jump to search
Tag: Reverted
 
No edit summary
 
Line 1: Line 1:
This is the testing area for the '''PedalPCB Wiki'''.  The information listed here is for experimental purposes only.
== SOF ==
{| class="wikitable"
|+
!Mnemonic
!Operation
!Instruction coding
|-
|SOF
|C * ACC + D
|CCCCCCCCCCCCCCCCDDDDDDDDDDD01101
|}


== Component References ==
====== Description ======
* [[Potentiometers]]
SOF will multiply the current value in ACC with C and will then add the constant D to the result. Please note the absence of an integer entry format for D. This is not by mistake but it should emphasize that D is not intended to become used for integer arithmetic. The reason for this instruction is that the 11 bit constant D would be placed into ACC left justified or in other words 13 bits shifted to the left. D is intended to offset ACC by a constant in the range from –1 to +0.9990234375.
* [[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 ==
====== Parameters ======
* [[Standard True-Bypass Wiring]]
{| class="wikitable"
* [[2-in-1 Pedal Wiring]]
|+
* [[2-in-1 Pedal Wiring (Single Footswitch)]]
!Name
* [[2-in-1 Pedal Wiring (AB)]]
!Width
* [[3PDT Order Switch Wiring]]
!Entry formats, range
* [[Expression Control Wiring]]
|-
* [[DPDT ON/ON/ON as 3-way Switch]]
|C
|16 Bit
|Real (S1.14)
Hex ($0000 ­ $FFFF)  
Symbolic
|-
|D
|11 Bit
|Real(S.10)
Symbolic
|}


== To Do ==
====== Syntax ======
* Basic Electronics Theory
SOF C,D
* Resistors
* Capacitors
* Diodes
* Transistors
* Integrated Circuits
* Enclosures
* Switches
* [[PCB list by SKU]]
* [[JFET chart]]


== SpinAsm Reference ==
====== Coding Example ======
* [[SpinAsm SOF]]
<syntaxhighlight line="1">
* [[SpinAsm AND]]
Off  EQU  1.0                  ;
* [[SpinAsm OR]]
                                ;
; Halve way rectifier ­­­­­­­­
sof  0,0                        ; Clear ACC
rdax ADCL,1.0                  ; Read from left ADC channel
sof  1.0,Off                    ; Subtract offset
sof  1.0,Off                    ; Add offset
</syntaxhighlight>

Latest revision as of 20:54, 6 January 2023

SOF

Mnemonic Operation Instruction coding
SOF C * ACC + D CCCCCCCCCCCCCCCCDDDDDDDDDDD01101
Description

SOF will multiply the current value in ACC with C and will then add the constant D to the result. Please note the absence of an integer entry format for D. This is not by mistake but it should emphasize that D is not intended to become used for integer arithmetic. The reason for this instruction is that the 11 bit constant D would be placed into ACC left justified or in other words 13 bits shifted to the left. D is intended to offset ACC by a constant in the range from –1 to +0.9990234375.

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

Hex ($0000 ­ $FFFF) Symbolic

D 11 Bit Real(S.10)

Symbolic

Syntax

SOF C,D

Coding Example
Off  EQU  1.0                   ; 
                                ; 
; Halve way rectifier ­­­­­­­­
sof  0,0                        ; Clear ACC 
rdax ADCL,1.0                   ; Read from left ADC channel
sof  1.0,Off                    ; Subtract offset 
sof  1.0,Off                    ; Add offset