-
Notifications
You must be signed in to change notification settings - Fork 47
/
picprog_minute.ino
1734 lines (1631 loc) · 122 KB
/
picprog_minute.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* STC1000+, improved firmware and Arduino based firmware uploader for the STC-1000 dual stage thermostat.
*
* Copyright 2014 Mats Staffansson
*
* This file is part of STC1000+.
*
* STC1000+ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* STC1000+ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with STC1000+. If not, see <http://www.gnu.org/licenses/>.
*
* The idea of an Arduino based PIC programmer came from here
* http://forum.arduino.cc/index.php?topic=92929.0
* but was completely rewritten.
*
* This sketch allows the generated HEX file for the STC-1000 to be uploaded
* from the Arduino by sending it over serial. I use CuteCom under linux to upload the
* file, which works wonderfully. It allows to set a character delay, to not overrun the
* buffer. If you should use another software that does not have this feature you may
* need to lower the baudrate significantly.
*
*/
/* User configurable defines */
/* Set to 0 to omit Fahrenheit version from sketch */
#define INCLUDE_FAHRENHEIT_HEX_DATA 1
/* Set to 0 to omit Celsius version from sketch */
#define INCLUDE_CELSIUS_HEX_DATA 1
/* Set to 1 to enable automatic upload of Fahrenheit version */
#define AUTOMATIC_UPLOAD_FAHRENHEIT 0
/* Set to 1 to enable automatic upload of Celsius version */
#define AUTOMATIC_UPLOAD_CELSIUS 0
/* End of user configurable defines - DO NOT EDIT BEYOND THIS POINT - unless you know what you're doing that is... */
/* Sanity check */
#if AUTOMATIC_UPLOAD_FAHRENHEIT && AUTOMATIC_UPLOAD_CELSIUS
#error "Cannot automatically upload both versions, set *just one* of AUTOMATIC_UPLOAD_FAHRENHEIT or AUTOMATIC_UPLOAD_CELSIUS."
#endif
#if !INCLUDE_FAHRENHEIT_HEX_DATA && !INCLUDE_CELSIUS_HEX_DATA
#error "No HEX data selected, set *at least one* of INCLUDE_FAHRENHEIT_HEX_DATA or INCLUDE_CELSIUS_HEX_DATA to 1."
#endif
#if AUTOMATIC_UPLOAD_FAHRENHEIT && !INCLUDE_FAHRENHEIT_HEX_DATA
#error "To automatically upload Fahrenheit version, INCLUDE_FAHRENHEIT_HEX_DATA must be set to 1."
#endif
#if AUTOMATIC_UPLOAD_CELSIUS && !INCLUDE_CELSIUS_HEX_DATA
#error "To automatically upload Celsius version, INCLUDE_CELSIUS_HEX_DATA must be set to 1."
#endif
/* Define STC-1000+ version number (XYY, X=major, YY=minor) and EEROM revision */
#define STC1000P_MAGIC_F 0x192C
#define STC1000P_MAGIC_C 0x26D3
#define STC1000P_VERSION (109)
#define STC1000P_EEPROM_VERSION (12)
/* Pin configuration */
#define ICSPCLK 9
#define ICSPDAT 8
#define VDD1 6
#define VDD2 5
#define VDD3 4
#define nMCLR 3
/* Delays */
#define TDLY() delayMicroseconds(1) /* 1.0us minimum */
#define TCKH() delayMicroseconds(1) /* 100ns minimum */
#define TCKL() delayMicroseconds(1) /* 100ns minimum */
#define TERAB() delay(5) /* 5ms maximum */
#define TERAR() delay(3) /* 2.5ms maximum */
#define TPINT() delay(5) /* 5ms maximum */
#define TPEXT() delay(2) /* 1.0ms minimum, 2.1ms maximum*/
#define TDIS() delayMicroseconds(1) /* 300ns minimum */
#define TENTS() delayMicroseconds(1) /* 100ns minimum */
#define TENTH() delay(3) /* 250us minimum */ /* Needs a lot more when powered by arduino */
#define TEXIT() delayMicroseconds(1) /* 1us minimum */
/* Commands */
#define LOAD_CONFIGURATION 0x00 /* 0, data(14), 0 */
#define LOAD_DATA_FOR_PROGRAM_MEMORY 0x02 /* 0, data(14), 0 */
#define LOAD_DATA_FOR_DATA_MEMORY 0x03 /* 0, data(14), zero(6), 0 */
#define READ_DATA_FROM_PROGRAM_MEMORY 0x04 /* 0, data(14), 0 */
#define READ_DATA_FROM_DATA_MEMORY 0x05 /* 0, data(14), zero(6), 0 */
#define INCREMENT_ADDRESS 0x06 /* - */
#define RESET_ADDRESS 0x16 /* - */
#define BEGIN_INTERNALLY_TIMED_PROGRAMMING 0x08 /* - */
#define BEGIN_EXTERNALLY_TIMED_PROGRAMMING 0x18 /* - */
#define END_EXTERNALLY_TIMED_PROGRAMMING 0x0A /* - */
#define BULK_ERASE_PROGRAM_MEMORY 0x09 /* Internally Timed */
#define BULK_ERASE_DATA_MEMORY 0x0B /* Internally Timed */
#define ROW_ERASE_PROGRAM_MEMORY 0x11 /* Internally Timed */
/* declare hex data */
/* For some reason PROGMEM messes with conditional compilation, */
/* so better not put #if INCLUDE_???_HEX_DATA around these */
extern const char hex_celsius[] PROGMEM;
extern const char hex_eeprom_celsius[] PROGMEM;
extern const char hex_fahrenheit[] PROGMEM;
extern const char hex_eeprom_fahrenheit[] PROGMEM;
unsigned char hex_nibble(unsigned char data) {
data = toupper(data);
return (data >= 'A' ? data - 'A' + 10 : data - '0') & 0xf;
}
unsigned char parse_hex() {
unsigned char data;
while (Serial.available() < 2)
;
data = hex_nibble(Serial.read()) << 4;
data |= hex_nibble(Serial.read());
return data;
}
unsigned char handle_hex_file_line(unsigned char bytecount,
unsigned int address, unsigned char recordtype, unsigned char data[]) {
static unsigned int device_address = 0;
unsigned char i;
if (recordtype == 1) {
reset_address();
device_address = 0;
Serial.println("Programming done");
return 1;
} else if (recordtype == 04) {
if (data[1] == 0) {
Serial.println("Programming program memory");
reset_address();
device_address = 0;
} else if (data[1] == 1) {
Serial.println("Programming config memory");
load_configuration(0);
device_address = 0;
}
} else if (recordtype == 00) {
if (address >= 0xE000) {
Serial.print("Programming ");
Serial.print(bytecount >> 1, DEC);
Serial.print(" bytes at EEPROM address 0x");
Serial.println((address & 0x1FFF) >> 1, HEX);
if (device_address != ((address & 0x1FFF) >> 1)
|| ((address & 0x1FFF) >> 1) == 0) {
Serial.println("Resetting address for EEPROM");
reset_address();
device_address = 0;
}
while (device_address != ((address & 0x1FFF) >> 1)) {
increment_address();
device_address++;
Serial.print("Incrementing address to 0x");
Serial.println(device_address, HEX);
}
for (i = 0; i < bytecount; i += 2) {
unsigned char data_out = data[i];
unsigned char data_in;
load_data_for_data_memory(data_out);
begin_internally_timed_programming();
data_in = read_data_from_data_memory();
if (data_in != data_out) {
Serial.print("Validation failed for EEPROM address 0x");
Serial.print(device_address, HEX);
Serial.print(" wrote 0x");
Serial.print(data_out, HEX);
Serial.print(" but read back 0x");
Serial.println(data_in, HEX);
return 1;
}
increment_address();
device_address++;
}
} else {
Serial.print("Programming ");
Serial.print(bytecount >> 1, DEC);
Serial.print(" words at address 0x");
Serial.println(address >> 1, HEX);
while (device_address != (address >> 1)) {
increment_address();
device_address++;
Serial.print("Incrementing address to 0x");
Serial.println(device_address, HEX);
}
for (i = 0; i < bytecount; i += 2) {
unsigned int data_word_out = (((unsigned int) data[i + 1]) << 8)
| data[i];
unsigned int data_word_in;
load_data_for_program_memory(data_word_out);
begin_internally_timed_programming();
data_word_in = read_data_from_program_memory();
if (data_word_in != data_word_out) {
Serial.print("Validation failed for address 0x");
Serial.print(device_address, HEX);
Serial.print(" wrote 0x");
Serial.print(data_word_out, HEX);
Serial.print(" but read back 0x");
Serial.println(data_word_in, HEX);
return 1;
}
increment_address();
device_address++;
}
}
}
return 0;
}
void upload_hex_file_to_device() {
unsigned char done = 0;
Serial.println("Waiting for hex data...");
while (!done) {
unsigned char bytecount;
unsigned int address;
unsigned char recordtype;
unsigned char data[16];
unsigned char checksum;
unsigned char i;
// Read start of line
while (1) {
while (Serial.available() < 1)
;
char rx = Serial.read();
if (rx == ':') {
break;
}
}
// Read bytecount
bytecount = parse_hex();
checksum = bytecount;
// Read address
address = ((unsigned int) parse_hex()) << 8;
address |= parse_hex();
checksum += ((unsigned char) (address >> 8));
checksum += ((unsigned char) (address));
// Read recordtype
recordtype = parse_hex();
checksum += recordtype;
for (i = 0; i < bytecount; i++) {
data[i] = parse_hex();
checksum += data[i];
}
// Read checksum
i = parse_hex();
checksum += i;
if (checksum) {
Serial.println("Checksum error!");
break;
}
done = handle_hex_file_line(bytecount, address, recordtype, data);
}
}
void upload_hex_from_progmem(PGM_P hexdata) {
unsigned char done = 0;
Serial.println("Programming hex data...");
while (!done) {
unsigned char bytecount;
unsigned int address;
unsigned char recordtype;
unsigned char data[16];
unsigned char checksum;
unsigned char i;
// Read bytecount
bytecount = pgm_read_byte(hexdata++);
checksum = bytecount;
// Read address
address = ((unsigned int) pgm_read_byte(hexdata++)) << 8;
address |= pgm_read_byte(hexdata++);
checksum += ((unsigned char) (address >> 8));
checksum += ((unsigned char) (address));
// Read recordtype
recordtype = pgm_read_byte(hexdata++);
checksum += recordtype;
for (i = 0; i < bytecount; i++) {
data[i] = pgm_read_byte(hexdata++);
checksum += data[i];
}
// Read checksum
i = pgm_read_byte(hexdata++);
checksum += i;
if (checksum) {
Serial.println("Checksum error!");
break;
}
done = handle_hex_file_line(bytecount, address, recordtype, data);
}
}
/* low level bit transfer */
void write_bit(unsigned char bit) {
digitalWrite(ICSPCLK, HIGH);
digitalWrite(ICSPDAT, bit ? HIGH : LOW);
TCKH();
digitalWrite(ICSPCLK, LOW);
TCKL();
// digitalWrite(ICSPDAT,LOW); // REM?
}
unsigned char read_bit() {
unsigned char rv;
digitalWrite(ICSPCLK, HIGH);
TCKH();
rv = (digitalRead(ICSPDAT) == HIGH);
digitalWrite(ICSPCLK, LOW);
TCKL();
return rv;
}
/* Program/verify mode entry and exit */
void hvp_entry() {
Serial.println("Enter high voltage programming mode");
pinMode(ICSPCLK, OUTPUT);
pinMode(VDD1, OUTPUT);
pinMode(VDD2, OUTPUT);
pinMode(VDD3, OUTPUT);
pinMode(ICSPDAT, OUTPUT);
// Set VPP to VIHH (9v)
TENTS();
digitalWrite(VDD1, HIGH);
digitalWrite(VDD2, HIGH);
digitalWrite(VDD3, HIGH);
TENTH();
}
void lvp_entry() {
unsigned long LVP_magic = 0b01001101010000110100100001010000;
unsigned char i;
Serial.println("Enter low voltage programming mode");
pinMode(nMCLR, OUTPUT);
pinMode(VDD1, OUTPUT);
pinMode(VDD2, OUTPUT);
pinMode(VDD3, OUTPUT);
digitalWrite(nMCLR, HIGH);
digitalWrite(VDD1, HIGH);
digitalWrite(VDD2, HIGH);
digitalWrite(VDD3, HIGH);
TENTS();
digitalWrite(nMCLR, LOW);
pinMode(ICSPCLK, OUTPUT);
pinMode(ICSPDAT, OUTPUT);
TENTH();
// Send "MCHP" backwards, to unlock LVP mode
for (i = 0; i < 32; i++) {
write_bit((LVP_magic >> i) & 1);
}
write_bit(0);
}
void p_exit() {
Serial.println("Leaving programming mode");
digitalWrite(nMCLR, LOW); // LVP mode
digitalWrite(ICSPCLK, LOW);
digitalWrite(ICSPDAT, LOW);
digitalWrite(VDD1, LOW);
digitalWrite(VDD2, LOW);
digitalWrite(VDD3, LOW);
TEXIT();
pinMode(nMCLR, INPUT); // LVP mode
pinMode(ICSPCLK, INPUT);
pinMode(VDD1, INPUT);
pinMode(VDD2, INPUT);
pinMode(VDD3, INPUT);
pinMode(ICSPDAT, INPUT);
}
/* low level command transfer */
void write_command(unsigned char command) {
unsigned char i;
for (i = 0; i < 5; i++) {
write_bit((command >> i) & 1);
}
write_bit(0);
TDLY();
}
void write_command_with_data(unsigned char command, unsigned int data) {
unsigned char i;
write_command(command);
write_bit(0);
for (i = 0; i < 14; i++) {
write_bit((data >> i) & 1);
}
write_bit(0);
}
unsigned int read_command(unsigned char command) {
unsigned char i;
unsigned int data = 0;
write_command(command);
pinMode(ICSPDAT, INPUT);
read_bit();
for (i = 0; i < 14; i++) {
data |= ((unsigned int) (read_bit() & 0x1) << i);
}
read_bit();
pinMode(ICSPDAT, OUTPUT);
return data;
}
/* high level commands */
void load_configuration(unsigned int data) {
write_command_with_data(LOAD_CONFIGURATION, data);
}
void load_data_for_program_memory(unsigned int data) {
write_command_with_data(LOAD_DATA_FOR_PROGRAM_MEMORY, data);
}
void load_data_for_data_memory(unsigned char data) {
write_command_with_data(LOAD_DATA_FOR_DATA_MEMORY, data);
}
unsigned int read_data_from_program_memory() {
return read_command(READ_DATA_FROM_PROGRAM_MEMORY);
}
unsigned char read_data_from_data_memory() {
return (unsigned char) read_command(READ_DATA_FROM_DATA_MEMORY);
}
void increment_address() {
write_command(INCREMENT_ADDRESS);
}
void reset_address() {
write_command(RESET_ADDRESS);
}
void begin_internally_timed_programming() {
write_command(BEGIN_INTERNALLY_TIMED_PROGRAMMING);
TPINT();
}
void begin_externally_timed_programming() {
write_command(BEGIN_EXTERNALLY_TIMED_PROGRAMMING);
TPEXT();
}
void end_externally_timed_programming() {
write_command(END_EXTERNALLY_TIMED_PROGRAMMING);
TDIS();
}
void bulk_erase_program_memory() {
Serial.println("Bulk erasing program memory");
write_command(BULK_ERASE_PROGRAM_MEMORY);
TERAB();
}
void bulk_erase_data_memory() {
Serial.println("Bulk erasing data memory");
write_command(BULK_ERASE_DATA_MEMORY);
TERAB();
}
void row_erase_program_memory() {
write_command(ROW_ERASE_PROGRAM_MEMORY);
TERAR();
}
/* algorithms */
void bulk_erase_device() {
Serial.println("Bulk erasing device");
load_configuration(0);
bulk_erase_program_memory();
bulk_erase_data_memory();
}
void get_device_id(unsigned int *magic, unsigned int *version,
unsigned int *deviceid) {
lvp_entry();
load_configuration(0);
*magic = read_data_from_program_memory();
increment_address();
*version = read_data_from_program_memory();
increment_address();
increment_address();
increment_address();
increment_address();
increment_address();
*deviceid = read_data_from_program_memory();
p_exit();
}
void write_magic(unsigned int data_word_out) {
Serial.println("Writing magic.");
load_configuration(0);
load_data_for_program_memory(data_word_out);
begin_internally_timed_programming();
}
void write_version(unsigned int data_word_out) {
Serial.println("Writing version.");
load_configuration(0);
increment_address();
load_data_for_program_memory(data_word_out);
begin_internally_timed_programming();
}
void setup() {
pinMode(ICSPCLK, INPUT);
digitalWrite(ICSPCLK, LOW); // Disable pull-up
pinMode(ICSPDAT, INPUT);
digitalWrite(ICSPDAT, LOW); // Disable pull-up
pinMode(nMCLR, INPUT);
digitalWrite(nMCLR, LOW); // Disable pull-up
Serial.begin(115200);
delay(2);
Serial.println("STC-1000+ firmware sketch.");
Serial.println("Copyright 2014 Mats Staffansson");
Serial.println("");
Serial.println("Send 'd' to check for STC-1000");
#if AUTOMATIC_UPLOAD_CELSIUS || AUTOMATIC_UPLOAD_FAHRENHEIT
{
unsigned int magic, ver, deviceid;
delay(100); // Make sure STC has time to wake up.
get_device_id(&magic, &ver, &deviceid);
if((deviceid & 0x3FE0) == 0x27C0) {
Serial.println("STC-1000 detected");
lvp_entry();
bulk_erase_device();
#if AUTOMATIC_UPLOAD_FAHRENHEIT
upload_hex_from_progmem(hex_fahrenheit);
upload_hex_from_progmem(hex_eeprom_fahrenheit);
write_magic(STC1000P_MAGIC_F);
#else // AUTOMATIC_UPLOAD_CELSIUS
upload_hex_from_progmem(hex_celsius);
upload_hex_from_progmem(hex_eeprom_celsius);
write_magic(STC1000P_MAGIC_C);
#endif
write_version(STC1000P_VERSION);
p_exit();
} else {
Serial.println("No STC-1000 detected");
}
}
#endif
}
void loop() {
if (Serial.available() > 0) {
char command = Serial.read();
switch (command) {
case 'h':
hvp_entry();
break;
case 'l':
lvp_entry();
break;
case 'e':
p_exit();
break;
case 'c':
load_configuration(0);
break;
case 'p':
Serial.print('0');
Serial.print('x');
Serial.print(read_data_from_program_memory(), HEX);
Serial.println();
break;
case 'i':
increment_address();
break;
case 'u':
lvp_entry();
bulk_erase_program_memory();
upload_hex_file_to_device();
p_exit();
break;
case 'v':
lvp_entry();
bulk_erase_data_memory();
upload_hex_file_to_device();
p_exit();
break;
#if INCLUDE_CELSIUS_HEX_DATA
case 'a':
lvp_entry();
bulk_erase_device();
upload_hex_from_progmem (hex_celsius);
upload_hex_from_progmem (hex_eeprom_celsius);
write_magic(STC1000P_MAGIC_C);
write_version(STC1000P_VERSION);
p_exit();
break;
case 'b':
lvp_entry();
load_configuration(0);
bulk_erase_program_memory();
reset_address();
upload_hex_from_progmem(hex_celsius);
write_magic(STC1000P_MAGIC_C);
write_version(STC1000P_VERSION);
p_exit();
break;
#endif
case 'd': {
unsigned int magic, ver, deviceid;
get_device_id(&magic, &ver, &deviceid);
Serial.print("Device ID is: 0x");
Serial.println(deviceid, HEX);
if ((deviceid & 0x3FE0) == 0x27C0) {
Serial.println("STC-1000 detected.");
if (magic == STC1000P_MAGIC_C || magic == STC1000P_MAGIC_F) {
Serial.print("STC-1000+ ");
if (magic == STC1000P_MAGIC_F) {
Serial.print("Fahrenheit ");
} else {
Serial.print("Celsius ");
}
Serial.print("firmware with version ");
Serial.print(ver / 100, DEC);
Serial.print(".");
Serial.print((ver % 100) / 10, DEC);
Serial.print((ver % 10), DEC);
Serial.println(" detected.");
if (ver < STC1000P_EEPROM_VERSION) {
Serial.println(
"EEPROM has changes, consider initializing EEPROM when flashing.");
}
} else {
Serial.println("No previous STC-1000+ firmware detected.");
Serial.println(
"Consider initializing EEPROM when flashing.");
}
Serial.print("Sketch has version ");
Serial.print(STC1000P_VERSION / 100, DEC);
Serial.print(".");
Serial.print((STC1000P_VERSION % 100) / 10, DEC);
Serial.print((STC1000P_VERSION % 10), DEC);
Serial.println("");
Serial.println("");
#if INCLUDE_CELSIUS_HEX_DATA
Serial.println(
"Send 'a' to upload Celsius version and initialize EEPROM data.");
Serial.println(
"Send 'b' to upload Celsius version (program memory only).");
#endif
#if INCLUDE_FAHRENHEIT_HEX_DATA
Serial.println(
"Send 'f' to upload Fahrenheit version and initialize EEPROM data.");
Serial.println(
"Send 'g' to upload Fahrenheit version (program memory only).");
#endif
} else {
Serial.println("STC-1000 NOT detected. Check wiring.");
}
}
break;
#if INCLUDE_FAHRENHEIT_HEX_DATA
case 'f':
lvp_entry();
bulk_erase_device();
upload_hex_from_progmem (hex_fahrenheit);
upload_hex_from_progmem (hex_eeprom_fahrenheit);
write_magic(STC1000P_MAGIC_F);
write_version(STC1000P_VERSION);
p_exit();
break;
case 'g':
lvp_entry();
load_configuration(0);
bulk_erase_program_memory();
reset_address();
upload_hex_from_progmem(hex_fahrenheit);
write_magic(STC1000P_MAGIC_F);
write_version(STC1000P_VERSION);
p_exit();
break;
#endif
default:
break;
}
}
}
#if INCLUDE_CELSIUS_HEX_DATA
const char hex_celsius[] PROGMEM = {
0x02,0x00,0x00,0x04,0x00,0x00,0xFA,
0x10,0x00,0x00,0x00,0x00,0x00,0x86,0x31,0xD6,0x2E,0xFF,0x34,0x8A,0x01,0x20,0x00,0x91,0x1C,0x41,0x28,0x41,
0x10,0x00,0x10,0x00,0x03,0x10,0x22,0x00,0x0D,0x0D,0x20,0x00,0xBB,0x00,0x3B,0x08,0x03,0x1D,0x12,0x28,0x19,
0x10,0x00,0x20,0x00,0x10,0x30,0xBB,0x00,0x21,0x00,0x8E,0x01,0x22,0x00,0x8D,0x01,0x20,0x00,0x3B,0x08,0x12,
0x10,0x00,0x30,0x00,0x10,0x3A,0x03,0x19,0x28,0x28,0x3B,0x08,0x20,0x3A,0x03,0x19,0x2D,0x28,0x3B,0x08,0xB9,
0x10,0x00,0x40,0x00,0x40,0x3A,0x03,0x19,0x32,0x28,0x3B,0x08,0x80,0x3A,0x03,0x19,0x37,0x28,0x3B,0x28,0xE5,
0x10,0x00,0x50,0x00,0x21,0x00,0x2D,0x08,0x22,0x00,0x8E,0x00,0x3B,0x28,0x21,0x00,0x2E,0x08,0x22,0x00,0xBE,
0x10,0x00,0x60,0x00,0x8E,0x00,0x3B,0x28,0x21,0x00,0x2F,0x08,0x22,0x00,0x8E,0x00,0x3B,0x28,0x21,0x00,0x13,
0x10,0x00,0x70,0x00,0x30,0x08,0x22,0x00,0x8E,0x00,0x20,0x00,0x3B,0x08,0x22,0x00,0x8D,0x00,0x20,0x00,0x66,
0x10,0x00,0x80,0x00,0x91,0x10,0x09,0x00,0x20,0x00,0xBE,0x01,0xBF,0x01,0xC0,0x01,0x80,0x30,0xC1,0x00,0xF5,
0x10,0x00,0x90,0x00,0x6A,0x30,0x21,0x00,0x99,0x00,0x0E,0x30,0x8C,0x00,0x22,0x00,0x8C,0x01,0x21,0x00,0x72,
0x10,0x00,0xA0,0x00,0x8D,0x01,0x22,0x00,0x8D,0x01,0x21,0x00,0x8E,0x01,0x04,0x30,0x23,0x00,0x8C,0x00,0x7F,
0x10,0x00,0xB0,0x00,0x21,0x00,0x1E,0x16,0x9E,0x17,0x23,0x00,0x8E,0x01,0x05,0x30,0x20,0x00,0x9C,0x00,0x93,
0x10,0x00,0xC0,0x00,0xFA,0x30,0x9B,0x00,0x21,0x00,0x91,0x14,0x72,0x30,0x28,0x00,0x97,0x00,0x7F,0x30,0x95,
0x10,0x00,0xD0,0x00,0xAF,0x26,0x20,0x00,0xA7,0x00,0x77,0x08,0xA9,0x00,0xA8,0x00,0x28,0x0C,0x03,0x18,0x65,
0x10,0x00,0xE0,0x00,0x73,0x28,0x28,0x00,0x17,0x11,0x03,0x1C,0x77,0x28,0x28,0x00,0x17,0x15,0xFA,0x30,0xE9,
0x10,0x00,0xF0,0x00,0x28,0x00,0x96,0x00,0x37,0x30,0x9E,0x00,0xFA,0x30,0x9D,0x00,0x72,0x30,0xAF,0x26,0xFF,
0x10,0x01,0x00,0x00,0x20,0x00,0xEF,0x00,0x77,0x08,0xEE,0x00,0xC0,0x30,0x20,0x00,0x8B,0x00,0x09,0x30,0x9F,
0x10,0x01,0x10,0x00,0x21,0x00,0x9D,0x00,0x20,0x00,0x93,0x1D,0xA0,0x28,0x88,0x31,0x00,0x20,0x80,0x31,0xFF,
0x10,0x01,0x20,0x00,0x28,0x00,0x17,0x19,0x9E,0x28,0xFF,0x30,0x21,0x00,0xB0,0x00,0x03,0x30,0x21,0x00,0x5D,
0x10,0x01,0x30,0x00,0xAD,0x00,0x59,0x30,0x21,0x00,0xAF,0x00,0x21,0x00,0xAE,0x00,0x20,0x00,0x93,0x11,0x26,
0x10,0x01,0x40,0x00,0x20,0x00,0x93,0x1C,0x29,0x2D,0x20,0x00,0xBE,0x0A,0x03,0x19,0xBF,0x0A,0x3E,0x1C,0x63,
0x10,0x01,0x50,0x00,0xEF,0x28,0x40,0x08,0xF7,0x00,0x41,0x08,0x20,0x00,0xA0,0x00,0x77,0x08,0xA1,0x00,0x20,
0x10,0x01,0x60,0x00,0x21,0x00,0x9D,0x14,0x21,0x00,0x9D,0x18,0xB2,0x28,0x1D,0x10,0x20,0x00,0x21,0x0E,0x91,
0x10,0x01,0x70,0x00,0x0F,0x39,0xA2,0x00,0x20,0x0E,0xA3,0x00,0xF0,0x39,0xA2,0x04,0xA3,0x06,0x03,0x10,0x39,
0x10,0x01,0x80,0x00,0xA3,0x0C,0xA2,0x0C,0x03,0x10,0xA3,0x0C,0xA2,0x0C,0x22,0x08,0xA1,0x02,0x23,0x08,0xAA,
0x10,0x01,0x90,0x00,0x03,0x1C,0x23,0x0F,0xA0,0x02,0x21,0x00,0x1C,0x08,0x20,0x00,0xA2,0x00,0xA3,0x01,0xC1,
0x10,0x01,0xA0,0x00,0x22,0x08,0xA4,0x00,0xA6,0x01,0x21,0x00,0x1B,0x08,0x20,0x00,0xA2,0x00,0xA3,0x01,0x30,
0x10,0x01,0xB0,0x00,0x22,0x08,0xA6,0x04,0x23,0x08,0xA4,0x04,0x26,0x08,0xA2,0x00,0x24,0x08,0xA3,0x00,0xF9,
0x10,0x01,0xC0,0x00,0x22,0x08,0xA1,0x07,0x23,0x08,0x03,0x18,0x23,0x0F,0xA0,0x07,0x21,0x08,0xF7,0x00,0x1E,
0x10,0x01,0xD0,0x00,0x20,0x08,0xC1,0x00,0x77,0x08,0xC0,0x00,0x09,0x30,0x21,0x00,0x9D,0x00,0x20,0x00,0xE0,
0x10,0x01,0xE0,0x00,0x3E,0x08,0x0F,0x39,0x03,0x1D,0x27,0x2D,0x40,0x08,0xF7,0x00,0x41,0x08,0x20,0x00,0x65,
0x10,0x01,0xF0,0x00,0xA0,0x00,0x77,0x08,0xA1,0x00,0x20,0x30,0xA2,0x00,0xA3,0x01,0xA4,0x01,0xA6,0x01,0x5D,
0x10,0x02,0x00,0x00,0x21,0x0E,0x0F,0x39,0xA5,0x00,0x20,0x0E,0xA7,0x00,0xF0,0x39,0xA5,0x04,0xA7,0x06,0x7E,
0x10,0x02,0x10,0x00,0x03,0x10,0xA7,0x0C,0xA5,0x0C,0x3F,0x30,0xA5,0x05,0xA7,0x01,0x25,0x08,0xA9,0x00,0xD0,
0x10,0x02,0x20,0x00,0x03,0x10,0x20,0x0C,0xA5,0x00,0xA7,0x01,0x03,0x10,0xA7,0x0C,0xA5,0x0C,0x03,0x10,0xB8,
0x10,0x02,0x30,0x00,0xA7,0x0C,0xA5,0x0C,0x1F,0x30,0xA5,0x05,0xA7,0x01,0x25,0x08,0xA8,0x00,0x20,0x08,0xBC,
0x10,0x02,0x40,0x00,0xA5,0x00,0xA7,0x01,0x25,0x08,0xA1,0x00,0xF8,0x30,0x21,0x02,0x03,0x18,0x2C,0x29,0xD8,
0x10,0x02,0x50,0x00,0x09,0x30,0x21,0x02,0x03,0x18,0x2E,0x29,0x21,0x00,0x31,0x14,0x20,0x00,0x28,0x0A,0x18,
0x10,0x02,0x60,0x00,0xA1,0x00,0x02,0x30,0xF7,0x00,0x21,0x08,0x87,0x31,0xE0,0x27,0x81,0x31,0x20,0x00,0x0A,
0x10,0x02,0x70,0x00,0xA0,0x00,0xA5,0x01,0x20,0x08,0xA0,0x3E,0xA0,0x00,0x87,0x30,0xA1,0x00,0x25,0x08,0x0D,
0x10,0x02,0x80,0x00,0x03,0x18,0x25,0x0F,0xA1,0x07,0x02,0x30,0xF7,0x00,0x28,0x08,0x87,0x31,0xE0,0x27,0x5F,
0x10,0x02,0x90,0x00,0x81,0x31,0x20,0x00,0xA5,0x00,0xA7,0x01,0x25,0x08,0xA0,0x3E,0xA5,0x00,0x27,0x08,0x60,
0x10,0x02,0xA0,0x00,0x03,0x18,0x27,0x0F,0x87,0x3E,0xA7,0x00,0xA8,0x01,0x20,0x00,0x29,0x08,0x28,0x02,0x6D,
0x10,0x02,0xB0,0x00,0x03,0x1C,0x7D,0x29,0x25,0x08,0xF6,0x00,0x27,0x08,0xF7,0x00,0x80,0x30,0x8D,0x31,0xC2,
0x10,0x02,0xC0,0x00,0xA3,0x25,0x81,0x31,0x20,0x00,0xAB,0x00,0x77,0x08,0xAA,0x00,0xAC,0x00,0x2B,0x08,0xE1,
0x10,0x02,0xD0,0x00,0xAD,0x00,0x00,0x30,0xAD,0x1B,0xFF,0x30,0xBD,0x00,0xBC,0x00,0x2C,0x08,0xA2,0x07,0xF4,
0x10,0x02,0xE0,0x00,0x2D,0x08,0x03,0x18,0x2D,0x0F,0xA3,0x07,0x3C,0x08,0x03,0x18,0x3C,0x0F,0xA4,0x07,0x83,
0x10,0x02,0xF0,0x00,0x3D,0x08,0x03,0x18,0x3D,0x0F,0xA6,0x07,0xA0,0x29,0x20,0x00,0x20,0x08,0xF6,0x00,0x9E,
0x10,0x03,0x00,0x00,0x21,0x08,0xF7,0x00,0x80,0x30,0x8D,0x31,0xA3,0x25,0x81,0x31,0x20,0x00,0xAB,0x00,0x1A,
0x10,0x03,0x10,0x00,0x77,0x08,0xAA,0x00,0xAC,0x00,0x2B,0x08,0xAD,0x00,0x00,0x30,0xAD,0x1B,0xFF,0x30,0x01,
0x10,0x03,0x20,0x00,0xBD,0x00,0xBC,0x00,0x2C,0x08,0xA2,0x07,0x2D,0x08,0x03,0x18,0x2D,0x0F,0xA3,0x07,0x41,
0x10,0x03,0x30,0x00,0x3C,0x08,0x03,0x18,0x3C,0x0F,0xA4,0x07,0x3D,0x08,0x03,0x18,0x3D,0x0F,0xA6,0x07,0x0F,
0x10,0x03,0x40,0x00,0x20,0x00,0xA8,0x0A,0x40,0x30,0x28,0x02,0x03,0x1C,0x55,0x29,0x22,0x0E,0x0F,0x39,0x2C,
0x10,0x03,0x50,0x00,0xA1,0x00,0x23,0x0E,0xA0,0x00,0xF0,0x39,0xA1,0x04,0xA0,0x06,0x24,0x0E,0xA5,0x00,0xE0,
0x10,0x03,0x60,0x00,0xF0,0x39,0xA0,0x04,0xA5,0x06,0x26,0x0E,0xA7,0x00,0xF0,0x39,0xA5,0x04,0xA7,0x06,0xBB,
0x10,0x03,0x70,0x00,0xF0,0x30,0xA7,0x19,0xA7,0x04,0x03,0x10,0xA7,0x1B,0x03,0x14,0xA7,0x0C,0xA5,0x0C,0xA2,
0x10,0x03,0x80,0x00,0xA0,0x0C,0xA1,0x0C,0x03,0x10,0xA7,0x1B,0x03,0x14,0xA7,0x0C,0xA5,0x0C,0xA0,0x0C,0x18,
0x10,0x03,0x90,0x00,0xA1,0x0C,0x21,0x08,0xA2,0x00,0x20,0x08,0xA3,0x00,0x22,0x08,0xF7,0x00,0x23,0x08,0xCE,
0x10,0x03,0xA0,0x00,0xC3,0x00,0x77,0x08,0xC2,0x00,0x74,0x30,0xAF,0x26,0x20,0x00,0xC5,0x00,0x77,0x08,0x6C,
0x10,0x03,0xB0,0x00,0xC4,0x00,0x42,0x08,0xC6,0x00,0x43,0x08,0xC7,0x00,0x44,0x08,0x46,0x07,0x21,0x00,0x9D,
0x10,0x03,0xC0,0x00,0xA5,0x00,0x20,0x00,0x47,0x08,0x21,0x00,0xA6,0x00,0x20,0x00,0x45,0x08,0x03,0x18,0xCA,
0x10,0x03,0xD0,0x00,0x45,0x0A,0x03,0x19,0xED,0x29,0x21,0x00,0xA6,0x07,0x21,0x00,0x31,0x1C,0xF3,0x29,0x44,
0x10,0x03,0xE0,0x00,0x22,0x00,0x0C,0x14,0xF5,0x29,0x22,0x00,0x0C,0x10,0x21,0x00,0x31,0x10,0x22,0x00,0xEB,
0x10,0x03,0xF0,0x00,0x0C,0x1C,0x14,0x2A,0x20,0x00,0x99,0x1F,0x08,0x2A,0x11,0x30,0x21,0x00,0xAD,0x00,0x7E,
0x10,0x04,0x00,0x00,0xCB,0x30,0x21,0x00,0xAE,0x00,0xFF,0x30,0x21,0x00,0xAF,0x00,0x21,0x00,0xB0,0x00,0x52,
0x10,0x04,0x10,0x00,0x22,0x00,0x0C,0x12,0x8C,0x12,0x3C,0x30,0x21,0x00,0xAB,0x00,0xAC,0x01,0x3C,0x30,0xAD,
0x10,0x04,0x20,0x00,0x21,0x00,0xA9,0x00,0xAA,0x01,0x27,0x2D,0x7B,0x30,0xAF,0x26,0x20,0x00,0xC3,0x00,0xA0,
0x10,0x04,0x30,0x00,0x77,0x08,0xC2,0x00,0xC4,0x00,0x06,0x30,0x44,0x02,0x03,0x18,0x3F,0x2B,0x21,0x00,0x95,
0x10,0x04,0x40,0x00,0x30,0x13,0x03,0x30,0x20,0x00,0x3F,0x02,0x03,0x1D,0x28,0x2A,0xE8,0x30,0x3E,0x02,0x0B,
0x10,0x04,0x50,0x00,0x03,0x1C,0x44,0x2B,0x7B,0x30,0xAF,0x26,0x20,0x00,0xAC,0x00,0x77,0x08,0xAD,0x00,0x96,
0x10,0x04,0x60,0x00,0xBD,0x00,0x06,0x30,0x3D,0x02,0x03,0x18,0x3A,0x2B,0x76,0x30,0xAF,0x26,0x20,0x00,0x3F,
0x10,0x04,0x70,0x00,0xAC,0x00,0x77,0x08,0xAD,0x00,0xBC,0x00,0x21,0x00,0xA7,0x0A,0x03,0x19,0xA8,0x0A,0x48,
0x10,0x04,0x80,0x00,0x09,0x30,0x20,0x00,0x3C,0x02,0x03,0x1C,0x47,0x2A,0x08,0x30,0xBC,0x00,0x13,0x30,0x0E,
0x10,0x04,0x90,0x00,0xF7,0x00,0x20,0x00,0x3D,0x08,0x87,0x31,0xE0,0x27,0x82,0x31,0x20,0x00,0xAD,0x00,0xC1,
0x10,0x04,0xA0,0x00,0x03,0x10,0x3C,0x0D,0xBD,0x00,0xAD,0x07,0x2D,0x0A,0xAC,0x00,0xAF,0x26,0x20,0x00,0xA7,
0x10,0x04,0xB0,0x00,0xBD,0x00,0x77,0x08,0xAC,0x00,0x02,0x30,0x2D,0x07,0xAE,0x00,0xAF,0x26,0x20,0x00,0x4B,
0x10,0x04,0xC0,0x00,0xAF,0x00,0x77,0x08,0xAE,0x00,0x3D,0x08,0x21,0x00,0x28,0x02,0x03,0x1D,0x6C,0x2A,0x0A,
0x10,0x04,0xD0,0x00,0x20,0x00,0x2C,0x08,0x21,0x00,0x27,0x02,0x03,0x1C,0xA3,0x2A,0x20,0x00,0x2E,0x08,0x3C,
0x10,0x04,0xE0,0x00,0x20,0x00,0xEE,0x00,0x20,0x00,0x2F,0x08,0x20,0x00,0xEF,0x00,0x20,0x00,0x2E,0x08,0x42,
0x10,0x04,0xF0,0x00,0xF6,0x00,0x2F,0x08,0xF7,0x00,0x72,0x30,0x72,0x26,0x20,0x00,0x3C,0x08,0x08,0x3A,0xF8,
0x10,0x05,0x00,0x00,0x03,0x19,0x8D,0x2A,0x03,0x30,0x2D,0x07,0xB0,0x00,0xAF,0x26,0x20,0x00,0xB1,0x00,0x5B,
0x10,0x05,0x10,0x00,0x77,0x08,0xB0,0x00,0x31,0x04,0x03,0x1D,0x94,0x2A,0x06,0x30,0xF6,0x00,0x00,0x30,0x3D,
0x10,0x05,0x20,0x00,0xF7,0x00,0x7B,0x30,0x72,0x26,0x3A,0x2B,0x21,0x00,0xA7,0x01,0xA8,0x01,0x20,0x00,0x9A,
0x10,0x05,0x30,0x00,0xBC,0x0A,0x3C,0x08,0xB0,0x00,0xB1,0x01,0x30,0x08,0xF6,0x00,0x31,0x08,0xF7,0x00,0xF1,
0x10,0x05,0x40,0x00,0x76,0x30,0x72,0x26,0x3A,0x2B,0x7A,0x30,0xAF,0x26,0x20,0x00,0xB0,0x00,0x77,0x08,0x3A,
0x10,0x05,0x50,0x00,0xBC,0x00,0x30,0x04,0x03,0x19,0x3A,0x2B,0x2D,0x08,0xAF,0x26,0x20,0x00,0xBC,0x00,0x44,
0x10,0x05,0x60,0x00,0x77,0x08,0xAD,0x00,0x21,0x00,0x28,0x0E,0xF0,0x39,0x20,0x00,0xB1,0x00,0x21,0x00,0xED,
0x10,0x05,0x70,0x00,0x27,0x0E,0x20,0x00,0xB0,0x00,0x0F,0x39,0xB1,0x04,0xB0,0x06,0x03,0x10,0xB0,0x0D,0xF3,
0x10,0x05,0x80,0x00,0xB1,0x0D,0x03,0x10,0xB0,0x0D,0xB1,0x0D,0x20,0x30,0xB2,0x00,0xB3,0x01,0xB4,0x01,0xB4,
0x10,0x05,0x90,0x00,0xB5,0x01,0xB6,0x01,0x20,0x00,0x3D,0x08,0x31,0x02,0x03,0x1D,0xD1,0x2A,0x2C,0x08,0x07,
0x10,0x05,0xA0,0x00,0x30,0x02,0x03,0x1C,0xF2,0x2A,0x20,0x00,0x2C,0x08,0xB0,0x02,0x3D,0x08,0x03,0x1C,0x74,
0x10,0x05,0xB0,0x00,0x3D,0x0F,0xB1,0x02,0x2E,0x08,0xB7,0x00,0x2F,0x08,0xB8,0x00,0x00,0x30,0xB8,0x1B,0x5D,
0x10,0x05,0xC0,0x00,0xFF,0x30,0xBA,0x00,0xB9,0x00,0x37,0x08,0xB2,0x07,0x38,0x08,0x03,0x18,0x38,0x0F,0xEF,
0x10,0x05,0xD0,0x00,0xB3,0x07,0x39,0x08,0x03,0x18,0x39,0x0F,0xB4,0x07,0x3A,0x08,0x03,0x18,0x3A,0x0F,0x5C,
0x10,0x05,0xE0,0x00,0xB5,0x07,0x0A,0x2B,0x20,0x00,0x2D,0x08,0xB7,0x00,0x3C,0x08,0xB8,0x00,0x00,0x30,0xE2,
0x10,0x05,0xF0,0x00,0xB8,0x1B,0xFF,0x30,0xBA,0x00,0xB9,0x00,0x37,0x08,0xB2,0x07,0x38,0x08,0x03,0x18,0x33,
0x10,0x06,0x00,0x00,0x38,0x0F,0xB3,0x07,0x39,0x08,0x03,0x18,0x39,0x0F,0xB4,0x07,0x3A,0x08,0x03,0x18,0x2D,
0x10,0x06,0x10,0x00,0x3A,0x0F,0xB5,0x07,0x20,0x00,0xB6,0x0A,0x40,0x30,0x36,0x02,0x03,0x1C,0xCA,0x2A,0x3A,
0x10,0x06,0x20,0x00,0x32,0x0E,0x0F,0x39,0xB2,0x00,0x33,0x0E,0xB3,0x00,0xF0,0x39,0xB2,0x04,0xB3,0x06,0x04,
0x10,0x06,0x30,0x00,0x34,0x0E,0xB4,0x00,0xF0,0x39,0xB3,0x04,0xB4,0x06,0x35,0x0E,0xB5,0x00,0xF0,0x39,0x09,
0x10,0x06,0x40,0x00,0xB4,0x04,0xB5,0x06,0xF0,0x30,0xB5,0x19,0xB5,0x04,0x03,0x10,0xB5,0x1B,0x03,0x14,0x96,
0x10,0x06,0x50,0x00,0xB5,0x0C,0xB4,0x0C,0xB3,0x0C,0xB2,0x0C,0x03,0x10,0xB5,0x1B,0x03,0x14,0xB5,0x0C,0xE1,
0x10,0x06,0x60,0x00,0xB4,0x0C,0xB3,0x0C,0xB2,0x0C,0x32,0x08,0x20,0x00,0xEE,0x00,0x20,0x00,0x33,0x08,0xAA,
0x10,0x06,0x70,0x00,0x20,0x00,0xEF,0x00,0x08,0x30,0x20,0x00,0xBE,0x00,0xBF,0x01,0x44,0x2B,0x21,0x00,0x05,
0x10,0x06,0x80,0x00,0x30,0x17,0x20,0x00,0xBE,0x01,0xBF,0x01,0x75,0x30,0xAF,0x26,0x20,0x00,0xC3,0x00,0x27,
0x10,0x06,0x90,0x00,0x77,0x08,0xC2,0x00,0x43,0x04,0x03,0x19,0xAC,0x2B,0x20,0x00,0x6E,0x08,0x21,0x00,0x28,
0x10,0x06,0xA0,0x00,0x25,0x02,0x20,0x00,0xC4,0x00,0x20,0x00,0x6F,0x08,0x03,0x1C,0x6F,0x0A,0x21,0x00,0xEF,
0x10,0x06,0xB0,0x00,0x26,0x02,0x20,0x00,0xC5,0x00,0x03,0x14,0xC5,0x1F,0x03,0x10,0x03,0x1C,0x65,0x2B,0x70,
0x10,0x06,0xC0,0x00,0xC4,0x09,0xC5,0x09,0xC4,0x0A,0x03,0x19,0xC5,0x0A,0x03,0x14,0x20,0x00,0xC3,0x1F,0xBD,
0x10,0x06,0xD0,0x00,0x03,0x10,0x03,0x1C,0x8E,0x2B,0xC2,0x09,0xC3,0x09,0xC2,0x0A,0x03,0x19,0xC3,0x0A,0xE3,
0x10,0x06,0xE0,0x00,0x43,0x08,0x80,0x3E,0xC8,0x00,0x45,0x08,0x80,0x3E,0x48,0x02,0x03,0x1D,0x7A,0x2B,0x1F,
0x10,0x06,0xF0,0x00,0x44,0x08,0x42,0x02,0x20,0x00,0xC6,0x01,0x03,0x1C,0x46,0x14,0x46,0x08,0x00,0x30,0x8C,
0x10,0x07,0x00,0x00,0x03,0x19,0x01,0x30,0xC7,0x00,0xC6,0x00,0x46,0x0C,0x03,0x18,0x89,0x2B,0x22,0x00,0xCC,
0x10,0x07,0x10,0x00,0x0C,0x10,0x03,0x1C,0x8D,0x2B,0x22,0x00,0x0C,0x14,0xAC,0x2B,0x20,0x00,0x45,0x08,0x60,
0x10,0x07,0x20,0x00,0x80,0x3E,0xC8,0x00,0x43,0x08,0x80,0x3E,0x48,0x02,0x03,0x1D,0x99,0x2B,0x42,0x08,0xC2,
0x10,0x07,0x30,0x00,0x44,0x02,0x20,0x00,0xC6,0x01,0x03,0x1C,0x46,0x14,0x46,0x08,0x00,0x30,0x03,0x19,0x79,
0x10,0x07,0x40,0x00,0x01,0x30,0xC2,0x00,0xC6,0x00,0x46,0x0C,0x03,0x18,0xA8,0x2B,0x22,0x00,0x0C,0x10,0x72,
0x10,0x07,0x50,0x00,0x03,0x1C,0xAC,0x2B,0x22,0x00,0x0C,0x14,0x21,0x00,0x29,0x08,0x2A,0x04,0x03,0x19,0xC5,
0x10,0x07,0x60,0x00,0xB5,0x2B,0xFF,0x30,0xA9,0x07,0x03,0x1C,0xAA,0x03,0x21,0x00,0x2B,0x08,0x2C,0x04,0x7A,
0x10,0x07,0x70,0x00,0x03,0x19,0xBE,0x2B,0xFF,0x30,0xAB,0x07,0x03,0x1C,0xAC,0x03,0x20,0x00,0xA7,0x01,0xFD,
0x10,0x07,0x80,0x00,0x22,0x00,0x0C,0x1E,0xC5,0x2B,0x20,0x00,0xA7,0x0A,0x20,0x00,0x27,0x08,0x00,0x30,0xDD,
0x10,0x07,0x90,0x00,0x03,0x19,0x01,0x30,0xA9,0x00,0xA7,0x00,0x27,0x0C,0x03,0x18,0xD1,0x2B,0x21,0x00,0x51,
0x10,0x07,0xA0,0x00,0xB0,0x13,0x03,0x1C,0xD5,0x2B,0x21,0x00,0xB0,0x17,0x20,0x00,0xA7,0x01,0x22,0x00,0x95,
0x10,0x07,0xB0,0x00,0x8C,0x1E,0xDC,0x2B,0x20,0x00,0xA7,0x0A,0x20,0x00,0x27,0x08,0x00,0x30,0x03,0x19,0x1C,
0x10,0x07,0xC0,0x00,0x01,0x30,0xA9,0x00,0xA7,0x00,0x27,0x0C,0x03,0x18,0xE8,0x2B,0x21,0x00,0xB0,0x11,0x65,
0x10,0x07,0xD0,0x00,0x03,0x1C,0xEC,0x2B,0x21,0x00,0xB0,0x15,0x22,0x00,0x0C,0x1E,0x01,0x2C,0x20,0x00,0x64,
0x10,0x07,0xE0,0x00,0x6F,0x08,0x80,0x3E,0x20,0x00,0xA8,0x00,0x21,0x00,0x26,0x08,0x80,0x3E,0x20,0x00,0xDF,
0x10,0x07,0xF0,0x00,0x28,0x02,0x03,0x1D,0xFF,0x2B,0x21,0x00,0x25,0x08,0x20,0x00,0x6E,0x02,0x03,0x18,0x8C,
0x10,0x08,0x00,0x00,0x16,0x2C,0x22,0x00,0x8C,0x1E,0x74,0x2C,0x21,0x00,0x26,0x08,0x80,0x3E,0x20,0x00,0x0D,
0x10,0x08,0x10,0x00,0xA8,0x00,0x20,0x00,0x6F,0x08,0x80,0x3E,0x20,0x00,0x28,0x02,0x03,0x1D,0x14,0x2C,0x31,
0x10,0x08,0x20,0x00,0x20,0x00,0x6E,0x08,0x21,0x00,0x25,0x02,0x03,0x1C,0x74,0x2C,0x78,0x30,0xAF,0x26,0xAE,
0x10,0x08,0x30,0x00,0x20,0x00,0xA9,0x00,0x77,0x08,0xA7,0x00,0x29,0x0E,0xF0,0x39,0x21,0x00,0xAA,0x00,0x9E,
0x10,0x08,0x40,0x00,0x20,0x00,0x27,0x0E,0x21,0x00,0xA9,0x00,0x0F,0x39,0xAA,0x04,0xA9,0x06,0x03,0x10,0xD1,
0x10,0x08,0x50,0x00,0xA9,0x0D,0xAA,0x0D,0x03,0x10,0xA9,0x0D,0xAA,0x0D,0x29,0x0E,0x0F,0x39,0x20,0x00,0x0C,
0x10,0x08,0x60,0x00,0xA7,0x00,0x21,0x00,0x2A,0x0E,0x20,0x00,0xA9,0x00,0xF0,0x39,0xA7,0x04,0xA9,0x06,0x3C,
0x10,0x08,0x70,0x00,0x27,0x08,0x21,0x00,0xA9,0x02,0x20,0x00,0x29,0x08,0x03,0x1C,0x29,0x0A,0x03,0x19,0xBE,
0x10,0x08,0x80,0x00,0x43,0x2C,0x21,0x00,0xAA,0x02,0x79,0x30,0xAF,0x26,0x20,0x00,0xA9,0x00,0x77,0x08,0x66,
0x10,0x08,0x90,0x00,0xA7,0x00,0x29,0x0E,0xF0,0x39,0x21,0x00,0xAC,0x00,0x20,0x00,0x27,0x0E,0x21,0x00,0x0E,
0x10,0x08,0xA0,0x00,0xAB,0x00,0x0F,0x39,0xAC,0x04,0xAB,0x06,0x03,0x10,0xAB,0x0D,0xAC,0x0D,0x03,0x10,0x5D,
0x10,0x08,0xB0,0x00,0xAB,0x0D,0xAC,0x0D,0x2B,0x0E,0x0F,0x39,0x20,0x00,0xA7,0x00,0x21,0x00,0x2C,0x0E,0x24,
0x10,0x08,0xC0,0x00,0x20,0x00,0xA9,0x00,0xF0,0x39,0xA7,0x04,0xA9,0x06,0x27,0x08,0x21,0x00,0xAB,0x02,0xDF,
0x10,0x08,0xD0,0x00,0x20,0x00,0x29,0x08,0x03,0x1C,0x29,0x0A,0x03,0x19,0x70,0x2C,0x21,0x00,0xAC,0x02,0xEE,
0x10,0x08,0xE0,0x00,0x22,0x00,0x0C,0x12,0x8C,0x12,0xF6,0x2C,0x22,0x00,0x0C,0x1A,0xF6,0x2C,0x8C,0x1A,0xF8,
0x10,0x08,0xF0,0x00,0xF6,0x2C,0x73,0x30,0xAF,0x26,0x20,0x00,0xA9,0x00,0x77,0x08,0xA7,0x00,0x20,0x00,0x4F,
0x10,0x09,0x00,0x00,0x6E,0x07,0x20,0x00,0xA8,0x00,0x20,0x00,0x6F,0x08,0x20,0x00,0xAB,0x00,0x29,0x08,0x17,
0x10,0x09,0x10,0x00,0x03,0x18,0x29,0x0F,0xAB,0x07,0x2B,0x08,0x80,0x3E,0xAA,0x00,0x21,0x00,0x26,0x08,0xE8,
0x10,0x09,0x20,0x00,0x80,0x3E,0x20,0x00,0x2A,0x02,0x03,0x1D,0x99,0x2C,0x21,0x00,0x25,0x08,0x20,0x00,0x6A,
0x10,0x09,0x30,0x00,0x28,0x02,0x03,0x18,0xBB,0x2C,0x21,0x00,0x29,0x08,0x2A,0x04,0x03,0x19,0xB8,0x2C,0x0B,
0x10,0x09,0x40,0x00,0x20,0x00,0xA8,0x01,0x21,0x00,0xB0,0x1F,0xA7,0x2C,0x20,0x00,0xA8,0x0A,0x21,0x00,0x28,
0x10,0x09,0x50,0x00,0x29,0x08,0x01,0x39,0x20,0x00,0xAB,0x00,0xAA,0x00,0xA8,0x06,0x28,0x0C,0x03,0x18,0xBA,
0x10,0x09,0x60,0x00,0xB3,0x2C,0x21,0x00,0xB0,0x13,0x03,0x1C,0xB7,0x2C,0x21,0x00,0xB0,0x17,0xF6,0x2C,0xB8,
0x10,0x09,0x70,0x00,0x22,0x00,0x0C,0x16,0xF6,0x2C,0x20,0x00,0x27,0x08,0x20,0x00,0x6E,0x02,0x20,0x00,0x12,
0x10,0x09,0x80,0x00,0xA7,0x00,0x29,0x08,0x03,0x1C,0x29,0x0A,0x20,0x00,0x6F,0x02,0x20,0x00,0xA9,0x00,0xE3,
0x10,0x09,0x90,0x00,0x21,0x00,0x26,0x08,0x80,0x3E,0x20,0x00,0xAC,0x00,0x29,0x08,0x80,0x3E,0x2C,0x02,0x61,
0x10,0x09,0xA0,0x00,0x03,0x1D,0xD5,0x2C,0x27,0x08,0x21,0x00,0x25,0x02,0x03,0x18,0xF6,0x2C,0x21,0x00,0x51,
0x10,0x09,0xB0,0x00,0x2B,0x08,0x2C,0x04,0x03,0x19,0xF4,0x2C,0x20,0x00,0xA7,0x01,0x21,0x00,0xB0,0x1D,0xE2,
0x10,0x09,0xC0,0x00,0xE3,0x2C,0x20,0x00,0xA7,0x0A,0x21,0x00,0x2B,0x08,0x01,0x39,0x20,0x00,0xA9,0x00,0xF0,
0x10,0x09,0xD0,0x00,0xA8,0x00,0xA7,0x06,0x27,0x0C,0x03,0x18,0xEF,0x2C,0x21,0x00,0xB0,0x11,0x03,0x1C,0x58,
0x10,0x09,0xE0,0x00,0xF3,0x2C,0x21,0x00,0xB0,0x15,0xF6,0x2C,0x22,0x00,0x8C,0x16,0x20,0x00,0x99,0x1F,0x44,
0x10,0x09,0xF0,0x00,0x27,0x2D,0x22,0x00,0x0C,0x1C,0x09,0x2D,0x23,0x00,0x1D,0x1F,0x09,0x2D,0x61,0x30,0xFD,
0x10,0x0A,0x00,0x00,0x21,0x00,0xAD,0x00,0x11,0x30,0x21,0x00,0xAE,0x00,0xFF,0x30,0x21,0x00,0xAF,0x00,0x09,
0x10,0x0A,0x10,0x00,0x10,0x2D,0x01,0x30,0xF6,0x00,0x21,0x00,0x25,0x08,0xF7,0x00,0x26,0x08,0x2C,0x25,0xAE,
0x10,0x0A,0x20,0x00,0x20,0x00,0xC2,0x01,0x23,0x00,0x1D,0x1F,0x17,0x2D,0x20,0x00,0xC2,0x0A,0x20,0x00,0x34,
0x10,0x0A,0x30,0x00,0x42,0x08,0x00,0x30,0x03,0x19,0x01,0x30,0xC4,0x00,0xC2,0x00,0x42,0x0C,0x03,0x18,0x00,
0x10,0x0A,0x40,0x00,0x23,0x2D,0x23,0x00,0x1D,0x13,0x03,0x1C,0x27,0x2D,0x23,0x00,0x1D,0x17,0x20,0x00,0x19,
0x10,0x0A,0x50,0x00,0x93,0x10,0x64,0x00,0x8A,0x28,0x08,0x00,0x20,0x00,0xA9,0x00,0x77,0x08,0xA8,0x00,0xE5,
0x10,0x0A,0x60,0x00,0x76,0x08,0xAB,0x00,0x03,0x14,0xA9,0x1F,0x03,0x10,0x03,0x1C,0x40,0x2D,0x21,0x00,0xBE,
0x10,0x0A,0x70,0x00,0x30,0x12,0x20,0x00,0xA8,0x09,0xA9,0x09,0xA8,0x0A,0x03,0x19,0xA9,0x0A,0x42,0x2D,0xC1,
0x10,0x0A,0x80,0x00,0x21,0x00,0x30,0x16,0x20,0x00,0x2B,0x08,0x01,0x3A,0x03,0x1D,0x4B,0x2D,0x21,0x00,0xB8,
0x10,0x0A,0x90,0x00,0xB0,0x12,0x30,0x11,0x4E,0x2D,0x21,0x00,0xB0,0x16,0x30,0x15,0x20,0x00,0x29,0x08,0x5B,
0x10,0x0A,0xA0,0x00,0x80,0x3E,0x7D,0x3E,0x03,0x1D,0x56,0x2D,0xE8,0x30,0x28,0x02,0x03,0x1C,0x66,0x2D,0x36,
0x10,0x0A,0xB0,0x00,0x20,0x00,0x28,0x08,0xAA,0x00,0x29,0x08,0xAC,0x00,0x2A,0x08,0xF7,0x00,0x2C,0x08,0x02,
0x10,0x0A,0xC0,0x00,0x09,0x26,0x20,0x00,0xA9,0x00,0x77,0x08,0xA8,0x00,0xAB,0x01,0x20,0x00,0x29,0x08,0x0A,
0x10,0x0A,0xD0,0x00,0x80,0x3E,0x80,0x3E,0x03,0x1D,0x6E,0x2D,0x64,0x30,0x28,0x02,0x03,0x1C,0xA2,0x2D,0x33,
0x10,0x0A,0xE0,0x00,0x20,0x00,0x28,0x08,0xAA,0x00,0x29,0x08,0xAC,0x00,0xAD,0x01,0x20,0x00,0x2C,0x08,0x2D,
0x10,0x0A,0xF0,0x00,0x80,0x3E,0x80,0x3E,0x03,0x1D,0x7E,0x2D,0x64,0x30,0x2A,0x02,0x03,0x1C,0x87,0x2D,0x1C,
0x10,0x0B,0x00,0x00,0x9C,0x30,0x20,0x00,0xAA,0x07,0x03,0x1C,0xAC,0x03,0xAD,0x0A,0x76,0x2D,0x20,0x00,0x00,
0x10,0x0B,0x10,0x00,0x2A,0x08,0xA8,0x00,0x2C,0x08,0xA9,0x00,0x0F,0x30,0xAD,0x05,0x2D,0x08,0xE8,0x3E,0xD2,
0x10,0x0B,0x20,0x00,0xAD,0x00,0x8D,0x30,0x03,0x18,0x01,0x3E,0xAA,0x00,0x2D,0x08,0xF6,0x00,0x2A,0x08,0xFA,
0x10,0x0B,0x30,0x00,0xF7,0x00,0x80,0x30,0x8D,0x31,0x91,0x25,0x85,0x31,0x20,0x00,0xAC,0x00,0x21,0x00,0xF7,
0x10,0x0B,0x40,0x00,0xAD,0x00,0xA5,0x2D,0xFF,0x30,0x21,0x00,0xAD,0x00,0x20,0x00,0x29,0x08,0x80,0x3E,0x1A,
0x10,0x0B,0x50,0x00,0x80,0x3E,0x03,0x1D,0xAD,0x2D,0x0A,0x30,0x28,0x02,0x03,0x18,0xBA,0x2D,0x20,0x00,0x57,
0x10,0x0B,0x60,0x00,0x2B,0x08,0x03,0x1D,0xBA,0x2D,0x21,0x00,0x2D,0x08,0x20,0x00,0xAA,0x00,0xFF,0x3A,0xF2,
0x10,0x0B,0x70,0x00,0x03,0x19,0xF0,0x2D,0x20,0x00,0x28,0x08,0xAA,0x00,0x29,0x08,0xAC,0x00,0xAD,0x01,0xB7,
0x10,0x0B,0x80,0x00,0x20,0x00,0x2C,0x08,0x80,0x3E,0x80,0x3E,0x03,0x1D,0xC8,0x2D,0x0A,0x30,0x2A,0x02,0x1A,
0x10,0x0B,0x90,0x00,0x03,0x1C,0xD1,0x2D,0xF6,0x30,0x20,0x00,0xAA,0x07,0x03,0x1C,0xAC,0x03,0xAD,0x0A,0xBC,
0x10,0x0B,0xA0,0x00,0xC0,0x2D,0x20,0x00,0x2A,0x08,0xA8,0x00,0x2C,0x08,0xA9,0x00,0x2D,0x08,0xE8,0x3E,0x26,
0x10,0x0B,0xB0,0x00,0xAD,0x00,0x8D,0x30,0x03,0x18,0x01,0x3E,0xAA,0x00,0x2D,0x08,0xF6,0x00,0x2A,0x08,0x6A,
0x10,0x0B,0xC0,0x00,0xF7,0x00,0x80,0x30,0x8D,0x31,0x91,0x25,0x85,0x31,0x20,0x00,0xAC,0x00,0x21,0x00,0x67,
0x10,0x0B,0xD0,0x00,0xAE,0x00,0x20,0x00,0x2B,0x08,0x03,0x19,0xF3,0x2D,0x21,0x00,0x2E,0x10,0xF3,0x2D,0x59,
0x10,0x0B,0xE0,0x00,0xFF,0x30,0x21,0x00,0xAE,0x00,0x20,0x00,0x28,0x08,0xAB,0x00,0xE8,0x3E,0xA8,0x00,0x3E,
0x10,0x0B,0xF0,0x00,0x8D,0x30,0x03,0x18,0x01,0x3E,0xA9,0x00,0x28,0x08,0xF6,0x00,0x29,0x08,0xF7,0x00,0xE7,
0x10,0x0C,0x00,0x00,0x80,0x30,0x8D,0x31,0x91,0x25,0x86,0x31,0x20,0x00,0xAB,0x00,0x21,0x00,0xAF,0x00,0x6E,
0x10,0x0C,0x10,0x00,0x08,0x00,0x20,0x00,0xA0,0x00,0x77,0x08,0xA1,0x00,0x03,0x10,0x20,0x0C,0xA2,0x00,0x0B,
0x10,0x0C,0x20,0x00,0x21,0x0C,0xA3,0x00,0x03,0x10,0x20,0x0C,0xA4,0x00,0x21,0x0C,0xA6,0x00,0x03,0x10,0x2B,
0x10,0x0C,0x30,0x00,0xA4,0x0C,0xA6,0x0C,0x26,0x08,0xA3,0x07,0x24,0x08,0x03,0x18,0x24,0x0F,0xA2,0x07,0x57,
0x10,0x0C,0x40,0x00,0x23,0x0E,0x0F,0x39,0xA6,0x00,0x22,0x0E,0xA4,0x00,0xF0,0x39,0xA6,0x04,0xA4,0x06,0x34,
0x10,0x0C,0x50,0x00,0x26,0x08,0xA3,0x07,0x24,0x08,0x03,0x18,0x24,0x0F,0xA2,0x07,0x22,0x08,0xA6,0x00,0xC9,
0x10,0x0C,0x60,0x00,0xA4,0x01,0x26,0x08,0xA3,0x07,0x24,0x08,0x03,0x18,0x24,0x0F,0xA2,0x07,0x03,0x10,0xD1,
0x10,0x0C,0x70,0x00,0xA2,0x0C,0xA3,0x0C,0x03,0x10,0xA2,0x0C,0xA3,0x0C,0x03,0x10,0xA2,0x0C,0xA3,0x0C,0x37,
0x10,0x0C,0x80,0x00,0x03,0x10,0x23,0x0D,0xA6,0x00,0x22,0x0D,0xA4,0x00,0x03,0x10,0xA6,0x0D,0xA4,0x0D,0x31,
0x10,0x0C,0x90,0x00,0x03,0x10,0xA6,0x0D,0xA4,0x0D,0x03,0x10,0x23,0x0D,0xA5,0x00,0x22,0x0D,0xA7,0x00,0x1F,
0x10,0x0C,0xA0,0x00,0x25,0x08,0xA6,0x07,0x27,0x08,0x03,0x18,0x27,0x0F,0xA4,0x07,0x26,0x08,0xA1,0x02,0x6E,
0x10,0x0C,0xB0,0x00,0x24,0x08,0x03,0x1C,0x24,0x0F,0xA0,0x02,0x06,0x30,0xA1,0x07,0x03,0x18,0xA0,0x0A,0x71,
0x10,0x0C,0xC0,0x00,0x21,0x0E,0x0F,0x39,0xA6,0x00,0x20,0x0E,0xA4,0x00,0xF0,0x39,0xA6,0x04,0xA4,0x06,0xB8,
0x10,0x0C,0xD0,0x00,0x26,0x08,0xA3,0x07,0x24,0x08,0x03,0x18,0x24,0x0F,0xA2,0x07,0x23,0x08,0xF7,0x00,0xF7,
0x10,0x0C,0xE0,0x00,0x22,0x08,0x08,0x00,0x20,0x00,0xA7,0x00,0x77,0x08,0xA9,0x00,0x76,0x08,0xA8,0x00,0xBD,
0x10,0x0C,0xF0,0x00,0x27,0x08,0xAF,0x26,0x20,0x00,0xAB,0x00,0x77,0x08,0xAA,0x00,0x28,0x06,0x03,0x1D,0xAE,
0x10,0x0D,0x00,0x00,0x85,0x2E,0x2B,0x08,0x29,0x06,0x03,0x19,0xAE,0x2E,0x03,0x10,0x20,0x00,0x27,0x0D,0x6F,
0x10,0x0D,0x10,0x00,0xAA,0x00,0x20,0x00,0x2A,0x08,0x23,0x00,0x91,0x00,0x20,0x00,0x28,0x08,0x23,0x00,0xB0,
0x10,0x0D,0x20,0x00,0x93,0x00,0x15,0x13,0x95,0x13,0x15,0x15,0x20,0x00,0x8B,0x13,0x55,0x30,0x23,0x00,0xD0,
0x10,0x0D,0x30,0x00,0x96,0x00,0xAA,0x30,0x96,0x00,0x95,0x14,0x20,0x00,0x8B,0x17,0x23,0x00,0x15,0x11,0xF9,
0x10,0x0D,0x40,0x00,0x23,0x00,0x95,0x18,0xA0,0x2E,0x20,0x00,0x12,0x12,0x20,0x00,0x29,0x08,0xA8,0x00,0xC8,
0x10,0x0D,0x50,0x00,0xA9,0x01,0x2A,0x08,0xA7,0x00,0xAA,0x0A,0x27,0x1C,0x89,0x2E,0x08,0x00,0x20,0x00,0x3A,
0x10,0x0D,0x60,0x00,0xA0,0x00,0xA1,0x01,0xA2,0x01,0x03,0x10,0x20,0x0D,0xA3,0x00,0x20,0x00,0x23,0x08,0x70,
0x10,0x0D,0x70,0x00,0x23,0x00,0x91,0x00,0x15,0x13,0x95,0x13,0x15,0x14,0x13,0x08,0x20,0x00,0xA0,0x00,0xEB,
0x10,0x0D,0x80,0x00,0xA4,0x01,0x20,0x08,0xA6,0x00,0xA5,0x01,0x22,0x08,0xA0,0x00,0xA4,0x01,0x20,0x08,0xB3,
0x10,0x0D,0x90,0x00,0x25,0x04,0xA1,0x00,0x24,0x08,0x26,0x04,0xA2,0x00,0x23,0x08,0xA0,0x00,0xA3,0x0A,0x19,
0x10,0x0D,0xA0,0x00,0x20,0x1C,0xB6,0x2E,0x21,0x08,0xF7,0x00,0x22,0x08,0x08,0x00,0x56,0x30,0xF6,0x00,0x55,
0x10,0x0D,0xB0,0x00,0x87,0x30,0xF7,0x00,0x80,0x30,0x8D,0x31,0xA3,0x25,0x86,0x31,0x20,0x00,0xE3,0x00,0x95,
0x10,0x0D,0xC0,0x00,0x77,0x08,0xE2,0x00,0x58,0x30,0xE4,0x00,0x87,0x30,0xE5,0x00,0x20,0x00,0x62,0x08,0x30,
0x10,0x0D,0xD0,0x00,0xE6,0x00,0x63,0x08,0xE7,0x00,0xFF,0x30,0xE2,0x07,0x03,0x1C,0xE3,0x03,0x66,0x08,0x50,
0x10,0x0D,0xE0,0x00,0x67,0x04,0x03,0x19,0x53,0x2F,0x04,0x30,0x64,0x07,0xE6,0x00,0xE7,0x01,0xE7,0x0D,0x99,
0x10,0x0D,0xF0,0x00,0x65,0x08,0xE7,0x07,0x66,0x08,0xF6,0x00,0x67,0x08,0xF7,0x00,0x80,0x30,0x8D,0x31,0x60,
0x10,0x0E,0x00,0x00,0xA3,0x25,0x87,0x31,0x20,0x00,0xE9,0x00,0x77,0x08,0xE8,0x00,0x64,0x08,0xF6,0x00,0x90,
0x10,0x0E,0x10,0x00,0x65,0x08,0xF7,0x00,0x80,0x30,0x8D,0x31,0xA3,0x25,0x87,0x31,0x20,0x00,0xEB,0x00,0x75,
0x10,0x0E,0x20,0x00,0xE7,0x00,0x77,0x08,0xEA,0x00,0xE6,0x00,0x02,0x30,0x64,0x07,0xE6,0x00,0xE7,0x01,0x21,
0x10,0x0E,0x30,0x00,0xE7,0x0D,0x65,0x08,0xE7,0x07,0x66,0x08,0xF6,0x00,0x67,0x08,0xF7,0x00,0x80,0x30,0xE9,
0x10,0x0E,0x40,0x00,0x8D,0x31,0xA3,0x25,0x87,0x31,0x20,0x00,0xE7,0x00,0xED,0x00,0x77,0x08,0xE6,0x00,0x0B,
0x10,0x0E,0x50,0x00,0xEC,0x00,0x20,0x00,0x68,0x08,0xEC,0x00,0x69,0x08,0xED,0x00,0xFF,0x30,0xE8,0x07,0xAE,
0x10,0x0E,0x60,0x00,0x03,0x1C,0xE9,0x03,0x6C,0x08,0x6D,0x04,0x03,0x19,0x4D,0x2F,0x6A,0x08,0xF6,0x00,0x92,
0x10,0x0E,0x70,0x00,0x6B,0x08,0xF7,0x00,0x80,0x30,0x8D,0x31,0x91,0x25,0x87,0x31,0x20,0x00,0xEC,0x00,0x20,
0x10,0x0E,0x80,0x00,0x66,0x08,0x84,0x00,0x67,0x08,0x85,0x00,0x6C,0x08,0x80,0x00,0xEA,0x0A,0x03,0x19,0x78,
0x10,0x0E,0x90,0x00,0xEB,0x0A,0xE6,0x0A,0x03,0x19,0xE7,0x0A,0x29,0x2F,0x06,0x30,0x20,0x00,0xE4,0x07,0xC7,
0x10,0x0E,0xA0,0x00,0x03,0x18,0xE5,0x0A,0xE6,0x2E,0x80,0x31,0x42,0x28,0x08,0x00,0x0C,0x34,0x00,0x34,0x8D,
0x10,0x0E,0xB0,0x00,0x03,0x34,0x00,0x34,0xB0,0x34,0x00,0x34,0x01,0x34,0x00,0x34,0xFF,0x34,0x07,0x34,0xD8,
0x10,0x0E,0xC0,0x00,0xB1,0x34,0x00,0x34,0x01,0x34,0x00,0x34,0xF2,0x34,0x0D,0x34,0xA5,0x34,0x00,0x34,0x2C,
0x10,0x0E,0xD0,0x00,0x02,0x34,0x00,0x34,0xF4,0x34,0x0D,0x34,0xA7,0x34,0x00,0x34,0x02,0x34,0x00,0x34,0xC6,
0x10,0x0E,0xE0,0x00,0xF6,0x34,0x0D,0x34,0xA9,0x34,0x00,0x34,0x02,0x34,0x00,0x34,0xF8,0x34,0x0D,0x34,0xAF,
0x10,0x0E,0xF0,0x00,0xAB,0x34,0x00,0x34,0x02,0x34,0x00,0x34,0xFA,0x34,0x0D,0x34,0xB2,0x34,0x00,0x34,0xEC,
0x10,0x0F,0x00,0x00,0x01,0x34,0x00,0x34,0xFB,0x34,0x0D,0x34,0xB3,0x34,0x00,0x34,0x01,0x34,0x00,0x34,0x84,
0x10,0x0F,0x10,0x00,0xFC,0x34,0x0D,0x34,0xB4,0x34,0x00,0x34,0x01,0x34,0x00,0x34,0xFD,0x34,0x0D,0x34,0x69,
0x10,0x0F,0x20,0x00,0xB5,0x34,0x00,0x34,0x01,0x34,0x00,0x34,0xFE,0x34,0x0D,0x34,0xB6,0x34,0x00,0x34,0xAA,
0x10,0x0F,0x30,0x00,0x01,0x34,0x00,0x34,0xFF,0x34,0x0D,0x34,0xB7,0x34,0x00,0x34,0x01,0x34,0x00,0x34,0x4C,
0x10,0x0F,0x40,0x00,0x00,0x34,0x00,0x34,0x1A,0x34,0xFE,0x34,0x9D,0x34,0xFE,0x34,0xF2,0x34,0xFE,0x34,0x5E,
0x10,0x0F,0x50,0x00,0x33,0x34,0xFF,0x34,0x69,0x34,0xFF,0x34,0x98,0x34,0xFF,0x34,0xC3,0x34,0xFF,0x34,0xFE,
0x10,0x0F,0x60,0x00,0xEB,0x34,0xFF,0x34,0x10,0x34,0x00,0x34,0x33,0x34,0x00,0x34,0x55,0x34,0x00,0x34,0x5F,
0x10,0x0F,0x70,0x00,0x77,0x34,0x00,0x34,0x98,0x34,0x00,0x34,0xB8,0x34,0x00,0x34,0xD9,0x34,0x00,0x34,0x31,
0x10,0x0F,0x80,0x00,0xFA,0x34,0x00,0x34,0x1C,0x34,0x01,0x34,0x3E,0x34,0x01,0x34,0x62,0x34,0x01,0x34,0x08,
0x10,0x0F,0x90,0x00,0x87,0x34,0x01,0x34,0xAF,0x34,0x01,0x34,0xD9,0x34,0x01,0x34,0x07,0x34,0x02,0x34,0x96,
0x10,0x0F,0xA0,0x00,0x39,0x34,0x02,0x34,0x70,0x34,0x02,0x34,0xB0,0x34,0x02,0x34,0xFB,0x34,0x02,0x34,0x45,
0x10,0x0F,0xB0,0x00,0x58,0x34,0x03,0x34,0xD1,0x34,0x03,0x34,0x82,0x34,0x04,0x34,0xCA,0x34,0x05,0x34,0x0D,
0x10,0x0F,0xC0,0x00,0x21,0x00,0xA0,0x00,0x77,0x08,0xA1,0x00,0xA2,0x01,0x08,0x30,0xA3,0x00,0x21,0x00,0xA1,