Subversion Repositories svnkaklik

Compare Revisions

Regard whitespace Rev 657 → Rev 658

/programy/C/PIC_C/mereni/inertial/main.c
55,6 → 55,7
while(!usb_cdc_connected());
time=0;
set_timer0(0);
printf(usb_cdc_putc,"time[s] X Xerr Y Yerr Z Zerr \n\r");
 
while(usb_cdc_connected()) // pockej nez se pripoji seriovy port PC
/programy/C/PIC_C/mereni/inertial/main.hex
388,7 → 388,7
:10181000026A036A0001000CB60E006E036A026AD7
:10182000016A0601C251C311C411C51102E1006A67
:101830000DD0D89001BE09D0C237C337C437C537E1
:10184000033602360136002EF4D7019E0001E7EF81
:10184000033602360136002EF4D7019E0001E9EF7F
:1018500011F00601E451D8B471D0006EE851D8B44B
:101860006DD0002604E3810E002668E204D07F0ECE
:10187000005E64E363E0E5C6ECF6E951EC1BE58F3E
511,103 → 511,104
:101FC00000D0B450A19CB56AF28AC00EF212C15082
:101FD000C00B1C09C16EC090C082C084C08EC2807C
:101FE000B4EF09F080A1FED71C6A1B6A1A6A196A4D
:101FF0000301B16BB15100010FEC01F00301B12BF2
:10200000006EE8CFDBF60001EAEC09F0250E0301D3
:10201000B15DF0E1000180A1E0D20301B06BB051ED
:102020006308D8A06BD1000E016EC250C30B011023
:10203000C26E130E006E002EFED700D0186AF2BEDC
:10204000188EF29E0701496BB0C348F74B6B040E24
:102050004A6F00015DEC01F018BEF28E02C003F081
:102060000150840FE96E000E0220EA6EC282C2B2F5
:10207000FED7C4CFD9F6C3CFD8F6000106EC0AF0DC
:1020800000C0EFFF01C0ECFF02C0ECFF03C0ECFF9B
:10209000186AF2BE188EF29E0701496BB0C348F76A
:1020A0004B6B040E4A6F00015DEC01F018BEF28E1E
:1020B00002C003F00150840FE96E000E0220EA6EA8
:1020C000EFCF00F0ECCF01F0ECCF02F0ECCF03F05B
:1020D000EACFB2F3E9CFB1F3D892A7C3EDF6A6C326
:1020E000ECF6A5C3EBF6A4C3EAF603C0F1F602C012
:1020F000F0F601C0EFF600C0EEF621EC0AF0B2C334
:10210000EAFFB1C3E9FF03C0A7F302C0A6F301C011
:10211000A5F300C0A4F3040E016EC250C30B01105E
:10212000C26E130E006E002EFED700D0186AF2BEEB
:10213000188EF29E0701496BB0C348F74B6B040E33
:102140004A6F00015DEC01F018BEF28E02C003F090
:102150000150140FE96E020E0220EA6EC282C2B272
:10216000FED7C4CFD9F6C3CFD8F6000106EC0AF0EB
:1021700000C0EFFF01C0ECFF02C0ECFF03C0ECFFAA
:10218000186AF2BE188EF29E0701496BB0C348F779
:102190004B6B040E4A6F00015DEC01F018BEF28E2D
:1021A00002C003F00150140FE96E020E0220EA6E25
:1021B000EFCF00F0ECCF01F0ECCF02F0ECCF03F06A
:1021C000EACFB2F3E9CFB1F3D892ABC3EDF6AAC32D
:1021D000ECF6A9C3EBF6A8C3EAF603C0F1F602C019
:1021E000F0F601C0EFF600C0EEF621EC0AF0B2C343
:1021F000EAFFB1C3E9FF03C0ABF302C0AAF301C019
:10220000A9F300C0A8F3080E016EC250C30B011061
:10221000C26E130E006E002EFED700D0186AF2BEFA
:10222000188EF29E0701496BB0C348F74B6B040E42
:102230004A6F00015DEC01F018BEF28E02C003F09F
:102240000150200FE96E050E0220EA6EC282C2B272
:10225000FED7C4CFD9F6C3CFD8F6000106EC0AF0FA
:1022600000C0EFFF01C0ECFF02C0ECFF03C0ECFFB9
:10227000186AF2BE188EF29E0701496BB0C348F788
:102280004B6B040E4A6F00015DEC01F018BEF28E3C
:1022900002C003F00150200FE96E050E0220EA6E25
:1022A000EFCF00F0ECCF01F0ECCF02F0ECCF03F079
:1022B000EACFB2F3E9CFB1F3D892AFC3EDF6AEC334
:1022C000ECF6ADC3EBF6ACC3EAF603C0F1F602C020
:1022D000F0F601C0EFF600C0EEF621EC0AF0B2C352
:1022E000EAFFB1C3E9FF03C0AFF302C0AEF301C020
:1022F000ADF300C0ACF30301B02B91D6A7C3EDF64C
:10230000A6C3ECF6A5C3EBF6A4C3EAF60601F16B8F
:10231000F06B480EEF6F850EEE6F00015DEC0BF079
:1023200003C0A7F302C0A6F301C0A5F300C0A4F345
:10233000ABC3EDF6AAC3ECF6A9C3EBF6A8C3EAF665
:102340000601F16BF06B480EEF6F850EEE6F00012A
:102350005DEC0BF003C0ABF302C0AAF301C0A9F31C
:1023600000C0A8F3AFC3EDF6AEC3ECF6ADC3EBF619
:10237000ACC3EAF60601F16BF06B480EEF6F850E09
:10238000EE6F00015DEC0BF003C0AFF302C0AEF3E3
:1023900001C0ADF300C0ACF31AC0B5F319C0B4F37B
:1023A0000301B26BB36BD650D7CF03F0B227D7502F
:1023B000B323000EB423B523B5C3C5F6B4C3C4F626
:1023C000B3C3C3F6B2C3C2F600010CEF0CF003C0F6
:1023D000EDF602C0ECF601C0EBF600C0EAF606012D
:1023E000F16B240EF06F740EEF6F8C0EEE6F000128
:1023F0005DEC0BF000C0B2F301C0B3F302C0B4F364
:1024000003C0B5F3A7C3CDF6A6C3CCF6A5C3CBF6E0
:10241000A4C3CAF60601CF6B840ECE6FD16B640ED7
:10242000D06F000171EC0DF000C0B6F301C0B7F33E
:1024300002C0B8F303C0B9F3ABC3CDF6AAC3CCF660
:10244000A9C3CBF6A8C3CAF6020E0601CF6F140EBD
:10245000CE6FD16B640ED06F000171EC0DF000C037
:10246000BAF301C0BBF302C0BCF303C0BDF3AFC3FA
:10247000CDF6AEC3CCF6ADC3CBF6ACC3CAF6050EF3
:102480000601CF6F200ECE6FD16B640ED06F0001AE
:1024900071EC0DF000C0BEF301C0BFF302C0C0F389
:1024A00003C0C1F3060EE96EB5C3D1F6B4C3D0F6CE
:1024B000B3C3CFF6B2C3CEF6030E0601D26F00014E
:1024C00077DC200E0601DB6F0001EAEC09F0030E59
:1024D000E96EA7C3D1F6A6C3D0F6A5C3CFF6A4C3B1
:1024E000CEF60601D26F000163DC200E0601DB6F21
:1024F0000001EAEC09F0030EE96EB9C3D1F6B8C3E6
:10250000D0F6B7C3CFF6B6C3CEF60601D26F000140
:102510004FDC200E0601DB6F0001EAEC09F0030E30
:10252000E96EABC3D1F6AAC3D0F6A9C3CFF6A8C350
:10253000CEF60601D26F00013BDC200E0601DB6FF8
:102540000001EAEC09F0030EE96EBDC3D1F6BCC38D
:10255000D0F6BBC3CFF6BAC3CEF60601D26F0001E8
:1025600027DC200E0601DB6F0001EAEC09F0030E08
:10257000E96EAFC3D1F6AEC3D0F6ADC3CFF6ACC3F0
:10258000CEF60601D26F000113DC200E0601DB6FD0
:102590000001EAEC09F0030EE96EC1C3D1F6C0C335
:1025A000D0F6BFC3CFF6BEC3CEF60601D26F000190
:1025B000D8EC0EF0200E0601DB6F0001EAEC09F00A
:1025C0000A0E0601DB6F0001EAEC09F00D0E0601B0
:0E25D000DB6F0001EAEC09F01ED504D5030014
:101FF000D76AD66A0301B16BB15100010FEC01F051
:102000000301B12B006EE8CFDBF60001EAEC09F02A
:10201000250E0301B15DF0E1000180A1E0D20301D2
:10202000B06BB0516308D8A06BD1000E016EC250E6
:10203000C30B0110C26E130E006E002EFED700D02F
:10204000186AF2BE188EF29E0701496BB0C348F7BA
:102050004B6B040E4A6F00015DEC01F018BEF28E6E
:1020600002C003F00150840FE96E000E0220EA6EF8
:10207000C282C2B2FED7C4CFD9F6C3CFD8F6000110
:1020800006EC0AF000C0EFFF01C0ECFF02C0ECFF5D
:1020900003C0ECFF186AF2BE188EF29E0701496B6E
:1020A000B0C348F74B6B040E4A6F00015DEC01F0C2
:1020B00018BEF28E02C003F00150840FE96E000ECC
:1020C0000220EA6EEFCF00F0ECCF01F0ECCF02F08F
:1020D000ECCF03F0EACFB2F3E9CFB1F3D892A7C3C4
:1020E000EDF6A6C3ECF6A5C3EBF6A4C3EAF603C06F
:1020F000F1F602C0F0F601C0EFF600C0EEF621ECFA
:102100000AF0B2C3EAFFB1C3E9FF03C0A7F302C0FC
:10211000A6F301C0A5F300C0A4F3040E016EC250E3
:10212000C30B0110C26E130E006E002EFED700D03E
:10213000186AF2BE188EF29E0701496BB0C348F7C9
:102140004B6B040E4A6F00015DEC01F018BEF28E7D
:1021500002C003F00150140FE96E020E0220EA6E75
:10216000C282C2B2FED7C4CFD9F6C3CFD8F600011F
:1021700006EC0AF000C0EFFF01C0ECFF02C0ECFF6C
:1021800003C0ECFF186AF2BE188EF29E0701496B7D
:10219000B0C348F74B6B040E4A6F00015DEC01F0D1
:1021A00018BEF28E02C003F00150140FE96E020E49
:1021B0000220EA6EEFCF00F0ECCF01F0ECCF02F09E
:1021C000ECCF03F0EACFB2F3E9CFB1F3D892ABC3CF
:1021D000EDF6AAC3ECF6A9C3EBF6A8C3EAF603C072
:1021E000F1F602C0F0F601C0EFF600C0EEF621EC09
:1021F0000AF0B2C3EAFFB1C3E9FF03C0ABF302C008
:10220000AAF301C0A9F300C0A8F3080E016EC250E2
:10221000C30B0110C26E130E006E002EFED700D04D
:10222000186AF2BE188EF29E0701496BB0C348F7D8
:102230004B6B040E4A6F00015DEC01F018BEF28E8C
:1022400002C003F00150200FE96E050E0220EA6E75
:10225000C282C2B2FED7C4CFD9F6C3CFD8F600012E
:1022600006EC0AF000C0EFFF01C0ECFF02C0ECFF7B
:1022700003C0ECFF186AF2BE188EF29E0701496B8C
:10228000B0C348F74B6B040E4A6F00015DEC01F0E0
:1022900018BEF28E02C003F00150200FE96E050E49
:1022A0000220EA6EEFCF00F0ECCF01F0ECCF02F0AD
:1022B000ECCF03F0EACFB2F3E9CFB1F3D892AFC3DA
:1022C000EDF6AEC3ECF6ADC3EBF6ACC3EAF603C075
:1022D000F1F602C0F0F601C0EFF600C0EEF621EC18
:1022E0000AF0B2C3EAFFB1C3E9FF03C0AFF302C013
:1022F000AEF301C0ADF300C0ACF30301B02B91D637
:10230000A7C3EDF6A6C3ECF6A5C3EBF6A4C3EAF6A5
:102310000601F16BF06B480EEF6F850EEE6F00015A
:102320005DEC0BF003C0A7F302C0A6F301C0A5F358
:1023300000C0A4F3ABC3EDF6AAC3ECF6A9C3EBF659
:10234000A8C3EAF60601F16BF06B480EEF6F850E3D
:10235000EE6F00015DEC0BF003C0ABF302C0AAF31B
:1023600001C0A9F300C0A8F3AFC3EDF6AEC3ECF60D
:10237000ADC3EBF6ACC3EAF60601F16BF06B480EA9
:10238000EF6F850EEE6F00015DEC0BF003C0AFF355
:1023900002C0AEF301C0ADF300C0ACF31AC0B5F398
:1023A00019C0B4F30301B26BB36BD650D7CF03F0AF
:1023B000B227D750B323000EB423B523B5C3C5F657
:1023C000B4C3C4F6B3C3C3F6B2C3C2F600010CEF84
:1023D0000CF003C0EDF602C0ECF601C0EBF600C055
:1023E000EAF60601F16B240EF06F740EEF6F8C0E9F
:1023F000EE6F00015DEC0BF000C0B2F301C0B3F36F
:1024000002C0B4F303C0B5F3A7C3CDF6A6C3CCF6A0
:10241000A5C3CBF6A4C3CAF60601CF6B840ECE6F5C
:10242000D16B640ED06F000171EC0DF000C0B6F3FB
:1024300001C0B7F302C0B8F303C0B9F3ABC3CDF624
:10244000AAC3CCF6A9C3CBF6A8C3CAF6020E0601EE
:10245000CF6F140ECE6FD16B640ED06F000171EC94
:102460000DF000C0BAF301C0BBF302C0BCF303C05F
:10247000BDF3AFC3CDF6AEC3CCF6ADC3CBF6ACC3A4
:10248000CAF6050E0601CF6F200ECE6FD16B640E1B
:10249000D06F000171EC0DF000C0BEF301C0BFF3BE
:1024A00002C0C0F303C0C1F3060EE96EB5C3D1F696
:1024B000B4C3D0F6B3C3CFF6B2C3CEF6030E060153
:1024C000D26F000175DC200E0601DB6F0001EAEC23
:1024D00009F0030EE96EA7C3D1F6A6C3D0F6A5C3D3
:1024E000CFF6A4C3CEF60601D26F000161DC200E48
:1024F0000601DB6F0001EAEC09F0030EE96EB9C3D7
:10250000D1F6B8C3D0F6B7C3CFF6B6C3CEF6060140
:10251000D26F00014DDC200E0601DB6F0001EAECFA
:1025200009F0030EE96EABC3D1F6AAC3D0F6A9C376
:10253000CFF6A8C3CEF60601D26F000139DC200E1B
:102540000601DB6F0001EAEC09F0030EE96EBDC382
:10255000D1F6BCC3D0F6BBC3CFF6BAC3CEF60601E4
:10256000D26F000125DC200E0601DB6F0001EAECD2
:1025700009F0030EE96EAFC3D1F6AEC3D0F6ADC31A
:10258000CFF6ACC3CEF60601D26F000111DC200EEF
:102590000601DB6F0001EAEC09F0030EE96EC1C32E
:1025A000D1F6C0C3D0F6BFC3CFF6BEC3CEF6060188
:1025B000D26F0001D8EC0EF0200E0601DB6F000197
:1025C000EAEC09F00A0E0601DB6F0001EAEC09F003
:1025D0000D0E0601DB6F0001EAEC09F01ED502D5F5
:0225E0000300F6
:020000040030CA
:0E0000003CCE390E0087A1000FC00FE00F406C
:00000001FF
;PIC18F4550
;CRC=0F97 CREATED="15-V-10 23:31"
;CRC=66E2 CREATED="15-V-10 23:52"
/programy/C/PIC_C/mereni/inertial/main.lst
1,9 → 1,9
CCS PCH C Compiler, Version 4.090, 47914 15-V-10 23:31
CCS PCH C Compiler, Version 4.090, 47914 15-V-10 23:52
 
