Skip to content

Commit 5fac0d9

Browse files
author
rze
committed
test 1
1 parent 73db4a9 commit 5fac0d9

File tree

1 file changed

+198
-64
lines changed

1 file changed

+198
-64
lines changed

v10_prototype_version_2/20220109/config.py

Lines changed: 198 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -136,67 +136,201 @@
136136

137137
clk_div_list = array("I", [0 for _ in range(64)])
138138

139-
clk_div_list[0] = -0b1010110011101010011100100000000
140-
clk_div_list[1] = -0b1010110011101010011100100000000
141-
clk_div_list[2] = -0b1010110011101010011100100000000
142-
clk_div_list[3] = 0b1100101101111110001011100000000
143-
clk_div_list[4] = 0b1010100110001010110001100000000
144-
clk_div_list[5] = 0b1010100110001010110001100000000
145-
clk_div_list[6] = 0b111111100101100010100100000000
146-
clk_div_list[7] = 0b111000100000111001011100000000
147-
clk_div_list[8] = 0b110011100101111111001000000000
148-
clk_div_list[9] = 0b110010110111100011000000000000
149-
clk_div_list[10] = 0b101110001111100011111000000000
150-
clk_div_list[11] = 0b101010011000101011000100000000
151-
clk_div_list[12] = 0b100011010100100011111000000000
152-
clk_div_list[13] = 0b11110010001100111111000000000
153-
clk_div_list[14] = 0b11010011111011010111100000000
154-
clk_div_list[15] = 0b10111111010111101100100000000
155-
clk_div_list[16] = 0b10111100011000010100100000000
156-
clk_div_list[17] = 0b10101001100010101100000000000
157-
clk_div_list[18] = 0b10011010001000010001000000000
158-
clk_div_list[19] = 0b10001101010010001111100000000
159-
clk_div_list[20] = 0b10000010011010101100000000000
160-
clk_div_list[21] = 0b1111001000110011111100000000
161-
clk_div_list[22] = 0b1110010000110010000000000000
162-
clk_div_list[23] = 0b1110001000001110010100000000
163-
clk_div_list[24] = 0b1101001111101101011100000000
164-
clk_div_list[25] = 0b1100011101110110000100000000
165-
clk_div_list[26] = 0b1011110001100001010000000000
166-
clk_div_list[27] = 0b1011001001110111001000000000
167-
clk_div_list[28] = 0b1010100110001010110000000000
168-
clk_div_list[29] = 0b1010001010001110101000000000
169-
clk_div_list[30] = 0b1010000101110111111100000000
170-
clk_div_list[31] = 0b1001101000100001000100000000
171-
clk_div_list[32] = 0b1001001101101101100000000000
172-
clk_div_list[33] = 0b1000110101001000010100000000
173-
clk_div_list[34] = 0b1000011110100001100100000000
174-
clk_div_list[35] = 0b1000001001101010001100000000
175-
clk_div_list[36] = 0b111111000111110000000000000
176-
clk_div_list[37] = 0b111110110010101101100000000
177-
clk_div_list[38] = 0b111100100011001100000000000
178-
clk_div_list[39] = 0b111010011101100100000000000
179-
clk_div_list[40] = 0b111000100000110110000000000
180-
clk_div_list[41] = 0b110110101100001011000000000
181-
clk_div_list[42] = 0b110100111110110010100000000
182-
clk_div_list[43] = 0b110011100110000111100000000
183-
clk_div_list[44] = 0b110011011000000010100000000
184-
clk_div_list[45] = 0b110001110111010101100000000
185-
clk_div_list[46] = 0b110000011100001010000000000
186-
clk_div_list[47] = 0b101111000110000010100000000
187-
clk_div_list[48] = 0b101101110100100101000000000
188-
clk_div_list[49] = 0b101100100111011010000000000
189-
clk_div_list[50] = 0b101011101000010001000000000
190-
clk_div_list[51] = 0b101011011110001100100000000
191-
clk_div_list[52] = 0b101010011000101001000000000
192-
clk_div_list[53] = 0b101001010110011110100000000
193-
clk_div_list[54] = 0b101000010111011110000000000
194-
clk_div_list[55] = 0b100111011011011001000000000
195-
clk_div_list[56] = 0b100110100010000010100000000
196-
clk_div_list[57] = 0b100101110010110011000000000
197-
clk_div_list[58] = 0b100101101011001111000000000
198-
clk_div_list[59] = 0b100100110110110100100000000
199-
clk_div_list[60] = 0b100100000100100111000000000
200-
clk_div_list[61] = 0b100011010100100001000000000
201-
clk_div_list[62] = 0b100010100110011000100000000
202-
clk_div_list[63] = 0b100001111010000110000000000
139+
clk_div_list[0] = 0b111100111110110101011100000000
140+
clk_div_list[1] = 0b111100111110110101011100000000
141+
clk_div_list[2] = 0b111100111110110101011100000000
142+
clk_div_list[3] = 0b111100111110110101011100000000
143+
clk_div_list[4] = 0b111100111110110101011100000000
144+
clk_div_list[5] = 0b111100111110110101011100000000
145+
clk_div_list[6] = 0b111100111110110101011100000000
146+
clk_div_list[7] = 0b111100111110110101011100000000
147+
clk_div_list[8] = 0b111100111110110101011100000000
148+
clk_div_list[9] = 0b111100111110110101011100000000
149+
clk_div_list[10] = 0b111100111110110101011100000000
150+
clk_div_list[11] = 0b111100111110110101011100000000
151+
clk_div_list[12] = 0b111100111110110101011100000000
152+
clk_div_list[13] = 0b111100111110110101011100000000
153+
clk_div_list[14] = 0b111100111110110101011100000000
154+
clk_div_list[15] = 0b111100111110110101011100000000
155+
clk_div_list[16] = 0b111100111110110101011100000000
156+
clk_div_list[17] = 0b110111110000100100101100000000
157+
clk_div_list[18] = 0b110011010110101101001000000000
158+
clk_div_list[19] = 0b101111100110000110110000000000
159+
clk_div_list[20] = 0b101100010110100101100000000000
160+
clk_div_list[21] = 0b101001100001010100000000000000
161+
clk_div_list[22] = 0b100111000001110011010100000000
162+
clk_div_list[23] = 0b100100110100100010001100000000
163+
clk_div_list[24] = 0b100010110110001110110000000000
164+
clk_div_list[25] = 0b100001000100110001110100000000
165+
clk_div_list[26] = 0b11111011110011100001000000000
166+
clk_div_list[27] = 0b11110000001011010111100000000
167+
clk_div_list[28] = 0b11100101100100111010100000000
168+
clk_div_list[29] = 0b11011011111000100111000000000
169+
clk_div_list[30] = 0b11010010111101110101100000000
170+
clk_div_list[31] = 0b11001010101111100011000000000
171+
clk_div_list[32] = 0b11000011001000110000100000000
172+
clk_div_list[33] = 0b1111100111000110101100000000
173+
clk_div_list[34] = 0b1011011110101000110000000000
174+
clk_div_list[35] = 0b1001000100111000000100000000
175+
clk_div_list[36] = 0b111100000010101110000000000
176+
clk_div_list[37] = 0b110011001011110001000000000
177+
clk_div_list[38] = 0b101100100110100110000000000
178+
clk_div_list[39] = 0b100111100001011001000000000
179+
clk_div_list[40] = 0b100011011110101011100000000
180+
clk_div_list[41] = 0b100000001100000000000000000
181+
clk_div_list[42] = 0b11101011101000110000000000
182+
clk_div_list[43] = 0b11011001001100100100000000
183+
clk_div_list[44] = 0b11001001011011101000000000
184+
clk_div_list[45] = 0b10111011110011010000000000
185+
clk_div_list[46] = 0b10101111111001100000000000
186+
clk_div_list[47] = 0b10100101011010100000000000
187+
clk_div_list[48] = 0b10011100000111000000000000
188+
clk_div_list[49] = 0b10011100000111000000000000
189+
clk_div_list[50] = 0b10011100000111000000000000
190+
clk_div_list[51] = 0b10011100000111000000000000
191+
clk_div_list[52] = 0b10011100000111000000000000
192+
clk_div_list[53] = 0b10011100000111000000000000
193+
clk_div_list[54] = 0b10011100000111000000000000
194+
clk_div_list[55] = 0b10011100000111000000000000
195+
clk_div_list[56] = 0b10011100000111000000000000
196+
clk_div_list[57] = 0b10011100000111000000000000
197+
clk_div_list[58] = 0b10011100000111000000000000
198+
clk_div_list[59] = 0b10011100000111000000000000
199+
clk_div_list[60] = 0b10011100000111000000000000
200+
clk_div_list[61] = 0b10011100000111000000000000
201+
clk_div_list[62] = 0b10011100000111000000000000
202+
clk_div_list[63] = 0b10011100000111000000000000
203+
204+
pwm_freq_list = [
205+
"0.4 Hz",
206+
"0.4 Hz",
207+
"0.4 Hz",
208+
"0.4 Hz",
209+
"0.4 Hz",
210+
"0.4 Hz",
211+
"0.4 Hz",
212+
"0.4 Hz",
213+
"0.4 Hz",
214+
"0.4 Hz",
215+
"0.4 Hz",
216+
"0.4 Hz",
217+
"0.4 Hz",
218+
"0.4 Hz",
219+
"0.4 Hz",
220+
"0.4 Hz",
221+
"0.4 Hz",
222+
"0.4375 Hz",
223+
"0.475 Hz",
224+
"0.5125 Hz",
225+
"0.55 Hz",
226+
"0.5875 Hz",
227+
"0.625 Hz",
228+
"0.6625 Hz",
229+
"0.7 Hz",
230+
"0.7375 Hz",
231+
"0.775 Hz",
232+
"0.8125 Hz",
233+
"0.85 Hz",
234+
"0.8874999 Hz",
235+
"0.925 Hz",
236+
"0.9625 Hz",
237+
"1 Hz",
238+
"1.5625 Hz",
239+
"2.125 Hz",
240+
"2.6875 Hz",
241+
"3.25 Hz",
242+
"3.8125 Hz",
243+
"4.375 Hz",
244+
"4.9375 Hz",
245+
"5.5 Hz",
246+
"6.0625 Hz",
247+
"6.625 Hz",
248+
"7.1875 Hz",
249+
"7.75 Hz",
250+
"8.3125 Hz",
251+
"8.875 Hz",
252+
"9.4375 Hz",
253+
"10 Hz",
254+
"10.0 Hz",
255+
"10.0 Hz",
256+
"10.0 Hz",
257+
"10.0 Hz",
258+
"10.0 Hz",
259+
"10.0 Hz",
260+
"10.0 Hz",
261+
"10.0 Hz",
262+
"10.0 Hz",
263+
"10.0 Hz",
264+
"10.0 Hz",
265+
"10.0 Hz",
266+
"10.0 Hz",
267+
"10.0 Hz",
268+
"10.0 Hz"
269+
]
270+
271+
pwm_div_list = array("I", [0 for _ in range(64)])
272+
273+
pwm_div_list[0] = 0b111100111110110101011100000000
274+
pwm_div_list[1] = 0b111100111110110101011100000000
275+
pwm_div_list[2] = 0b111100111110110101011100000000
276+
pwm_div_list[3] = 0b111100111110110101011100000000
277+
pwm_div_list[4] = 0b111100111110110101011100000000
278+
pwm_div_list[5] = 0b111100111110110101011100000000
279+
pwm_div_list[6] = 0b111100111110110101011100000000
280+
pwm_div_list[7] = 0b111100111110110101011100000000
281+
pwm_div_list[8] = 0b111100111110110101011100000000
282+
pwm_div_list[9] = 0b111100111110110101011100000000
283+
pwm_div_list[10] = 0b111100111110110101011100000000
284+
pwm_div_list[11] = 0b111100111110110101011100000000
285+
pwm_div_list[12] = 0b111100111110110101011100000000
286+
pwm_div_list[13] = 0b111100111110110101011100000000
287+
pwm_div_list[14] = 0b111100111110110101011100000000
288+
pwm_div_list[15] = 0b111100111110110101011100000000
289+
pwm_div_list[16] = 0b111100111110110101011100000000
290+
pwm_div_list[17] = 0b110111110000100100101100000000
291+
pwm_div_list[18] = 0b110011010110101101001000000000
292+
pwm_div_list[19] = 0b101111100110000110110000000000
293+
pwm_div_list[20] = 0b101100010110100101100000000000
294+
pwm_div_list[21] = 0b101001100001010100000000000000
295+
pwm_div_list[22] = 0b100111000001110011010100000000
296+
pwm_div_list[23] = 0b100100110100100010001100000000
297+
pwm_div_list[24] = 0b100010110110001110110000000000
298+
pwm_div_list[25] = 0b100001000100110001110100000000
299+
pwm_div_list[26] = 0b11111011110011100001000000000
300+
pwm_div_list[27] = 0b11110000001011010111100000000
301+
pwm_div_list[28] = 0b11100101100100111010100000000
302+
pwm_div_list[29] = 0b11011011111000100111000000000
303+
pwm_div_list[30] = 0b11010010111101110101100000000
304+
pwm_div_list[31] = 0b11001010101111100011000000000
305+
pwm_div_list[32] = 0b11000011001000110000100000000
306+
pwm_div_list[33] = 0b1111100111000110101100000000
307+
pwm_div_list[34] = 0b1011011110101000110000000000
308+
pwm_div_list[35] = 0b1001000100111000000100000000
309+
pwm_div_list[36] = 0b111100000010101110000000000
310+
pwm_div_list[37] = 0b110011001011110001000000000
311+
pwm_div_list[38] = 0b101100100110100110000000000
312+
pwm_div_list[39] = 0b100111100001011001000000000
313+
pwm_div_list[40] = 0b100011011110101011100000000
314+
pwm_div_list[41] = 0b100000001100000000000000000
315+
pwm_div_list[42] = 0b11101011101000110000000000
316+
pwm_div_list[43] = 0b11011001001100100100000000
317+
pwm_div_list[44] = 0b11001001011011101000000000
318+
pwm_div_list[45] = 0b10111011110011010000000000
319+
pwm_div_list[46] = 0b10101111111001100000000000
320+
pwm_div_list[47] = 0b10100101011010100000000000
321+
pwm_div_list[48] = 0b10011100000111000000000000
322+
pwm_div_list[49] = 0b10011100000111000000000000
323+
pwm_div_list[50] = 0b10011100000111000000000000
324+
pwm_div_list[51] = 0b10011100000111000000000000
325+
pwm_div_list[52] = 0b10011100000111000000000000
326+
pwm_div_list[53] = 0b10011100000111000000000000
327+
pwm_div_list[54] = 0b10011100000111000000000000
328+
pwm_div_list[55] = 0b10011100000111000000000000
329+
pwm_div_list[56] = 0b10011100000111000000000000
330+
pwm_div_list[57] = 0b10011100000111000000000000
331+
pwm_div_list[58] = 0b10011100000111000000000000
332+
pwm_div_list[59] = 0b10011100000111000000000000
333+
pwm_div_list[60] = 0b10011100000111000000000000
334+
pwm_div_list[61] = 0b10011100000111000000000000
335+
pwm_div_list[62] = 0b10011100000111000000000000
336+
pwm_div_list[63] = 0b10011100000111000000000000

0 commit comments

Comments
 (0)