Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 659 → Rev 656

/programy/C/PIC_C/mereni/inertial/main.c
45,7 → 45,7
enable_interrupts(INT_TIMER0);
enable_interrupts(GLOBAL);
setup_adc_ports(AN0_TO_AN2|VSS_VREF);
setup_adc_ports(AN0_TO_AN2|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_64);
 
usb_init(); // initialise USB module
54,15 → 54,13
{
while(!usb_cdc_connected());
time=0;
set_timer0(0);
printf(usb_cdc_putc,"time[s] X Xerr Y Yerr Z Zerr \n\r");
printf(usb_cdc_putc,"time[s] x xerr y yerr z zerr \nr");
 
while(usb_cdc_connected()) // pockej nez se pripoji seriovy port PC
{
for(i=0; i <BUFLEN; i++)
{
set_adc_channel(0);
set_adc_channel(1);
delay_us(10);
x[i]=read_adc();
xavg+=x[i];
72,7 → 70,7
y[i]=read_adc();
yavg+=y[i];
 
set_adc_channel(2);
set_adc_channel(1);
delay_us(10);
z[i]=read_adc();
zavg+=z[i];
/programy/C/PIC_C/mereni/inertial/main.hex
36,8 → 36,8
:1002100041004C002000440045004D004F00F2CF4B
:100220000EF0F29EF76A380FF66E020EF722090002
:10023000F5500EBEF28E120074696D655B735D2021
:10024000205820205865727220205920205965724C
:100250007220205A20205A657272200A0D00010E69
:1002400020782020786572722020792020796572CC
:100250007220207A20207A657272200A7200010EC4
:100260001926D8B01A2AD8B41B2AD8B41C2AF2945A
:1002700032EF00F06D92699468A402D06894FCD7C4
:1002800045EF09F0400E0401016F040E036F180ED4
388,7 → 388,7
:10181000026A036A0001000CB60E006E036A026AD7
:10182000016A0601C251C311C411C51102E1006A67
:101830000DD0D89001BE09D0C237C337C437C537E1
:10184000033602360136002EF4D7019E0001E9EF7F
:10184000033602360136002EF4D7019E0001E3EF85
:1018500011F00601E451D8B471D0006EE851D8B44B
:101860006DD0002604E3810E002668E204D07F0ECE
:10187000005E64E363E0E5C6ECF6E951EC1BE58F3E
509,106 → 509,105
:101FA000870ED56ECD6A000ECA6E000ECB6EB16A7A
:101FB000070EB46E9250926E130E006E002EFED776
:101FC00000D0B450A19CB56AF28AC00EF212C15082
:101FD000C00B1C09C16EC090C082C084C08EC2807C
:101FE000B4EF09F080A1FED71C6A1B6A1A6A196A4D
: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
:101FD000C00B0C09C16EC090C082C084C08EC2808C
:101FE000B4EF09F080A1FED70301B16BB15100013C
:101FF0000FEC01F00301B12B006EE8CFDBF600011E
:10200000EAEC09F0250E0301B15DF0E1000180A1C9
:10201000DFD20301B06BB0516308D8A06BD1040EBE
:10202000016EC250C30B0110C26E130E006E002E63
:10203000FED700D0186AF2BE188EF29E0701496BD7
:10204000B0C348F74B6B040E4A6F00015DEC01F022
:1020500018BEF28E02C003F00150840FE96E000E2C
:102060000220EA6EC282C2B2FED7C4CFD9F6C3CF75
:10207000D8F6000106EC0AF000C0EFFF01C0ECFF4B
:1020800002C0ECFF03C0ECFF186AF2BE188EF29E8D
:102090000701496BB0C348F74B6B040E4A6F000150
:1020A0005DEC01F018BEF28E02C003F00150840F07
:1020B000E96E000E0220EA6EEFCF00F0ECCF01F0E7
:1020C000ECCF02F0ECCF03F0EACFB2F3E9CFB1F3FB
:1020D000D892A7C3EDF6A6C3ECF6A5C3EBF6A4C34E
:1020E000EAF603C0F1F602C0F0F601C0EFF600C058
:1020F000EEF621EC0AF0B2C3EAFFB1C3E9FF03C078
:10210000A7F302C0A6F301C0A5F300C0A4F3040E18
:10211000016EC250C30B0110C26E130E006E002E72
:10212000FED700D0186AF2BE188EF29E0701496BE6
:10213000B0C348F74B6B040E4A6F00015DEC01F031
:1021400018BEF28E02C003F00150140FE96E020EA9
:102150000220EA6EC282C2B2FED7C4CFD9F6C3CF84
:10216000D8F6000106EC0AF000C0EFFF01C0ECFF5A
:1021700002C0ECFF03C0ECFF186AF2BE188EF29E9C
:102180000701496BB0C348F74B6B040E4A6F00015F
:102190005DEC01F018BEF28E02C003F00150140F86
:1021A000E96E020E0220EA6EEFCF00F0ECCF01F0F4
:1021B000ECCF02F0ECCF03F0EACFB2F3E9CFB1F30A
:1021C000D892ABC3EDF6AAC3ECF6A9C3EBF6A8C34D
:1021D000EAF603C0F1F602C0F0F601C0EFF600C067
:1021E000EEF621EC0AF0B2C3EAFFB1C3E9FF03C087
:1021F000ABF302C0AAF301C0A9F300C0A8F3040E18
:10220000016EC250C30B0110C26E130E006E002E81
:10221000FED700D0186AF2BE188EF29E0701496BF5
:10222000B0C348F74B6B040E4A6F00015DEC01F040
:1022300018BEF28E02C003F00150200FE96E050EA9
:102240000220EA6EC282C2B2FED7C4CFD9F6C3CF93
:10225000D8F6000106EC0AF000C0EFFF01C0ECFF69
:1022600002C0ECFF03C0ECFF186AF2BE188EF29EAB
:102270000701496BB0C348F74B6B040E4A6F00016E
:102280005DEC01F018BEF28E02C003F00150200F89
:10229000E96E050E0220EA6EEFCF00F0ECCF01F000
:1022A000ECCF02F0ECCF03F0EACFB2F3E9CFB1F319
:1022B000D892AFC3EDF6AEC3ECF6ADC3EBF6ACC34C
:1022C000EAF603C0F1F602C0F0F601C0EFF600C076
:1022D000EEF621EC0AF0B2C3EAFFB1C3E9FF03C096
:1022E000AFF302C0AEF301C0ADF300C0ACF3030125
:1022F000B02B91D6A7C3EDF6A6C3ECF6A5C3EBF6BB
:10230000A4C3EAF60601F16BF06B480EEF6F850E81
:10231000EE6F00015DEC0BF003C0A7F302C0A6F363
:1023200001C0A5F300C0A4F3ABC3EDF6AAC3ECF65D
:10233000A9C3EBF6A8C3EAF60601F16BF06B480EF1
:10234000EF6F850EEE6F00015DEC0BF003C0ABF399
:1023500002C0AAF301C0A9F300C0A8F3AFC3EDF611
:10236000AEC3ECF6ADC3EBF6ACC3EAF60601F16B17
:10237000F06B480EEF6F850EEE6F00015DEC0BF019
:1023800003C0AFF302C0AEF301C0ADF300C0ACF3C5
:102390001AC0B5F319C0B4F30301B26BB36BD650D6
:1023A000D7CF03F0B227D750B323000EB423B52301
:1023B000B5C3C5F6B4C3C4F6B3C3C3F6B2C3C2F65D
:1023C00000010CEF0CF003C0EDF602C0ECF601C00A
:1023D000EBF600C0EAF60601F16B240EF06F740E06
:1023E000EF6F8C0EEE6F00015DEC0BF000C0B2F3EE
:1023F00001C0B3F302C0B4F303C0B5F3A7C3CDF675
:10240000A6C3CCF6A5C3CBF6A4C3CAF60601CF6B10
:10241000840ECE6FD16B640ED06F000171EC0DF0A5
:1024200000C0B6F301C0B7F302C0B8F303C0B9F3FC
:10243000ABC3CDF6AAC3CCF6A9C3CBF6A8C3CAF6E4
:10244000020E0601CF6F140ECE6FD16B640ED06FEB
:10245000000171EC0DF000C0BAF301C0BBF302C083
:10246000BCF303C0BDF3AFC3CDF6AEC3CCF6ADC372
:10247000CBF6ACC3CAF6050E0601CF6F200ECE6FA9
:10248000D16B640ED06F000171EC0DF000C0BEF393
:1024900001C0BFF302C0C0F303C0C1F3060EE96E72
:1024A000B5C3D1F6B4C3D0F6B3C3CFF6B2C3CEF63C
:1024B000030E0601D26F00017BDC200E0601DB6FEC
:1024C0000001EAEC09F0030EE96EA7C3D1F6A6C33A
:1024D000D0F6A5C3CFF6A4C3CEF60601D26F000195
:1024E00067DC200E0601DB6F0001EAEC09F0030E49
:1024F000E96EB9C3D1F6B8C3D0F6B7C3CFF6B6C349
:10250000CEF60601D26F000153DC200E0601DB6F10
:102510000001EAEC09F0030EE96EABC3D1F6AAC3E1
:10252000D0F6A9C3CFF6A8C3CEF60601D26F00013C
:102530003FDC200E0601DB6F0001EAEC09F0030E20
:10254000E96EBDC3D1F6BCC3D0F6BBC3CFF6BAC3E8
:10255000CEF60601D26F00012BDC200E0601DB6FE8
:102560000001EAEC09F0030EE96EAFC3D1F6AEC389
:10257000D0F6ADC3CFF6ACC3CEF60601D26F0001E4
:1025800017DC200E0601DB6F0001EAEC09F0030EF8
:10259000E96EC1C3D1F6C0C3D0F6BFC3CFF6BEC388
:1025A000CEF60601D26F000103DC200E0601DB6FC0
:1025B0000001EAEC09F00A0E0601DB6F0001EAEC0B
:1025C00009F00D0E0601DB6F0001EAEC09F01FD5E2
:0425D00009D5030026
:020000040030CA
:0E0000003CCE390E0087A1000FC00FE00F406C
:00000001FF
;PIC18F4550
;CRC=66E2 CREATED="15-V-10 23:52"
;CRC=6088 CREATED="30-IV-10 18:05"
/programy/C/PIC_C/mereni/inertial/main.lst
1,9 → 1,9
CCS PCH C Compiler, Version 4.090, 47914 15-V-10 23:52
CCS PCH C Compiler, Version 4.090, 47914 30-IV-10 18:05
 
Filename: D:\svnKaklik\programy\C\PIC_C\mereni\inertial\main.lst
 
ROM used: 9694 bytes (30%)
Largest free fragment is 23070
ROM used: 9680 bytes (30%)
Largest free fragment is 23084
RAM used: 1650 (81%) at main() level
1869 (91%) worst case
Stack: 17 worst case (8 in main + 9 for interrupts)
11097,10 → 11097,10
1FCA: MOVLW C0
1FCC: IORWF FF2,F
....................
.................... setup_adc_ports(AN0_TO_AN2|VSS_VREF);
.................... setup_adc_ports(AN0_TO_AN2|VSS_VDD);
1FCE: MOVF FC1,W
1FD0: ANDLW C0
1FD2: IORLW 1C
1FD2: IORLW 0C
1FD4: MOVWF FC1
.................... setup_adc(ADC_CLOCK_DIV_64);
1FD6: BCF FC0.0
11118,590 → 11118,582
.................... while(!usb_cdc_connected());
1FE4: BTFSS x80.0
1FE6: BRA 1FE4
.................... time=0;
1FE8: CLRF 1C
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");
.................... printf(usb_cdc_putc,"time[s] x xerr y yerr z zerr \nr");
1FE8: MOVLB 3
1FEA: CLRF xB1
1FEC: MOVF xB1,W
1FEE: MOVLB 0
1FF0: CALL 021E
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
1FF6: INCF xB1,F
1FF8: MOVWF 00
1FFA: MOVFF FE8,6DB
1FFE: MOVLB 0
2000: CALL 13D4
2004: MOVLW 25
2006: MOVLB 3
2008: SUBWF xB1,W
200A: BNZ 1FEC
....................
.................... while(usb_cdc_connected()) // pockej nez se pripoji seriovy port PC
.................... {
2018: MOVLB 0
201A: BTFSS x80.0
201C: BRA 25DE
200C: MOVLB 0
200E: BTFSS x80.0
2010: BRA 25D0
.................... for(i=0; i <BUFLEN; i++)
201E: MOVLB 3
2020: CLRF xB0
2022: MOVF xB0,W
2024: SUBLW 63
2026: BTFSS FD8.0
2028: BRA 2300
2012: MOVLB 3
2014: CLRF xB0
2016: MOVF xB0,W
2018: SUBLW 63
201A: BTFSS FD8.0
201C: BRA 22F4
.................... {
.................... set_adc_channel(0);
202A: MOVLW 00
202C: MOVWF 01
202E: MOVF FC2,W
2030: ANDLW C3
2032: IORWF 01,W
2034: MOVWF FC2
.................... set_adc_channel(1);
201E: MOVLW 04
2020: MOVWF 01
2022: MOVF FC2,W
2024: ANDLW C3
2026: IORWF 01,W
2028: MOVWF FC2
.................... delay_us(10);
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
202A: MOVLW 13
202C: MOVWF 00
202E: DECFSZ 00,F
2030: BRA 202E
2032: BRA 2034
2034: CLRF 18
2036: BTFSC FF2.7
2038: BSF 18.7
203A: BCF FF2.7
.................... x[i]=read_adc();
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
203C: MOVLB 7
203E: CLRF x49
2040: MOVFF 3B0,748
2044: CLRF x4B
2046: MOVLW 04
2048: MOVWF x4A
204A: MOVLB 0
204C: CALL 02BA
2050: BTFSC 18.7
2052: BSF FF2.7
2054: MOVFF 02,03
2058: MOVF 01,W
205A: ADDLW 84
205C: MOVWF FE9
205E: MOVLW 00
2060: ADDWFC 02,W
2062: MOVWF FEA
2064: BSF FC2.1
2066: BTFSC FC2.1
2068: BRA 2066
206A: MOVFF FC4,6D9
206E: MOVFF FC3,6D8
2072: MOVLB 0
2074: CALL 140C
2078: MOVFF 00,FEF
207C: MOVFF 01,FEC
2080: MOVFF 02,FEC
2084: MOVFF 03,FEC
2088: CLRF 18
208A: BTFSC FF2.7
208C: BSF 18.7
208E: BCF FF2.7
.................... xavg+=x[i];
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
2090: MOVLB 7
2092: CLRF x49
2094: MOVFF 3B0,748
2098: CLRF x4B
209A: MOVLW 04
209C: MOVWF x4A
209E: MOVLB 0
20A0: CALL 02BA
20A4: BTFSC 18.7
20A6: BSF FF2.7
20A8: MOVFF 02,03
20AC: MOVF 01,W
20AE: ADDLW 84
20B0: MOVWF FE9
20B2: MOVLW 00
20B4: ADDWFC 02,W
20B6: MOVWF FEA
20B8: MOVFF FEF,00
20BC: MOVFF FEC,01
20C0: MOVFF FEC,02
20C4: MOVFF FEC,03
20C8: MOVFF FEA,3B2
20CC: MOVFF FE9,3B1
20D0: BCF FD8.1
20D2: MOVFF 3A7,6ED
20D6: MOVFF 3A6,6EC
20DA: MOVFF 3A5,6EB
20DE: MOVFF 3A4,6EA
20E2: MOVFF 03,6F1
20E6: MOVFF 02,6F0
20EA: MOVFF 01,6EF
20EE: MOVFF 00,6EE
20F2: CALL 1442
20F6: MOVFF 3B2,FEA
20FA: MOVFF 3B1,FE9
20FE: MOVFF 03,3A7
2102: MOVFF 02,3A6
2106: MOVFF 01,3A5
210A: MOVFF 00,3A4
....................
.................... set_adc_channel(1);
211A: MOVLW 04
211C: MOVWF 01
211E: MOVF FC2,W
2120: ANDLW C3
2122: IORWF 01,W
2124: MOVWF FC2
210E: MOVLW 04
2110: MOVWF 01
2112: MOVF FC2,W
2114: ANDLW C3
2116: IORWF 01,W
2118: MOVWF FC2
.................... delay_us(10);
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
211A: MOVLW 13
211C: MOVWF 00
211E: DECFSZ 00,F
2120: BRA 211E
2122: BRA 2124
2124: CLRF 18
2126: BTFSC FF2.7
2128: BSF 18.7
212A: BCF FF2.7
.................... y[i]=read_adc();
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
212C: MOVLB 7
212E: CLRF x49
2130: MOVFF 3B0,748
2134: CLRF x4B
2136: MOVLW 04
2138: MOVWF x4A
213A: MOVLB 0
213C: CALL 02BA
2140: BTFSC 18.7
2142: BSF FF2.7
2144: MOVFF 02,03
2148: MOVF 01,W
214A: ADDLW 14
214C: MOVWF FE9
214E: MOVLW 02
2150: ADDWFC 02,W
2152: MOVWF FEA
2154: BSF FC2.1
2156: BTFSC FC2.1
2158: BRA 2156
215A: MOVFF FC4,6D9
215E: MOVFF FC3,6D8
2162: MOVLB 0
2164: CALL 140C
2168: MOVFF 00,FEF
216C: MOVFF 01,FEC
2170: MOVFF 02,FEC
2174: MOVFF 03,FEC
2178: CLRF 18
217A: BTFSC FF2.7
217C: BSF 18.7
217E: BCF FF2.7
.................... yavg+=y[i];
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
2180: MOVLB 7
2182: CLRF x49
2184: MOVFF 3B0,748
2188: CLRF x4B
218A: MOVLW 04
218C: MOVWF x4A
218E: MOVLB 0
2190: CALL 02BA
2194: BTFSC 18.7
2196: BSF FF2.7
2198: MOVFF 02,03
219C: MOVF 01,W
219E: ADDLW 14
21A0: MOVWF FE9
21A2: MOVLW 02
21A4: ADDWFC 02,W
21A6: MOVWF FEA
21A8: MOVFF FEF,00
21AC: MOVFF FEC,01
21B0: MOVFF FEC,02
21B4: MOVFF FEC,03
21B8: MOVFF FEA,3B2
21BC: MOVFF FE9,3B1
21C0: BCF FD8.1
21C2: MOVFF 3AB,6ED
21C6: MOVFF 3AA,6EC
21CA: MOVFF 3A9,6EB
21CE: MOVFF 3A8,6EA
21D2: MOVFF 03,6F1
21D6: MOVFF 02,6F0
21DA: MOVFF 01,6EF
21DE: MOVFF 00,6EE
21E2: CALL 1442
21E6: MOVFF 3B2,FEA
21EA: MOVFF 3B1,FE9
21EE: MOVFF 03,3AB
21F2: MOVFF 02,3AA
21F6: MOVFF 01,3A9
21FA: MOVFF 00,3A8
....................
.................... set_adc_channel(2);
220A: MOVLW 08
220C: MOVWF 01
220E: MOVF FC2,W
2210: ANDLW C3
2212: IORWF 01,W
2214: MOVWF FC2
.................... set_adc_channel(1);
21FE: MOVLW 04
2200: MOVWF 01
2202: MOVF FC2,W
2204: ANDLW C3
2206: IORWF 01,W
2208: MOVWF FC2
.................... delay_us(10);
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
220A: MOVLW 13
220C: MOVWF 00
220E: DECFSZ 00,F
2210: BRA 220E
2212: BRA 2214
2214: CLRF 18
2216: BTFSC FF2.7
2218: BSF 18.7
221A: BCF FF2.7
.................... z[i]=read_adc();
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
221C: MOVLB 7
221E: CLRF x49
2220: MOVFF 3B0,748
2224: CLRF x4B
2226: MOVLW 04
2228: MOVWF x4A
222A: MOVLB 0
222C: CALL 02BA
2230: BTFSC 18.7
2232: BSF FF2.7
2234: MOVFF 02,03
2238: MOVF 01,W
223A: ADDLW 20
223C: MOVWF FE9
223E: MOVLW 05
2240: ADDWFC 02,W
2242: MOVWF FEA
2244: BSF FC2.1
2246: BTFSC FC2.1
2248: BRA 2246
224A: MOVFF FC4,6D9
224E: MOVFF FC3,6D8
2252: MOVLB 0
2254: CALL 140C
2258: MOVFF 00,FEF
225C: MOVFF 01,FEC
2260: MOVFF 02,FEC
2264: MOVFF 03,FEC
2268: CLRF 18
226A: BTFSC FF2.7
226C: BSF 18.7
226E: BCF FF2.7
.................... zavg+=z[i];
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
2270: MOVLB 7
2272: CLRF x49
2274: MOVFF 3B0,748
2278: CLRF x4B
227A: MOVLW 04
227C: MOVWF x4A
227E: MOVLB 0
2280: CALL 02BA
2284: BTFSC 18.7
2286: BSF FF2.7
2288: MOVFF 02,03
228C: MOVF 01,W
228E: ADDLW 20
2290: MOVWF FE9
2292: MOVLW 05
2294: ADDWFC 02,W
2296: MOVWF FEA
2298: MOVFF FEF,00
229C: MOVFF FEC,01
22A0: MOVFF FEC,02
22A4: MOVFF FEC,03
22A8: MOVFF FEA,3B2
22AC: MOVFF FE9,3B1
22B0: BCF FD8.1
22B2: MOVFF 3AF,6ED
22B6: MOVFF 3AE,6EC
22BA: MOVFF 3AD,6EB
22BE: MOVFF 3AC,6EA
22C2: MOVFF 03,6F1
22C6: MOVFF 02,6F0
22CA: MOVFF 01,6EF
22CE: MOVFF 00,6EE
22D2: CALL 1442
22D6: MOVFF 3B2,FEA
22DA: MOVFF 3B1,FE9
22DE: MOVFF 03,3AF
22E2: MOVFF 02,3AE
22E6: MOVFF 01,3AD
22EA: MOVFF 00,3AC
.................... }
22FA: MOVLB 3
22FC: INCF xB0,F
22FE: BRA 2022
22EE: MOVLB 3
22F0: INCF xB0,F
22F2: BRA 2016
....................
.................... xavg=xavg/BUFLEN;
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
22F4: MOVFF 3A7,6ED
22F8: MOVFF 3A6,6EC
22FC: MOVFF 3A5,6EB
2300: MOVFF 3A4,6EA
2304: MOVLB 6
2306: CLRF xF1
2308: CLRF xF0
230A: MOVLW 48
230C: MOVWF xEF
230E: MOVLW 85
2310: MOVWF xEE
2312: MOVLB 0
2314: CALL 16BA
2318: MOVFF 03,3A7
231C: MOVFF 02,3A6
2320: MOVFF 01,3A5
2324: MOVFF 00,3A4
.................... yavg=yavg/BUFLEN;
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
2328: MOVFF 3AB,6ED
232C: MOVFF 3AA,6EC
2330: MOVFF 3A9,6EB
2334: MOVFF 3A8,6EA
2338: MOVLB 6
233A: CLRF xF1
233C: CLRF xF0
233E: MOVLW 48
2340: MOVWF xEF
2342: MOVLW 85
2344: MOVWF xEE
2346: MOVLB 0
2348: CALL 16BA
234C: MOVFF 03,3AB
2350: MOVFF 02,3AA
2354: MOVFF 01,3A9
2358: MOVFF 00,3A8
.................... zavg=zavg/BUFLEN;
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
235C: MOVFF 3AF,6ED
2360: MOVFF 3AE,6EC
2364: MOVFF 3AD,6EB
2368: MOVFF 3AC,6EA
236C: MOVLB 6
236E: CLRF xF1
2370: CLRF xF0
2372: MOVLW 48
2374: MOVWF xEF
2376: MOVLW 85
2378: MOVWF xEE
237A: MOVLB 0
237C: CALL 16BA
2380: MOVFF 03,3AF
2384: MOVFF 02,3AE
2388: MOVFF 01,3AD
238C: 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]
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
2390: MOVFF 1A,3B5
2394: MOVFF 19,3B4
2398: MOVLB 3
239A: CLRF xB2
239C: CLRF xB3
239E: MOVF FD6,W
23A0: MOVFF FD7,03
23A4: ADDWF xB2,F
23A6: MOVF FD7,W
23A8: ADDWFC xB3,F
23AA: MOVLW 00
23AC: ADDWFC xB4,F
23AE: ADDWFC xB5,F
23B0: MOVFF 3B5,6C5
23B4: MOVFF 3B4,6C4
23B8: MOVFF 3B3,6C3
23BC: MOVFF 3B2,6C2
23C0: MOVLB 0
23C2: GOTO 1818
23C6: MOVFF 03,6ED
23CA: MOVFF 02,6EC
23CE: MOVFF 01,6EB
23D2: MOVFF 00,6EA
23D6: MOVLB 6
23D8: CLRF xF1
23DA: MOVLW 24
23DC: MOVWF xF0
23DE: MOVLW 74
23E0: MOVWF xEF
23E2: MOVLW 8C
23E4: MOVWF xEE
23E6: MOVLB 0
23E8: CALL 16BA
23EC: MOVFF 00,3B2
23F0: MOVFF 01,3B3
23F4: MOVFF 02,3B4
23F8: MOVFF 03,3B5
23FC: MOVFF 3A7,6CD
2400: MOVFF 3A6,6CC
2404: MOVFF 3A5,6CB
2408: MOVFF 3A4,6CA
240C: MOVLB 6
240E: CLRF xCF
2410: MOVLW 84
2412: MOVWF xCE
2414: CLRF xD1
2416: MOVLW 64
2418: MOVWF xD0
241A: MOVLB 0
241C: CALL 1AE2
2420: MOVFF 00,3B6
2424: MOVFF 01,3B7
2428: MOVFF 02,3B8
242C: MOVFF 03,3B9
2430: MOVFF 3AB,6CD
2434: MOVFF 3AA,6CC
2438: MOVFF 3A9,6CB
243C: MOVFF 3A8,6CA
2440: MOVLW 02
2442: MOVLB 6
2444: MOVWF xCF
2446: MOVLW 14
2448: MOVWF xCE
244A: CLRF xD1
244C: MOVLW 64
244E: MOVWF xD0
2450: MOVLB 0
2452: CALL 1AE2
2456: MOVFF 00,3BA
245A: MOVFF 01,3BB
245E: MOVFF 02,3BC
2462: MOVFF 03,3BD
2466: MOVFF 3AF,6CD
246A: MOVFF 3AE,6CC
246E: MOVFF 3AD,6CB
2472: MOVFF 3AC,6CA
2476: MOVLW 05
2478: MOVLB 6
247A: MOVWF xCF
247C: MOVLW 20
247E: MOVWF xCE
2480: CLRF xD1
2482: MOVLW 64
2484: MOVWF xD0
2486: MOVLB 0
2488: CALL 1AE2
248C: MOVFF 00,3BE
2490: MOVFF 01,3BF
2494: MOVFF 02,3C0
2498: MOVFF 03,3C1
249C: MOVLW 06
249E: MOVWF FE9
24A0: MOVFF 3B5,6D1
24A4: MOVFF 3B4,6D0
24A8: MOVFF 3B3,6CF
24AC: MOVFF 3B2,6CE
24B0: MOVLW 03
24B2: MOVLB 6
24B4: MOVWF xD2
24B6: MOVLB 0
24B8: RCALL 1DB0
24BA: MOVLW 20
24BC: MOVLB 6
24BE: MOVWF xDB
24C0: MOVLB 0
24C2: CALL 13D4
24C6: MOVLW 03
24C8: MOVWF FE9
24CA: MOVFF 3A7,6D1
24CE: MOVFF 3A6,6D0
24D2: MOVFF 3A5,6CF
24D6: MOVFF 3A4,6CE
24DA: MOVLB 6
24DC: MOVWF xD2
24DE: MOVLB 0
24E0: RCALL 1DB0
24E2: MOVLW 20
24E4: MOVLB 6
24E6: MOVWF xDB
24E8: MOVLB 0
24EA: CALL 13D4
24EE: MOVLW 03
24F0: MOVWF FE9
24F2: MOVFF 3B9,6D1
24F6: MOVFF 3B8,6D0
24FA: MOVFF 3B7,6CF
24FE: MOVFF 3B6,6CE
2502: MOVLB 6
2504: MOVWF xD2
2506: MOVLB 0
2508: RCALL 1DB0
250A: MOVLW 20
250C: MOVLB 6
250E: MOVWF xDB
2510: MOVLB 0
2512: CALL 13D4
2516: MOVLW 03
2518: MOVWF FE9
251A: MOVFF 3AB,6D1
251E: MOVFF 3AA,6D0
2522: MOVFF 3A9,6CF
2526: MOVFF 3A8,6CE
252A: MOVLB 6
252C: MOVWF xD2
252E: MOVLB 0
2530: RCALL 1DB0
2532: MOVLW 20
2534: MOVLB 6
2536: MOVWF xDB
2538: MOVLB 0
253A: CALL 13D4
253E: MOVLW 03
2540: MOVWF FE9
2542: MOVFF 3BD,6D1
2546: MOVFF 3BC,6D0
254A: MOVFF 3BB,6CF
254E: MOVFF 3BA,6CE
2552: MOVLB 6
2554: MOVWF xD2
2556: MOVLB 0
2558: RCALL 1DB0
255A: MOVLW 20
255C: MOVLB 6
255E: MOVWF xDB
2560: MOVLB 0
2562: CALL 13D4
2566: MOVLW 03
2568: MOVWF FE9
256A: MOVFF 3AF,6D1
256E: MOVFF 3AE,6D0
2572: MOVFF 3AD,6CF
2576: MOVFF 3AC,6CE
257A: MOVLB 6
257C: MOVWF xD2
257E: MOVLB 0
2580: RCALL 1DB0
2582: MOVLW 20
2584: MOVLB 6
2586: MOVWF xDB
2588: MOVLB 0
258A: CALL 13D4
258E: MOVLW 03
2590: MOVWF FE9
2592: MOVFF 3C1,6D1
2596: MOVFF 3C0,6D0
259A: MOVFF 3BF,6CF
259E: MOVFF 3BE,6CE
25A2: MOVLB 6
25A4: MOVWF xD2
25A6: MOVLB 0
25A8: RCALL 1DB0
25AA: MOVLW 20
25AC: MOVLB 6
25AE: MOVWF xDB
25B0: MOVLB 0
25B2: CALL 13D4
25B6: MOVLW 0A
25B8: MOVLB 6
25BA: MOVWF xDB
25BC: MOVLB 0
25BE: CALL 13D4
25C2: MOVLW 0D
25C4: MOVLB 6
25C6: MOVWF xDB
25C8: MOVLB 0
25CA: CALL 13D4
.................... }
25DC: BRA 201A
25CE: BRA 200E
.................... }
25DE: BRA 1FE4
25D0: BRA 1FE4
.................... }
25E0: SLEEP
25D2: SLEEP
 
Configuration Fuses:
Word 1: CE3C IESO FCMEN HSPLL PLL5 CPUDIV4 USBDIV
/programy/C/PIC_C/mereni/inertial/main.pjt
17,18 → 17,9
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=main.c
2=
3=C:\Program Files\PICC\devices\18F4550.h
4=C:\Program Files\PICC\drivers\usb_cdc.h
5=C:\Program Files\PICC\drivers\pic18_usb.h
6=C:\Program Files\PICC\drivers\usb_hw_layer.h
7=C:\Program Files\PICC\drivers\usb_desc_cdc.h
8=C:\Program Files\PICC\drivers\usb.h
9=C:\Program Files\PICC\drivers\usb.c
10=C:\Program Files\PICC\drivers\pic18_usb.c
11=C:\Program Files\PICC\drivers\ctype.h
12=C:\Program Files\PICC\drivers\math.h
13=
2=..\..\..\..\..\..\MLAB\Designs\STOPWATCH02A\SW\main.h
3=main.h
4=
[Target Data]
OptionString=-p +FH
FileList=D:\svnKaklik\programy\C\PIC_C\mereni\inertial\main.c