tiny/README.md : Updates

This commit is contained in:
kevin 2020-11-24 09:49:19 -05:00
parent f0c7b2136d
commit d3ac756bbd

View File

@ -3,6 +3,9 @@
Arguments in curly braces are optional. Arguments in curly braces are optional.
------------------------------------------------------------------------------------------
Hold PWM Duty Cycle
Function | Opcode | Arguments Function | Opcode | Arguments
-------------------------|--------|--------------------------- -------------------------|--------|---------------------------
@ -16,7 +19,6 @@ Arguments | Range | Default | Note
PWM frequency and period for each possible (div) setting. PWM frequency and period for each possible (div) setting.
Reg. | | Base |
Value | Div | Frequency | Period Value | Div | Frequency | Period
------|------|-------------|------- ------|------|-------------|-------
1 | 1 | 16 M | 62.5 n 1 | 1 | 16 M | 62.5 n
@ -35,6 +37,9 @@ Value | Div | Frequency | Period
14 | 8192 | 1953.125 Hz | 512 u 14 | 8192 | 1953.125 Hz | 512 u
15 |16384 | 976.6625 Hz | 1024 u 15 |16384 | 976.6625 Hz | 1024 u
------------------------------------------------------------------------------------------
Note-on Velocity
Function | Opcode | Arguments Function | Opcode | Arguments
-------------------------|--------|--------------------------- -------------------------|--------|---------------------------
@ -48,6 +53,9 @@ Execute a note onset.
The (vel) value is translated to an attack pulse duration The (vel) value is translated to an attack pulse duration
by looking up the pulse tick count in the velocity table. by looking up the pulse tick count in the velocity table.
------------------------------------------------------------------------------------------
Note-on Microseconds
Function | Opcode | Arguments Function | Opcode | Arguments
-------------------------|--------|------------------------------------------------- -------------------------|--------|-------------------------------------------------
@ -67,6 +75,10 @@ ticks to micoseconds:
usecs = (pulse-ticks * 1e6)*(256/16e6) usecs = (pulse-ticks * 1e6)*(256/16e6)
------------------------------------------------------------------------------------------
Note-off
Function | Opcode | Arguments Function | Opcode | Arguments
-------------------------|--------|--------------------------- -------------------------|--------|---------------------------
Note off | 3 | None Note off | 3 | None
@ -74,6 +86,10 @@ Note off | 3 | None
Turn off a sounding note by settting the hold-voltage to 0. Turn off a sounding note by settting the hold-voltage to 0.
------------------------------------------------------------------------------------------
Set Read Address
Function | Opcode | Arguments Function | Opcode | Arguments
-------------------------|--------|--------------------------- -------------------------|--------|---------------------------
Set read address | 4 | (src) {(addr)} Set read address | 4 | (src) {(addr)}
@ -84,18 +100,24 @@ The read can come from one of three memory banks:
Register File, MIDI velocity table or EEPROM. Register File, MIDI velocity table or EEPROM.
See the _Memory Location Id_ table below for the (src) id values. See the _Memory Location Id_ table below for the (src) id values.
Arguments | Range | Default | Note Arguments | Range | Default | Note
------------|-------|---------|------------------------------------------------------- ------------|-------|---------|-------------------------------------------------------
(src) | 0-2 | n/a | Memory location id. See _Memory Location Id_ table. (src) | 0-2 | n/a | Memory location id. See _Memory Location Id_ table.
(addr) | 0-255 | n/a | Offset from base address set by (src) (addr) | 0-255 | n/a | Offset from base address set by (src)
------------------------------------------------------------------------------------------
Write Memory
Function | Opcode | Arguments Function | Opcode | Arguments
-------------------------|--------|--------------------------- -------------------------|--------|---------------------------
Write memory | 5 | Write memory | 5 |
------------------------------------------------------------------------------------------
Set Hold Delay
Function | Opcode | Arguments Function | Opcode | Arguments
-------------------------|--------|--------------------------- -------------------------|--------|---------------------------
@ -106,6 +128,9 @@ hold voltage is applied.
The high and low byte values are calculated identically to the The high and low byte values are calculated identically to the
attack pulse duration values. attack pulse duration values.
------------------------------------------------------------------------------------------
Set *flags* variable
Function | Opcode | Arguments Function | Opcode | Arguments
-------------------------|--------|--------------------------- -------------------------|--------|---------------------------
@ -117,8 +142,10 @@ Set flags variable | 7 | (flags)
_HOA_ : Set to apply the hold voltage at the beginning of the attack. _HOA_ : Set to apply the hold voltage at the beginning of the attack.
------------------------------------------------------------------------------------------
Register File Address
Register file
Address | Label | Note Address | Label | Note
--------|-----------------|------------------------------------------------------------------------------------------------ --------|-----------------|------------------------------------------------------------------------------------------------
@ -144,6 +171,8 @@ Address | Label | Note
19 | Flags_Addr | Binary variable field. 19 | Flags_Addr | Binary variable field.
------------------------------------------------------------------------------------------
Memory Location Id table. Memory Location Id table.
Id | Memory | Note Id | Memory | Note