Filename: D:\svnKaklik\programy\C\PIC_C\mereni\inertial\main.lst
 
ROM used: 9690 bytes (30%)
Largest free fragment is 23074
ROM used: 9694 bytes (30%)
Largest free fragment is 23070
RAM used: 1650 (81%) at main() level
1869 (91%) worst case
Stack: 17 worst case (8 in main + 9 for interrupts)
11123,582 → 11123,585
1FEA: CLRF 1B
1FEC: CLRF 1A
1FEE: CLRF 19
.................... set_timer0(0);
1FF0: CLRF FD7
1FF2: CLRF FD6
.................... printf(usb_cdc_putc,"time[s] X Xerr Y Yerr Z Zerr \n\r");
1FF0: MOVLB 3
1FF2: CLRF xB1
1FF4: MOVF xB1,W
1FF6: MOVLB 0
1FF8: CALL 021E
1FFC: MOVLB 3
1FFE: INCF xB1,F
2000: MOVWF 00
2002: MOVFF FE8,6DB
2006: MOVLB 0
2008: CALL 13D4
200C: MOVLW 25
200E: MOVLB 3
2010: SUBWF xB1,W
2012: BNZ 1FF4
1FF4: MOVLB 3
1FF6: CLRF xB1
1FF8: MOVF xB1,W
1FFA: MOVLB 0
1FFC: CALL 021E
2000: MOVLB 3
2002: INCF xB1,F
2004: MOVWF 00
2006: MOVFF FE8,6DB
200A: MOVLB 0
200C: CALL 13D4
2010: MOVLW 25
2012: MOVLB 3
2014: SUBWF xB1,W
2016: BNZ 1FF8
....................
.................... while(usb_cdc_connected()) // pockej nez se pripoji seriovy port PC
.................... {
2014: MOVLB 0
2016: BTFSS x80.0
2018: BRA 25DA
2018: MOVLB 0
201A: BTFSS x80.0
201C: BRA 25DE
.................... for(i=0; i <BUFLEN; i++)
201A: MOVLB 3
201C: CLRF xB0
201E: MOVF xB0,W
2020: SUBLW 63
2022: BTFSS FD8.0
2024: BRA 22FC
201E: MOVLB 3
2020: CLRF xB0
2022: MOVF xB0,W
2024: SUBLW 63
2026: BTFSS FD8.0
2028: BRA 2300
.................... {
.................... set_adc_channel(0);
2026: MOVLW 00
2028: MOVWF 01
202A: MOVF FC2,W
202C: ANDLW C3
202E: IORWF 01,W
2030: MOVWF FC2
202A: MOVLW 00
202C: MOVWF 01
202E: MOVF FC2,W
2030: ANDLW C3
2032: IORWF 01,W
2034: MOVWF FC2
.................... delay_us(10);
2032: MOVLW 13
2034: MOVWF 00
2036: DECFSZ 00,F
2038: BRA 2036
203A: BRA 203C
203C: CLRF 18
203E: BTFSC FF2.7
2040: BSF 18.7
2042: BCF FF2.7
2036: MOVLW 13
2038: MOVWF 00
203A: DECFSZ 00,F
203C: BRA 203A
203E: BRA 2040
2040: CLRF 18
2042: BTFSC FF2.7
2044: BSF 18.7
2046: BCF FF2.7
.................... x[i]=read_adc();
2044: MOVLB 7
2046: CLRF x49
2048: MOVFF 3B0,748
204C: CLRF x4B
204E: MOVLW 04
2050: MOVWF x4A
2052: MOVLB 0
2054: CALL 02BA
2058: BTFSC 18.7
205A: BSF FF2.7
205C: MOVFF 02,03
2060: MOVF 01,W
2062: ADDLW 84
2064: MOVWF FE9
2066: MOVLW 00
2068: ADDWFC 02,W
206A: MOVWF FEA
206C: BSF FC2.1
206E: BTFSC FC2.1
2070: BRA 206E
2072: MOVFF FC4,6D9
2076: MOVFF FC3,6D8
207A: MOVLB 0
207C: CALL 140C
2080: MOVFF 00,FEF
2084: MOVFF 01,FEC
2088: MOVFF 02,FEC
208C: MOVFF 03,FEC
2090: CLRF 18
2092: BTFSC FF2.7
2094: BSF 18.7
2096: BCF FF2.7
2048: MOVLB 7
204A: CLRF x49
204C: MOVFF 3B0,748
2050: CLRF x4B
2052: MOVLW 04
2054: MOVWF x4A
2056: MOVLB 0
2058: CALL 02BA
205C: BTFSC 18.7
205E: BSF FF2.7
2060: MOVFF 02,03
2064: MOVF 01,W
2066: ADDLW 84
2068: MOVWF FE9
206A: MOVLW 00
206C: ADDWFC 02,W
206E: MOVWF FEA
2070: BSF FC2.1
2072: BTFSC FC2.1
2074: BRA 2072
2076: MOVFF FC4,6D9
207A: MOVFF FC3,6D8
207E: MOVLB 0
2080: CALL 140C
2084: MOVFF 00,FEF
2088: MOVFF 01,FEC
208C: MOVFF 02,FEC
2090: MOVFF 03,FEC
2094: CLRF 18
2096: BTFSC FF2.7
2098: BSF 18.7
209A: BCF FF2.7
.................... xavg+=x[i];
2098: MOVLB 7
209A: CLRF x49
209C: MOVFF 3B0,748
20A0: CLRF x4B
20A2: MOVLW 04
20A4: MOVWF x4A
20A6: MOVLB 0
20A8: CALL 02BA
20AC: BTFSC 18.7
20AE: BSF FF2.7
20B0: MOVFF 02,03
20B4: MOVF 01,W
20B6: ADDLW 84
20B8: MOVWF FE9
20BA: MOVLW 00
20BC: ADDWFC 02,W
20BE: MOVWF FEA
20C0: MOVFF FEF,00
20C4: MOVFF FEC,01
20C8: MOVFF FEC,02
20CC: MOVFF FEC,03
20D0: MOVFF FEA,3B2
20D4: MOVFF FE9,3B1
20D8: BCF FD8.1
20DA: MOVFF 3A7,6ED
20DE: MOVFF 3A6,6EC
20E2: MOVFF 3A5,6EB
20E6: MOVFF 3A4,6EA
20EA: MOVFF 03,6F1
20EE: MOVFF 02,6F0
20F2: MOVFF 01,6EF
20F6: MOVFF 00,6EE
20FA: CALL 1442
20FE: MOVFF 3B2,FEA
2102: MOVFF 3B1,FE9
2106: MOVFF 03,3A7
210A: MOVFF 02,3A6
210E: MOVFF 01,3A5
2112: MOVFF 00,3A4
209C: MOVLB 7
209E: CLRF x49
20A0: MOVFF 3B0,748
20A4: CLRF x4B
20A6: MOVLW 04
20A8: MOVWF x4A
20AA: MOVLB 0
20AC: CALL 02BA
20B0: BTFSC 18.7
20B2: BSF FF2.7
20B4: MOVFF 02,03
20B8: MOVF 01,W
20BA: ADDLW 84
20BC: MOVWF FE9
20BE: MOVLW 00
20C0: ADDWFC 02,W
20C2: MOVWF FEA
20C4: MOVFF FEF,00
20C8: MOVFF FEC,01
20CC: MOVFF FEC,02
20D0: MOVFF FEC,03
20D4: MOVFF FEA,3B2
20D8: MOVFF FE9,3B1
20DC: BCF FD8.1
20DE: MOVFF 3A7,6ED
20E2: MOVFF 3A6,6EC
20E6: MOVFF 3A5,6EB
20EA: MOVFF 3A4,6EA
20EE: MOVFF 03,6F1
20F2: MOVFF 02,6F0
20F6: MOVFF 01,6EF
20FA: MOVFF 00,6EE
20FE: CALL 1442
2102: MOVFF 3B2,FEA
2106: MOVFF 3B1,FE9
210A: MOVFF 03,3A7
210E: MOVFF 02,3A6
2112: MOVFF 01,3A5
2116: MOVFF 00,3A4
....................
.................... set_adc_channel(1);
2116: MOVLW 04
2118: MOVWF 01
211A: MOVF FC2,W
211C: ANDLW C3
211E: IORWF 01,W
2120: MOVWF FC2
211A: MOVLW 04
211C: MOVWF 01
211E: MOVF FC2,W
2120: ANDLW C3
2122: IORWF 01,W
2124: MOVWF FC2
.................... delay_us(10);
2122: MOVLW 13
2124: MOVWF 00
2126: DECFSZ 00,F
2128: BRA 2126
212A: BRA 212C
212C: CLRF 18
212E: BTFSC FF2.7
2130: BSF 18.7
2132: BCF FF2.7
2126: MOVLW 13
2128: MOVWF 00
212A: DECFSZ 00,F
212C: BRA 212A
212E: BRA 2130
2130: CLRF 18
2132: BTFSC FF2.7
2134: BSF 18.7
2136: BCF FF2.7
.................... y[i]=read_adc();
2134: MOVLB 7
2136: CLRF x49
2138: MOVFF 3B0,748
213C: CLRF x4B
213E: MOVLW 04
2140: MOVWF x4A
2142: MOVLB 0
2144: CALL 02BA
2148: BTFSC 18.7
214A: BSF FF2.7
214C: MOVFF 02,03
2150: MOVF 01,W
2152: ADDLW 14
2154: MOVWF FE9
2156: MOVLW 02
2158: ADDWFC 02,W
215A: MOVWF FEA
215C: BSF FC2.1
215E: BTFSC FC2.1
2160: BRA 215E
2162: MOVFF FC4,6D9
2166: MOVFF FC3,6D8
216A: MOVLB 0
216C: CALL 140C
2170: MOVFF 00,FEF
2174: MOVFF 01,FEC
2178: MOVFF 02,FEC
217C: MOVFF 03,FEC
2180: CLRF 18
2182: BTFSC FF2.7
2184: BSF 18.7
2186: BCF FF2.7
2138: MOVLB 7
213A: CLRF x49
213C: MOVFF 3B0,748
2140: CLRF x4B
2142: MOVLW 04
2144: MOVWF x4A
2146: MOVLB 0
2148: CALL 02BA
214C: BTFSC 18.7
214E: BSF FF2.7
2150: MOVFF 02,03
2154: MOVF 01,W
2156: ADDLW 14
2158: MOVWF FE9
215A: MOVLW 02
215C: ADDWFC 02,W
215E: MOVWF FEA
2160: BSF FC2.1
2162: BTFSC FC2.1
2164: BRA 2162
2166: MOVFF FC4,6D9
216A: MOVFF FC3,6D8
216E: MOVLB 0
2170: CALL 140C
2174: MOVFF 00,FEF
2178: MOVFF 01,FEC
217C: MOVFF 02,FEC
2180: MOVFF 03,FEC
2184: CLRF 18
2186: BTFSC FF2.7
2188: BSF 18.7
218A: BCF FF2.7
.................... yavg+=y[i];
2188: MOVLB 7
218A: CLRF x49
218C: MOVFF 3B0,748
2190: CLRF x4B
2192: MOVLW 04
2194: MOVWF x4A
2196: MOVLB 0
2198: CALL 02BA
219C: BTFSC 18.7
219E: BSF FF2.7
21A0: MOVFF 02,03
21A4: MOVF 01,W
21A6: ADDLW 14
21A8: MOVWF FE9
21AA: MOVLW 02
21AC: ADDWFC 02,W
21AE: MOVWF FEA
21B0: MOVFF FEF,00
21B4: MOVFF FEC,01
21B8: MOVFF FEC,02
21BC: MOVFF FEC,03
21C0: MOVFF FEA,3B2
21C4: MOVFF FE9,3B1
21C8: BCF FD8.1
21CA: MOVFF 3AB,6ED
21CE: MOVFF 3AA,6EC
21D2: MOVFF 3A9,6EB
21D6: MOVFF 3A8,6EA
21DA: MOVFF 03,6F1
21DE: MOVFF 02,6F0
21E2: MOVFF 01,6EF
21E6: MOVFF 00,6EE
21EA: CALL 1442
21EE: MOVFF 3B2,FEA
21F2: MOVFF 3B1,FE9
21F6: MOVFF 03,3AB
21FA: MOVFF 02,3AA
21FE: MOVFF 01,3A9
2202: MOVFF 00,3A8
218C: MOVLB 7
218E: CLRF x49
2190: MOVFF 3B0,748
2194: CLRF x4B
2196: MOVLW 04
2198: MOVWF x4A
219A: MOVLB 0
219C: CALL 02BA
21A0: BTFSC 18.7
21A2: BSF FF2.7
21A4: MOVFF 02,03
21A8: MOVF 01,W
21AA: ADDLW 14
21AC: MOVWF FE9
21AE: MOVLW 02
21B0: ADDWFC 02,W
21B2: MOVWF FEA
21B4: MOVFF FEF,00
21B8: MOVFF FEC,01
21BC: MOVFF FEC,02
21C0: MOVFF FEC,03
21C4: MOVFF FEA,3B2
21C8: MOVFF FE9,3B1
21CC: BCF FD8.1
21CE: MOVFF 3AB,6ED
21D2: MOVFF 3AA,6EC
21D6: MOVFF 3A9,6EB
21DA: MOVFF 3A8,6EA
21DE: MOVFF 03,6F1
21E2: MOVFF 02,6F0
21E6: MOVFF 01,6EF
21EA: MOVFF 00,6EE
21EE: CALL 1442
21F2: MOVFF 3B2,FEA
21F6: MOVFF 3B1,FE9
21FA: MOVFF 03,3AB
21FE: MOVFF 02,3AA
2202: MOVFF 01,3A9
2206: MOVFF 00,3A8
....................
.................... set_adc_channel(2);
2206: MOVLW 08
2208: MOVWF 01
220A: MOVF FC2,W
220C: ANDLW C3
220E: IORWF 01,W
2210: MOVWF FC2
220A: MOVLW 08
220C: MOVWF 01
220E: MOVF FC2,W
2210: ANDLW C3
2212: IORWF 01,W
2214: MOVWF FC2
.................... delay_us(10);
2212: MOVLW 13
2214: MOVWF 00
2216: DECFSZ 00,F
2218: BRA 2216
221A: BRA 221C
221C: CLRF 18
221E: BTFSC FF2.7
2220: BSF 18.7
2222: BCF FF2.7
2216: MOVLW 13
2218: MOVWF 00
221A: DECFSZ 00,F
221C: BRA 221A
221E: BRA 2220
2220: CLRF 18
2222: BTFSC FF2.7
2224: BSF 18.7
2226: BCF FF2.7
.................... z[i]=read_adc();
2224: MOVLB 7
2226: CLRF x49
2228: MOVFF 3B0,748
222C: CLRF x4B
222E: MOVLW 04
2230: MOVWF x4A
2232: MOVLB 0
2234: CALL 02BA
2238: BTFSC 18.7
223A: BSF FF2.7
223C: MOVFF 02,03
2240: MOVF 01,W
2242: ADDLW 20
2244: MOVWF FE9
2246: MOVLW 05
2248: ADDWFC 02,W
224A: MOVWF FEA
224C: BSF FC2.1
224E: BTFSC FC2.1
2250: BRA 224E
2252: MOVFF FC4,6D9
2256: MOVFF FC3,6D8
225A: MOVLB 0
225C: CALL 140C
2260: MOVFF 00,FEF
2264: MOVFF 01,FEC
2268: MOVFF 02,FEC
226C: MOVFF 03,FEC
2270: CLRF 18
2272: BTFSC FF2.7
2274: BSF 18.7
2276: BCF FF2.7
2228: MOVLB 7
222A: CLRF x49
222C: MOVFF 3B0,748
2230: CLRF x4B
2232: MOVLW 04
2234: MOVWF x4A
2236: MOVLB 0
2238: CALL 02BA
223C: BTFSC 18.7
223E: BSF FF2.7
2240: MOVFF 02,03
2244: MOVF 01,W
2246: ADDLW 20
2248: MOVWF FE9
224A: MOVLW 05
224C: ADDWFC 02,W
224E: MOVWF FEA
2250: BSF FC2.1
2252: BTFSC FC2.1
2254: BRA 2252
2256: MOVFF FC4,6D9
225A: MOVFF FC3,6D8
225E: MOVLB 0
2260: CALL 140C
2264: MOVFF 00,FEF
2268: MOVFF 01,FEC
226C: MOVFF 02,FEC
2270: MOVFF 03,FEC
2274: CLRF 18
2276: BTFSC FF2.7
2278: BSF 18.7
227A: BCF FF2.7
.................... zavg+=z[i];
2278: MOVLB 7
227A: CLRF x49
227C: MOVFF 3B0,748
2280: CLRF x4B
2282: MOVLW 04
2284: MOVWF x4A
2286: MOVLB 0
2288: CALL 02BA
228C: BTFSC 18.7
228E: BSF FF2.7
2290: MOVFF 02,03
2294: MOVF 01,W
2296: ADDLW 20
2298: MOVWF FE9
229A: MOVLW 05
229C: ADDWFC 02,W
229E: MOVWF FEA
22A0: MOVFF FEF,00
22A4: MOVFF FEC,01
22A8: MOVFF FEC,02
22AC: MOVFF FEC,03
22B0: MOVFF FEA,3B2
22B4: MOVFF FE9,3B1
22B8: BCF FD8.1
22BA: MOVFF 3AF,6ED
22BE: MOVFF 3AE,6EC
22C2: MOVFF 3AD,6EB
22C6: MOVFF 3AC,6EA
22CA: MOVFF 03,6F1
22CE: MOVFF 02,6F0
22D2: MOVFF 01,6EF
22D6: MOVFF 00,6EE
22DA: CALL 1442
22DE: MOVFF 3B2,FEA
22E2: MOVFF 3B1,FE9
22E6: MOVFF 03,3AF
22EA: MOVFF 02,3AE
22EE: MOVFF 01,3AD
22F2: MOVFF 00,3AC
227C: MOVLB 7
227E: CLRF x49
2280: MOVFF 3B0,748
2284: CLRF x4B
2286: MOVLW 04
2288: MOVWF x4A
228A: MOVLB 0
228C: CALL 02BA
2290: BTFSC 18.7
2292: BSF FF2.7
2294: MOVFF 02,03
2298: MOVF 01,W
229A: ADDLW 20
229C: MOVWF FE9
229E: MOVLW 05
22A0: ADDWFC 02,W
22A2: MOVWF FEA
22A4: MOVFF FEF,00
22A8: MOVFF FEC,01
22AC: MOVFF FEC,02
22B0: MOVFF FEC,03
22B4: MOVFF FEA,3B2
22B8: MOVFF FE9,3B1
22BC: BCF FD8.1
22BE: MOVFF 3AF,6ED
22C2: MOVFF 3AE,6EC
22C6: MOVFF 3AD,6EB
22CA: MOVFF 3AC,6EA
22CE: MOVFF 03,6F1
22D2: MOVFF 02,6F0
22D6: MOVFF 01,6EF
22DA: MOVFF 00,6EE
22DE: CALL 1442
22E2: MOVFF 3B2,FEA
22E6: MOVFF 3B1,FE9
22EA: MOVFF 03,3AF
22EE: MOVFF 02,3AE
22F2: MOVFF 01,3AD
22F6: MOVFF 00,3AC
.................... }
22F6: MOVLB 3
22F8: INCF xB0,F
22FA: BRA 201E
22FA: MOVLB 3
22FC: INCF xB0,F
22FE: BRA 2022
....................
.................... xavg=xavg/BUFLEN;
22FC: MOVFF 3A7,6ED
2300: MOVFF 3A6,6EC
2304: MOVFF 3A5,6EB
2308: MOVFF 3A4,6EA
230C: MOVLB 6
230E: CLRF xF1
2310: CLRF xF0
2312: MOVLW 48
2314: MOVWF xEF
2316: MOVLW 85
2318: MOVWF xEE
231A: MOVLB 0
231C: CALL 16BA
2320: MOVFF 03,3A7
2324: MOVFF 02,3A6
2328: MOVFF 01,3A5
232C: MOVFF 00,3A4
2300: MOVFF 3A7,6ED
2304: MOVFF 3A6,6EC
2308: MOVFF 3A5,6EB
230C: MOVFF 3A4,6EA
2310: MOVLB 6
2312: CLRF xF1
2314: CLRF xF0
2316: MOVLW 48
2318: MOVWF xEF
231A: MOVLW 85
231C: MOVWF xEE
231E: MOVLB 0
2320: CALL 16BA
2324: MOVFF 03,3A7
2328: MOVFF 02,3A6
232C: MOVFF 01,3A5
2330: MOVFF 00,3A4
.................... yavg=yavg/BUFLEN;
2330: MOVFF 3AB,6ED
2334: MOVFF 3AA,6EC
2338: MOVFF 3A9,6EB
233C: MOVFF 3A8,6EA
2340: MOVLB 6
2342: CLRF xF1
2344: CLRF xF0
2346: MOVLW 48
2348: MOVWF xEF
234A: MOVLW 85
234C: MOVWF xEE
234E: MOVLB 0
2350: CALL 16BA
2354: MOVFF 03,3AB
2358: MOVFF 02,3AA
235C: MOVFF 01,3A9
2360: MOVFF 00,3A8
2334: MOVFF 3AB,6ED
2338: MOVFF 3AA,6EC
233C: MOVFF 3A9,6EB
2340: MOVFF 3A8,6EA
2344: MOVLB 6
2346: CLRF xF1
2348: CLRF xF0
234A: MOVLW 48
234C: MOVWF xEF
234E: MOVLW 85
2350: MOVWF xEE
2352: MOVLB 0
2354: CALL 16BA
2358: MOVFF 03,3AB
235C: MOVFF 02,3AA
2360: MOVFF 01,3A9
2364: MOVFF 00,3A8
.................... zavg=zavg/BUFLEN;
2364: MOVFF 3AF,6ED
2368: MOVFF 3AE,6EC
236C: MOVFF 3AD,6EB
2370: MOVFF 3AC,6EA
2374: MOVLB 6
2376: CLRF xF1
2378: CLRF xF0
237A: MOVLW 48
237C: MOVWF xEF
237E: MOVLW 85
2380: MOVWF xEE
2382: MOVLB 0
2384: CALL 16BA
2388: MOVFF 03,3AF
238C: MOVFF 02,3AE
2390: MOVFF 01,3AD
2394: MOVFF 00,3AC
2368: MOVFF 3AF,6ED
236C: MOVFF 3AE,6EC
2370: MOVFF 3AD,6EB
2374: MOVFF 3AC,6EA
2378: MOVLB 6
237A: CLRF xF1
237C: CLRF xF0
237E: MOVLW 48
2380: MOVWF xEF
2382: MOVLW 85
2384: MOVWF xEE
2386: MOVLB 0
2388: CALL 16BA
238C: MOVFF 03,3AF
2390: MOVFF 02,3AE
2394: MOVFF 01,3AD
2398: MOVFF 00,3AC
....................
.................... // odesli namerene hodnoty
.................... printf(usb_cdc_putc, "%7.3f %4.3f %4.3f %4.3f %4.3f %4.3f %4.3f \n\r",((time << 16) + get_timer0())/15625.0, xavg, quadraticerror(xavg,x,BUFLEN), yavg, quadraticerror(yavg,y,BUFLEN), zavg, quadraticerror(zavg,z,BUFLEN)); //konstanta k je kvuli prevodu do rozzumnych jednotek [s]
2398: MOVFF 1A,3B5
239C: MOVFF 19,3B4
23A0: MOVLB 3
23A2: CLRF xB2
23A4: CLRF xB3
23A6: MOVF FD6,W
23A8: MOVFF FD7,03
23AC: ADDWF xB2,F
23AE: MOVF FD7,W
23B0: ADDWFC xB3,F
23B2: MOVLW 00
23B4: ADDWFC xB4,F
23B6: ADDWFC xB5,F
23B8: MOVFF 3B5,6C5
23BC: MOVFF 3B4,6C4
23C0: MOVFF 3B3,6C3
23C4: MOVFF 3B2,6C2
23C8: MOVLB 0
23CA: GOTO 1818
23CE: MOVFF 03,6ED
23D2: MOVFF 02,6EC
23D6: MOVFF 01,6EB
23DA: MOVFF 00,6EA
23DE: MOVLB 6
23E0: CLRF xF1
23E2: MOVLW 24
23E4: MOVWF xF0
23E6: MOVLW 74
23E8: MOVWF xEF
23EA: MOVLW 8C
23EC: MOVWF xEE
23EE: MOVLB 0
23F0: CALL 16BA
23F4: MOVFF 00,3B2
23F8: MOVFF 01,3B3
23FC: MOVFF 02,3B4
2400: MOVFF 03,3B5
2404: MOVFF 3A7,6CD
2408: MOVFF 3A6,6CC
240C: MOVFF 3A5,6CB
2410: MOVFF 3A4,6CA
2414: MOVLB 6
2416: CLRF xCF
2418: MOVLW 84
241A: MOVWF xCE
241C: CLRF xD1
241E: MOVLW 64
2420: MOVWF xD0
2422: MOVLB 0
2424: CALL 1AE2
2428: MOVFF 00,3B6
242C: MOVFF 01,3B7
2430: MOVFF 02,3B8
2434: MOVFF 03,3B9
2438: MOVFF 3AB,6CD
243C: MOVFF 3AA,6CC
2440: MOVFF 3A9,6CB
2444: MOVFF 3A8,6CA
2448: MOVLW 02
244A: MOVLB 6
244C: MOVWF xCF
244E: MOVLW 14
2450: MOVWF xCE
2452: CLRF xD1
2454: MOVLW 64
2456: MOVWF xD0
2458: MOVLB 0
245A: CALL 1AE2
245E: MOVFF 00,3BA
2462: MOVFF 01,3BB
2466: MOVFF 02,3BC
246A: MOVFF 03,3BD
246E: MOVFF 3AF,6CD
2472: MOVFF 3AE,6CC
2476: MOVFF 3AD,6CB
247A: MOVFF 3AC,6CA
247E: MOVLW 05
2480: MOVLB 6
2482: MOVWF xCF
2484: MOVLW 20
2486: MOVWF xCE
2488: CLRF xD1
248A: MOVLW 64
248C: MOVWF xD0
248E: MOVLB 0
2490: CALL 1AE2
2494: MOVFF 00,3BE
2498: MOVFF 01,3BF
249C: MOVFF 02,3C0
24A0: MOVFF 03,3C1
24A4: MOVLW 06
24A6: MOVWF FE9
24A8: MOVFF 3B5,6D1
24AC: MOVFF 3B4,6D0
24B0: MOVFF 3B3,6CF
24B4: MOVFF 3B2,6CE
24B8: MOVLW 03
24BA: MOVLB 6
24BC: MOVWF xD2
24BE: MOVLB 0
24C0: RCALL 1DB0
24C2: MOVLW 20
24C4: MOVLB 6
24C6: MOVWF xDB
24C8: MOVLB 0
24CA: CALL 13D4
24CE: MOVLW 03
24D0: MOVWF FE9
24D2: MOVFF 3A7,6D1
24D6: MOVFF 3A6,6D0
24DA: MOVFF 3A5,6CF
24DE: MOVFF 3A4,6CE
24E2: MOVLB 6
24E4: MOVWF xD2
24E6: MOVLB 0
24E8: RCALL 1DB0
24EA: MOVLW 20
24EC: MOVLB 6
24EE: MOVWF xDB
24F0: MOVLB 0
24F2: CALL 13D4
24F6: MOVLW 03
24F8: MOVWF FE9
24FA: MOVFF 3B9,6D1
24FE: MOVFF 3B8,6D0
2502: MOVFF 3B7,6CF
2506: MOVFF 3B6,6CE
250A: MOVLB 6
250C: MOVWF xD2
250E: MOVLB 0
2510: RCALL 1DB0
2512: MOVLW 20
2514: MOVLB 6
2516: MOVWF xDB
2518: MOVLB 0
251A: CALL 13D4
251E: MOVLW 03
2520: MOVWF FE9
2522: MOVFF 3AB,6D1
2526: MOVFF 3AA,6D0
252A: MOVFF 3A9,6CF
252E: MOVFF 3A8,6CE
2532: MOVLB 6
2534: MOVWF xD2
2536: MOVLB 0
2538: RCALL 1DB0
253A: MOVLW 20
253C: MOVLB 6
253E: MOVWF xDB
2540: MOVLB 0
2542: CALL 13D4
2546: MOVLW 03
2548: MOVWF FE9
254A: MOVFF 3BD,6D1
254E: MOVFF 3BC,6D0
2552: MOVFF 3BB,6CF
2556: MOVFF 3BA,6CE
255A: MOVLB 6
255C: MOVWF xD2
255E: MOVLB 0
2560: RCALL 1DB0
2562: MOVLW 20
2564: MOVLB 6
2566: MOVWF xDB
2568: MOVLB 0
256A: CALL 13D4
256E: MOVLW 03
2570: MOVWF FE9
2572: MOVFF 3AF,6D1
2576: MOVFF 3AE,6D0
257A: MOVFF 3AD,6CF
257E: MOVFF 3AC,6CE
2582: MOVLB 6
2584: MOVWF xD2
2586: MOVLB 0
2588: RCALL 1DB0
258A: MOVLW 20
258C: MOVLB 6
258E: MOVWF xDB
2590: MOVLB 0
2592: CALL 13D4
2596: MOVLW 03
2598: MOVWF FE9
259A: MOVFF 3C1,6D1
259E: MOVFF 3C0,6D0
25A2: MOVFF 3BF,6CF
25A6: MOVFF 3BE,6CE
25AA: MOVLB 6
25AC: MOVWF xD2
25AE: MOVLB 0
25B0: CALL 1DB0
25B4: MOVLW 20
25B6: MOVLB 6
25B8: MOVWF xDB
25BA: MOVLB 0
25BC: CALL 13D4
25C0: MOVLW 0A
25C2: MOVLB 6
25C4: MOVWF xDB
25C6: MOVLB 0
25C8: CALL 13D4
25CC: MOVLW 0D
25CE: MOVLB 6
25D0: MOVWF xDB
25D2: MOVLB 0
25D4: CALL 13D4
239C: MOVFF 1A,3B5
23A0: MOVFF 19,3B4
23A4: MOVLB 3
23A6: CLRF xB2
23A8: CLRF xB3
23AA: MOVF FD6,W
23AC: MOVFF FD7,03
23B0: ADDWF xB2,F
23B2: MOVF FD7,W
23B4: ADDWFC xB3,F
23B6: MOVLW 00
23B8: ADDWFC xB4,F
23BA: ADDWFC xB5,F
23BC: MOVFF 3B5,6C5
23C0: MOVFF 3B4,6C4
23C4: MOVFF 3B3,6C3
23C8: MOVFF 3B2,6C2
23CC: MOVLB 0
23CE: GOTO 1818
23D2: MOVFF 03,6ED
23D6: MOVFF 02,6EC
23DA: MOVFF 01,6EB
23DE: MOVFF 00,6EA
23E2: MOVLB 6
23E4: CLRF xF1
23E6: MOVLW 24
23E8: MOVWF xF0
23EA: MOVLW 74
23EC: MOVWF xEF
23EE: MOVLW 8C
23F0: MOVWF xEE
23F2: MOVLB 0
23F4: CALL 16BA
23F8: MOVFF 00,3B2
23FC: MOVFF 01,3B3
2400: MOVFF 02,3B4
2404: MOVFF 03,3B5
2408: MOVFF 3A7,6CD
240C: MOVFF 3A6,6CC
2410: MOVFF 3A5,6CB
2414: MOVFF 3A4,6CA
2418: MOVLB 6
241A: CLRF xCF
241C: MOVLW 84
241E: MOVWF xCE
2420: CLRF xD1
2422: MOVLW 64
2424: MOVWF xD0
2426: MOVLB 0
2428: CALL 1AE2
242C: MOVFF 00,3B6
2430: MOVFF 01,3B7
2434: MOVFF 02,3B8
2438: MOVFF 03,3B9
243C: MOVFF 3AB,6CD
2440: MOVFF 3AA,6CC
2444: MOVFF 3A9,6CB
2448: MOVFF 3A8,6CA
244C: MOVLW 02
244E: MOVLB 6
2450: MOVWF xCF
2452: MOVLW 14
2454: MOVWF xCE
2456: CLRF xD1
2458: MOVLW 64
245A: MOVWF xD0
245C: MOVLB 0
245E: CALL 1AE2
2462: MOVFF 00,3BA
2466: MOVFF 01,3BB
246A: MOVFF 02,3BC
246E: MOVFF 03,3BD
2472: MOVFF 3AF,6CD
2476: MOVFF 3AE,6CC
247A: MOVFF 3AD,6CB
247E: MOVFF 3AC,6CA
2482: MOVLW 05
2484: MOVLB 6
2486: MOVWF xCF
2488: MOVLW 20
248A: MOVWF xCE
248C: CLRF xD1
248E: MOVLW 64
2490: MOVWF xD0
2492: MOVLB 0
2494: CALL 1AE2
2498: MOVFF 00,3BE
249C: MOVFF 01,3BF
24A0: MOVFF 02,3C0
24A4: MOVFF 03,3C1
24A8: MOVLW 06
24AA: MOVWF FE9
24AC: MOVFF 3B5,6D1
24B0: MOVFF 3B4,6D0
24B4: MOVFF 3B3,6CF
24B8: MOVFF 3B2,6CE
24BC: MOVLW 03
24BE: MOVLB 6
24C0: MOVWF xD2
24C2: MOVLB 0
24C4: RCALL 1DB0
24C6: MOVLW 20
24C8: MOVLB 6
24CA: MOVWF xDB
24CC: MOVLB 0
24CE: CALL 13D4
24D2: MOVLW 03
24D4: MOVWF FE9
24D6: MOVFF 3A7,6D1
24DA: MOVFF 3A6,6D0
24DE: MOVFF 3A5,6CF
24E2: MOVFF 3A4,6CE
24E6: MOVLB 6
24E8: MOVWF xD2
24EA: MOVLB 0
24EC: RCALL 1DB0
24EE: MOVLW 20
24F0: MOVLB 6
24F2: MOVWF xDB
24F4: MOVLB 0
24F6: CALL 13D4
24FA: MOVLW 03
24FC: MOVWF FE9
24FE: MOVFF 3B9,6D1
2502: MOVFF 3B8,6D0
2506: MOVFF 3B7,6CF
250A: MOVFF 3B6,6CE
250E: MOVLB 6
2510: MOVWF xD2
2512: MOVLB 0
2514: RCALL 1DB0
2516: MOVLW 20
2518: MOVLB 6
251A: MOVWF xDB
251C: MOVLB 0
251E: CALL 13D4
2522: MOVLW 03
2524: MOVWF FE9
2526: MOVFF 3AB,6D1
252A: MOVFF 3AA,6D0
252E: MOVFF 3A9,6CF
2532: MOVFF 3A8,6CE
2536: MOVLB 6
2538: MOVWF xD2
253A: MOVLB 0
253C: RCALL 1DB0
253E: MOVLW 20
2540: MOVLB 6
2542: MOVWF xDB
2544: MOVLB 0
2546: CALL 13D4
254A: MOVLW 03
254C: MOVWF FE9
254E: MOVFF 3BD,6D1
2552: MOVFF 3BC,6D0
2556: MOVFF 3BB,6CF
255A: MOVFF 3BA,6CE
255E: MOVLB 6
2560: MOVWF xD2
2562: MOVLB 0
2564: RCALL 1DB0
2566: MOVLW 20
2568: MOVLB 6
256A: MOVWF xDB
256C: MOVLB 0
256E: CALL 13D4
2572: MOVLW 03
2574: MOVWF FE9
2576: MOVFF 3AF,6D1
257A: MOVFF 3AE,6D0
257E: MOVFF 3AD,6CF
2582: MOVFF 3AC,6CE
2586: MOVLB 6
2588: MOVWF xD2
258A: MOVLB 0
258C: RCALL 1DB0
258E: MOVLW 20
2590: MOVLB 6
2592: MOVWF xDB
2594: MOVLB 0
2596: CALL 13D4
259A: MOVLW 03
259C: MOVWF FE9
259E: MOVFF 3C1,6D1
25A2: MOVFF 3C0,6D0
25A6: MOVFF 3BF,6CF
25AA: MOVFF 3BE,6CE
25AE: MOVLB 6
25B0: MOVWF xD2
25B2: MOVLB 0
25B4: CALL 1DB0
25B8: MOVLW 20
25BA: MOVLB 6
25BC: MOVWF xDB
25BE: MOVLB 0
25C0: CALL 13D4
25C4: MOVLW 0A
25C6: MOVLB 6
25C8: MOVWF xDB
25CA: MOVLB 0
25CC: CALL 13D4
25D0: MOVLW 0D
25D2: MOVLB 6
25D4: MOVWF xDB
25D6: MOVLB 0
25D8: CALL 13D4
.................... }
25D8: BRA 2016
25DC: BRA 201A
.................... }
25DA: BRA 1FE4
25DE: BRA 1FE4
.................... }
25DC: SLEEP
25E0: SLEEP
 
Configuration Fuses:
Word 1: CE3C IESO FCMEN HSPLL PLL5 CPUDIV4 USBDIV