4 Révisions

Auteur SHA1 Message Date
  kevin b90b5f5f49 app/README.md : Updates il y a 3 ans
  kevin 3a2df46212 tiny/README.md : Updates il y a 3 ans
  kevin 5063f6b83f tiny/README.md : Updates il y a 3 ans
  kevin d3ac756bbd tiny/README.md : Updates il y a 3 ans
2 fichiers modifiés avec 157 ajouts et 12 suppressions
  1. 82
    0
      control/app/README.md
  2. 75
    12
      control/tiny/README.md

+ 82
- 0
control/app/README.md Voir le fichier

1
 # Picadea control and monitor shell
1
 # Picadea control and monitor shell
2
+
3
+
4
+Shell commands:
5
+
6
+
7
+
8
+key | Function         | Arguments                                  | Notes
9
+----|------------------|--------------------------------------------|----------------------------------------------------------
10
+q   | quit             |                                            |
11
+?   | print usage      |                                            |
12
+w   | write            | (i2c_addr) (reg_addr) (data0) ... (dataN)  |
13
+r   | read             | (i2c_addr) (src) (reg_addr) (byteN)        | See [Memory Source Id Table](#memory-source-id-table).
14
+v   | note-on          | (pitch) (vel)                              |
15
+u   | note-on          | (pitch) (usec) (div)                       | See [Pulse Timer Divisor Table](#pulse-timer-divisor).
16
+o   | note-off         | (pitch)                                    |
17
+T   | set table        | (pitch) (vel) (usec)                       |
18
+t   | get table        | (pitch) (vel)                              |
19
+D   | set duty         | (pitch) (percent) {(hz) {(div)}}           |
20
+d   | get duty         | (pitch)                                    |
21
+H   | set hold delay   | (pitch) (usec)                             |
22
+h   | get hold delay   | (pitch)                                    |
23
+F   | set pwm freq     | (pitch) (hz)                               | 254=~123Hz
24
+f   | get pwm freq     | (pitch)                                    |
25
+I   | set pwm div      | (pitch) (div)                              | See [PWM Divisor Table](#pwm-divisor).
26
+i   | get pwm div      | (pitch)                                    |
27
+A   | set flags        | (pitch) (flags)                            |
28
+a   | get flags        | (pitch)                                    |
29
+W   | write table      | (pitch)                                    |
30
+N   | note w/ duration | (pitch) (atkUs) (durMs)                    |
31
+S   | seq              | (pitch) (atkUs) (durMs) (deltaUs) (noteN)  |
32
+L   | log              | (level) (0-1)                              |
33
+
34
+
35
+
36
+## PWM Divisor
37
+
38
+Value | Div  | Frequency   | Period
39
+------|------|-------------|-------
40
+ 1    |    1 |    16    M  | 62.5 n 
41
+ 2    |    2 |     8    M  |  125 n
42
+ 3    |    4 |     4    M  |  250 n
43
+ 4    |    8 |     2    M  |  500 n
44
+ 5    |   16 |     1    M  |    1 u
45
+ 6    |   32 |   500    K  |    2 u
46
+ 7    |   64 |   250    K  |    4 u
47
+ 8    |  128 |   125    K  |    8 u
48
+ 9    |  256 | 62500    Hz |   16 u
49
+10    |  512 | 31250    Hz |   32 u
50
+11    | 1024 | 15625    Hz |   64 u
51
+12    | 2048 | 7812.5   Hz |  128 u
52
+13    | 4096 | 3906.25  Hz |  256 u
53
+14    | 8192 | 1953.125 Hz |  512 u
54
+15    |16384 | 976.6625 Hz | 1024 u 
55
+
56
+
57
+## Pulse Timer Divisor
58
+
59
+Value | Divisor | Frequency  | Period
60
+------|---------|------------|--------------
61
+  1   |      1  | 16000000   |     62.5n
62
+  2   |      8  |  2000000   |    500.0n
63
+  3   |     64  |   250000   |      4.0u
64
+  4   |    256  |    62500   |     16.0u
65
+  5   |   1024  |    15625   |     64.0u
66
+  
67
+
68
+## Memory Source Id Table
69
+
70
+Id | Memory         | Note
71
+---|----------------|-------------------------------
72
+ 0 | Register file  | See register table file
73
+ 1 | Velocity table | MIDI velocity to pulse ticks lookup table
74
+ 2 | EEPROM         | EEPROM data memory
75
+
76
+
77
+## Memory Destination Id Table
78
+
79
+Id | Memory         | Note
80
+---|----------------|-------------------------------
81
+ 4 | Register file  | See register table file
82
+ 5 | Velocity table | MIDI velocity to pulse ticks lookup table
83
+ 6 | EEPROM         | EEPROM data memory

+ 75
- 12
control/tiny/README.md Voir le fichier

3
 
3
 
4
 Arguments in curly braces are optional.
4
 Arguments in curly braces are optional.
5
 
5
 
6
+------------------------------------------------------------------------------------------
7
+
8
+__Hold PWM Duty Cycle__
6
 
9
 
7
 Function                 | Opcode | Arguments
10
 Function                 | Opcode | Arguments
8
 -------------------------|--------|---------------------------
11
 -------------------------|--------|---------------------------
16
 
19
 
17
 PWM frequency and period for each possible (div) setting.
20
 PWM frequency and period for each possible (div) setting.
18
 
21
 
19
-Reg.  |      | Base        | 
20
 Value | Div  | Frequency   | Period
22
 Value | Div  | Frequency   | Period
21
 ------|------|-------------|-------
23
 ------|------|-------------|-------
22
  1    |    1 |    16    M  | 62.5 n 
24
  1    |    1 |    16    M  | 62.5 n 
35
 14    | 8192 | 1953.125 Hz |  512 u
37
 14    | 8192 | 1953.125 Hz |  512 u
36
 15    |16384 | 976.6625 Hz | 1024 u 
38
 15    |16384 | 976.6625 Hz | 1024 u 
37
 
39
 
40
+------------------------------------------------------------------------------------------
41
+
42
+__Note-on Velocity__
38
 
43
 
39
 Function                 | Opcode | Arguments
44
 Function                 | Opcode | Arguments
40
 -------------------------|--------|---------------------------
45
 -------------------------|--------|---------------------------
48
 The (vel) value is translated to an attack pulse duration
53
 The (vel) value is translated to an attack pulse duration
49
 by looking up the pulse tick count in the velocity table.
54
 by looking up the pulse tick count in the velocity table.
50
 
55
 
56
+------------------------------------------------------------------------------------------
57
+
58
+__Note-on Microseconds__
51
 
59
 
52
 Function                 | Opcode | Arguments
60
 Function                 | Opcode | Arguments
53
 -------------------------|--------|-------------------------------------------------
61
 -------------------------|--------|-------------------------------------------------
67
     usecs = (pulse-ticks * 1e6)*(256/16e6)
75
     usecs = (pulse-ticks * 1e6)*(256/16e6)
68
 
76
 
69
 
77
 
78
+------------------------------------------------------------------------------------------
79
+
80
+__Note-off__
81
+
70
 Function                 | Opcode | Arguments
82
 Function                 | Opcode | Arguments
71
 -------------------------|--------|---------------------------
83
 -------------------------|--------|---------------------------
72
 Note off                 |   3    | None
84
 Note off                 |   3    | None
74
 Turn off a sounding note by settting the hold-voltage to 0.
86
 Turn off a sounding note by settting the hold-voltage to 0.
75
 
87
 
76
 
88
 
89
+------------------------------------------------------------------------------------------
90
+
91
+__Set Read Address__
92
+
77
 Function                 | Opcode | Arguments
93
 Function                 | Opcode | Arguments
78
 -------------------------|--------|---------------------------
94
 -------------------------|--------|---------------------------
79
 Set read address         |    4   | (src) {(addr)}
95
 Set read address         |    4   | (src) {(addr)}
82
 
98
 
83
 The read can come from one of three memory banks:
99
 The read can come from one of three memory banks:
84
 Register File, MIDI velocity table or EEPROM.
100
 Register File, MIDI velocity table or EEPROM.
85
-See the _Memory Location Id_ table below for the (src) id values.
86
-
101
+See the _Memory Source Id Table_ below for the (src) id values.
87
 
102
 
88
 Arguments   | Range | Default | Note
103
 Arguments   | Range | Default | Note
89
 ------------|-------|---------|-------------------------------------------------------
104
 ------------|-------|---------|-------------------------------------------------------
90
-(src)       | 0-2   |  n/a    | Memory location id. See _Memory Location Id_ table.
105
+(src)       | 0-2   |  n/a    | Memory location id. See _Memory Source Id Table_.
91
 (addr)      | 0-255 |  n/a    | Offset from base address set by (src)
106
 (addr)      | 0-255 |  n/a    | Offset from base address set by (src)
92
 
107
 
108
+Memory Source Id Table
109
+
110
+Id | Memory         | Note
111
+---|----------------|-------------------------------
112
+ 0 | Register file  | See register table file
113
+ 1 | Velocity table | MIDI velocity to pulse ticks lookup table
114
+ 2 | EEPROM         | EEPROM data memory
115
+
116
+
117
+------------------------------------------------------------------------------------------
118
+
119
+__Write Memory__
120
+
121
+Function                 | Opcode | Arguments
122
+-------------------------|--------|--------------------------------------------
123
+Write memory             |    5   | (addrFl + dest) {(addr)} (value0) ... (valueN)
124
+
125
+
126
+Arguments   | Range | Default | Note
127
+------------|-------|---------|----------------------------------------------------------------
128
+(addrFl)    | 0,127 |    0    | Address flag. Set if second byte is an (addr) and not (value0)
129
+(dest)      | 0-2   |  n/a    | Memory destination location. See _Memory Destination Id Table_.
130
+(addr)      | 0-255 |  n/a    | Optional offset from base address set by (dest)
131
+
132
+Memory Destination Id Table
133
+
134
+Id | Memory         | Note
135
+---|----------------|-------------------------------
136
+ 4 | Register file  | See register table file
137
+ 5 | Velocity table | MIDI velocity to pulse ticks lookup table
138
+ 6 | EEPROM         | EEPROM data memory
139
+
140
+------------------------------------------------------------------------------------------
141
+
142
+__Write Velocity Table to EEPROM__
93
 
143
 
94
 Function                 | Opcode | Arguments
144
 Function                 | Opcode | Arguments
95
 -------------------------|--------|---------------------------
145
 -------------------------|--------|---------------------------
96
-Write memory             |    5   |
146
+Write velocity table     |    6   | 
97
 
147
 
148
+Writes the MIDI velocity table from memory to EEPROM.
98
 
149
 
99
 
150
 
151
+------------------------------------------------------------------------------------------
152
+
153
+__Set Hold Delay__
154
+
100
 Function                 | Opcode | Arguments
155
 Function                 | Opcode | Arguments
101
 -------------------------|--------|---------------------------
156
 -------------------------|--------|---------------------------
102
-Set hold delay           |    6   | { high {low}}
157
+Set hold delay           |    7   | { high {low}}
103
 
158
 
104
 Set the length of the delay, in ticks, between when the attack pulse ends and when the
159
 Set the length of the delay, in ticks, between when the attack pulse ends and when the
105
 hold voltage is applied.
160
 hold voltage is applied.
106
 The high and low byte values are calculated identically to the
161
 The high and low byte values are calculated identically to the
107
 attack pulse duration values.
162
 attack pulse duration values.
108
 
163
 
164
+------------------------------------------------------------------------------------------
165
+
166
+__Set *flags* variable__
109
 
167
 
110
 Function                 | Opcode | Arguments
168
 Function                 | Opcode | Arguments
111
 -------------------------|--------|---------------------------
169
 -------------------------|--------|---------------------------
112
-Set flags variable       |    7   | (flags)
170
+Set flags variable       |    8   | (flags)
113
 
171
 
114
   7  |  6  |  5  |  4  |  3  |  2  |  1  |  0  
172
   7  |  6  |  5  |  4  |  3  |  2  |  1  |  0  
115
 -----|-----|-----|-----|-----|-----|-----|-----
173
 -----|-----|-----|-----|-----|-----|-----|-----
117
 
175
 
118
 _HOA_ : Set to apply the hold voltage at the beginning of the attack.
176
 _HOA_ : Set to apply the hold voltage at the beginning of the attack.
119
 
177
 
178
+------------------------------------------------------------------------------------------
179
+
180
+## Register File Address
120
 
181
 
121
-Register file
122
 
182
 
123
 Address | Label           | Note
183
 Address | Label           | Note
124
 --------|-----------------|------------------------------------------------------------------------------------------------
184
 --------|-----------------|------------------------------------------------------------------------------------------------
144
 19      | Flags_Addr      | Binary variable field.
204
 19      | Flags_Addr      | Binary variable field.
145
 
205
 
146
 
206
 
147
-Memory Location Id table.
207
+------------------------------------------------------------------------------------------
208
+
209
+
210
+## Memory Destination Id table
148
 
211
 
149
 Id | Memory         | Note
212
 Id | Memory         | Note
150
 ---|----------------|-------------------------------
213
 ---|----------------|-------------------------------
151
- 0 | Register file  | See register table file
152
- 1 | Velocity table | MIDI velocity to pulse ticks lookup table
153
- 2 | EEPROM         | EEPROM data memory
214
+ 4 | Register file  | See register table file
215
+ 5 | Velocity table | MIDI velocity to pulse ticks lookup table
216
+ 6 | EEPROM         | EEPROM data memory
154
 
217
 
155
 
218
 
156
 
219
 

Chargement…
Annuler
Enregistrer