FaxProcess.lst
上传用户:xhjmsc
上传日期:2019-09-13
资源大小:389k
文件大小:129k
- 395 //FRH DNC (disconnect) //Modity at Dec. 28,2006. DNC is the over flag
- 396 SendATcmdFRH();
- 00091E B012.... CALL #SendATcmdFRH
- 397
- 398 while (1)
- 399 {
- 400 ucRxIndex1=gucUartRxCnt-3;
- ??FaxRXProcess_22:
- 000922 7E40FD00 MOV.B #0xfd, R14
- 000926 5E52.... ADD.B &gucUartRxCnt, R14
- 00092A 4B4E MOV.B R14, R11
- 401 ucRxIndex0=gucUartRxCnt-2;
- 00092C 7E40FE00 MOV.B #0xfe, R14
- 000930 5E52.... ADD.B &gucUartRxCnt, R14
- 000934 484E MOV.B R14, R8
- 402 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x54==aucUartRxBuf[ucRxIndex1]))
- 000936 38F0FF00 AND.W #0xff, R8
- 00093A F8900D00.... CMP.B #0xd, aucUartRxBuf(R8)
- 000940 0620 JNE ??FaxRXProcess_92
- 000942 3BF0FF00 AND.W #0xff, R11
- 000946 FB905400.... CMP.B #0x54, aucUartRxBuf(R11)
- 00094C 1724 JEQ ??FaxRXProcess_93
- 403 break;
- 404 //if check time>min. 5S, Receive Fax error, progra should be quit
- 405 RxFaxTimeOverflowErrorQuit();
- ??FaxRXProcess_92:
- 00094E 1E42.... MOV.W &gwTimeOverflowCount, R14
- 000952 1F43 MOV.W #0x1, R15
- 000954 0F5E ADD.W R14, R15
- 000956 824F.... MOV.W R15, &gwTimeOverflowCount
- 00095A 3E93 CMP.W #0xffff, R14
- 00095C 0420 JNE ??FaxRXProcess_94
- 00095E D253.... ADD.B #0x1, &gucTimeOverflowCount
- 000962 C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??FaxRXProcess_94:
- 000966 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 00096C DA23 JNE ??FaxRXProcess_22
- 00096E F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 000974 C243.... MOV.B #0x0, &gucTimeOverflowCount
- 000978 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 406 }
- 407
- 408 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- ??FaxRXProcess_93:
- 00097C F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 000982 B725 JEQ ??FaxRXProcess_63
- 409
- 410 while (1)
- 411 {
- 412 ucRxIndex1=gucUartRxCnt-3;
- ??FaxRXProcess_23:
- 000984 7E40FD00 MOV.B #0xfd, R14
- 000988 5E52.... ADD.B &gucUartRxCnt, R14
- 00098C 4B4E MOV.B R14, R11
- 413 ucRxIndex0=gucUartRxCnt-2;
- 00098E 7E40FE00 MOV.B #0xfe, R14
- 000992 5E52.... ADD.B &gucUartRxCnt, R14
- 000996 484E MOV.B R14, R8
- 414 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x4B==aucUartRxBuf[ucRxIndex1]))
- 000998 38F0FF00 AND.W #0xff, R8
- 00099C F8900D00.... CMP.B #0xd, aucUartRxBuf(R8)
- 0009A2 0620 JNE ??FaxRXProcess_95
- 0009A4 3BF0FF00 AND.W #0xff, R11
- 0009A8 FB904B00.... CMP.B #0x4b, aucUartRxBuf(R11)
- 0009AE 1724 JEQ ??FaxRXProcess_96
- 415 break;
- 416 //if check time>min. 5S, Receive Fax error, progra should be quit
- 417 RxFaxTimeOverflowErrorQuit();
- ??FaxRXProcess_95:
- 0009B0 1E42.... MOV.W &gwTimeOverflowCount, R14
- 0009B4 1F43 MOV.W #0x1, R15
- 0009B6 0F5E ADD.W R14, R15
- 0009B8 824F.... MOV.W R15, &gwTimeOverflowCount
- 0009BC 3E93 CMP.W #0xffff, R14
- 0009BE 0420 JNE ??FaxRXProcess_97
- 0009C0 D253.... ADD.B #0x1, &gucTimeOverflowCount
- 0009C4 C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??FaxRXProcess_97:
- 0009C8 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 0009CE DA23 JNE ??FaxRXProcess_23
- 0009D0 F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 0009D6 C243.... MOV.B #0x0, &gucTimeOverflowCount
- 0009DA 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 418 }
- 419
- 420 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- ??FaxRXProcess_96:
- 0009DE F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 0009E4 8625 JEQ ??FaxRXProcess_63
- 421
- 422 //FaxRearDataProcess
- 423 while (gdwRxQueueRearCnt-gdwRxQueueFrontCnt>=32)
- ??FaxRXProcess_24:
- 0009E6 1E42.... MOV.W &gdwRxQueueRearCnt, R14
- 0009EA 1F42.... MOV.W &gdwRxQueueRearCnt + 0x2, R15
- 0009EE 1E82.... SUB.W &gdwRxQueueFrontCnt, R14
- 0009F2 1F72.... SUBC.W &gdwRxQueueFrontCnt + 0x2, R15
- 0009F6 0F93 CMP.W #0x0, R15
- 0009F8 7F28 JNC ??FaxRXProcess_98
- 0009FA 0320 JNE ??FaxRXProcess_99
- 0009FC 3E902000 CMP.W #0x20, R14
- 000A00 7B28 JNC ??FaxRXProcess_98
- 424 {
- 425 if (gdwRxQueueRearCnt-gdwRxQueueFrontCnt>254) // if data num is more than the buffer space, error happan.
- ??FaxRXProcess_99:
- 000A02 1E42.... MOV.W &gdwRxQueueRearCnt, R14
- 000A06 1F42.... MOV.W &gdwRxQueueRearCnt + 0x2, R15
- 000A0A 1E82.... SUB.W &gdwRxQueueFrontCnt, R14
- 000A0E 1F72.... SUBC.W &gdwRxQueueFrontCnt + 0x2, R15
- 000A12 0F93 CMP.W #0x0, R15
- 000A14 0628 JNC ??FaxRXProcess_100
- 000A16 0320 JNE ??FaxRXProcess_101
- 000A18 3E90FF00 CMP.W #0xff, R14
- 000A1C 0228 JNC ??FaxRXProcess_100
- 426 {
- 427 gucGeneralStatus |= FAXRXERROR;
- ??FaxRXProcess_101:
- 000A1E D2D3.... BIS.B #0x1, &gucGeneralStatus
- 428 }
- 429 if (wGeneralCount++<64) // 32*64=2048
- ??FaxRXProcess_100:
- 000A22 0E47 MOV.W R7, R14
- 000A24 1743 MOV.W #0x1, R7
- 000A26 075E ADD.W R14, R7
- 000A28 3E904000 CMP.W #0x40, R14
- 000A2C 172C JC ??FaxRXProcess_102
- 430 {
- 431 for (ucGeneralCnt=0;ucGeneralCnt<32;ucGeneralCnt++)
- 000A2E 4A43 MOV.B #0x0, R10
- ??FaxRXProcess_25:
- 000A30 7A902000 CMP.B #0x20, R10
- 000A34 D82F JC ??FaxRXProcess_24
- 432 {
- 433 FLASH_CON_PORT_OUT&=~WE;
- 000A36 D2C32900 BIC.B #0x1, &0x29
- 434 DATA_PORT_OUT=aucUartRxBuf[gpucQueueFront++];
- 000A3A 5E42.... MOV.B &gpucQueueFront, R14
- 000A3E 3EF0FF00 AND.W #0xff, R14
- 000A42 D24E....3100 MOV.B aucUartRxBuf(R14), &0x31
- 000A48 D253.... ADD.B #0x1, &gpucQueueFront
- 435 gdwRxQueueFrontCnt++; //The total num that is writed to flash
- 000A4C 9253.... ADD.W #0x1, &gdwRxQueueFrontCnt
- 000A50 8263.... ADDC.W #0x0, &gdwRxQueueFrontCnt + 0x2
- 436 FLASH_CON_PORT_OUT |= WE;
- 000A54 D2D32900 BIS.B #0x1, &0x29
- 437 }
- 000A58 5A53 ADD.B #0x1, R10
- 000A5A EA3F JMP ??FaxRXProcess_25
- 438 }
- 439 else
- 440 {
- 441 wGeneralCount=0;
- ??FaxRXProcess_102:
- 000A5C 0743 MOV.W #0x0, R7
- 442
- 443 COMMAND_VAL=0X10; //10H INITIATES PROGRAM
- 000A5E F2401000.... MOV.B #0x10, &COMMAND_VAL
- 444 COMMAND_LATCH_INTO();
- 000A64 B012.... CALL #COMMAND_LATCH_INTO
- 445
- 446 READ_STATUS();
- 000A68 B012.... CALL #READ_STATUS
- 447 ucFlashSttsOverflowCnt=0;
- 000A6C 4643 MOV.B #0x0, R6
- 448 while (FLASH_STATUS==1&&(ucFlashSttsOverflowCnt++)<2)
- ??FaxRXProcess_26:
- 000A6E D293.... CMP.B #0x1, &FLASH_STATUS
- 000A72 0520 JNE ??FaxRXProcess_103
- 000A74 4E46 MOV.B R6, R14
- 000A76 5643 MOV.B #0x1, R6
- 000A78 465E ADD.B R14, R6
- 000A7A 6E93 CMP.B #0x2, R14
- 000A7C F82B JNC ??FaxRXProcess_26
- 449 {
- 450 ;//ERASE_ONE_BLOCK();
- 451 //PROGRAM_ONE_PAGE();
- 452 }
- 453 if (wPageAddress<2559) wPageAddress++;//add at Jan. 18, 2007
- ??FaxRXProcess_103:
- 000A7E 3990FF09 CMP.W #0x9ff, R9
- 000A82 012C JC ??FaxRXProcess_27
- 000A84 1953 ADD.W #0x1, R9
- 454 do{
- 455 wNextPageAddress=wPageAddress+64;
- ??FaxRXProcess_27:
- 000A86 3E404000 MOV.W #0x40, R14
- 000A8A 0E59 ADD.W R9, R14
- 000A8C 054E MOV.W R14, R5
- 456 wPageAddress=CalNextPageAddress(wPageAddress);
- 000A8E 0C49 MOV.W R9, R12
- 000A90 B012.... CALL #CalNextPageAddress
- 000A94 094C MOV.W R12, R9
- 457 }while(wNextPageAddress==wPageAddress);
- 000A96 0599 CMP.W R9, R5
- 000A98 F627 JEQ ??FaxRXProcess_27
- 458 if (wPageAddress%64==0)
- 000A9A 0C49 MOV.W R9, R12
- 000A9C 3E404000 MOV.W #0x40, R14
- 000AA0 B012.... CALL #?DivMod16u
- 000AA4 0E93 CMP.W #0x0, R14
- 000AA6 0A20 JNE ??FaxRXProcess_104
- 459 {
- 460 ROW_ADDRESS_LOW=wPageAddress & 0XFF;
- 000AA8 C249.... MOV.B R9, &ROW_ADDRESS_LOW
- 461 ROW_ADDRESS_HIGH=(wPageAddress>>8) & 0XFF;
- 000AAC 0E49 MOV.W R9, R14
- 000AAE 8E10 SWPB R14
- 000AB0 3EF0FF00 AND.W #0xff, R14
- 000AB4 C24E.... MOV.B R14, &ROW_ADDRESS_HIGH
- 462 ERASE_ONE_BLOCK();
- 000AB8 B012.... CALL #ERASE_ONE_BLOCK
- 463 }
- 464 COMMAND_VAL=0X80;
- ??FaxRXProcess_104:
- 000ABC F2408000.... MOV.B #0x80, &COMMAND_VAL
- 465 COMMAND_LATCH_INTO();
- 000AC2 B012.... CALL #COMMAND_LATCH_INTO
- 466
- 467 //ADDRESS
- 468 ADDRESS_VALUE=0;//COLUMN_ADDRESS_LOW; //#0X00
- 000AC6 C243.... MOV.B #0x0, &ADDRESS_VALUE
- 469 ADDRESS_LATCH_INTO();
- 000ACA B012.... CALL #ADDRESS_LATCH_INTO
- 470
- 471 ADDRESS_VALUE=0;//COLUMN_ADDRESS_LOW; //#0X00
- 000ACE C243.... MOV.B #0x0, &ADDRESS_VALUE
- 472 ADDRESS_LATCH_INTO();
- 000AD2 B012.... CALL #ADDRESS_LATCH_INTO
- 473
- 474 ADDRESS_VALUE=wPageAddress & 0xff; //#0X00
- 000AD6 C249.... MOV.B R9, &ADDRESS_VALUE
- 475 ADDRESS_LATCH_INTO();
- 000ADA B012.... CALL #ADDRESS_LATCH_INTO
- 476
- 477 ADDRESS_VALUE=(wPageAddress>>8) & 0xff; //#0X00
- 000ADE 0E49 MOV.W R9, R14
- 000AE0 8E10 SWPB R14
- 000AE2 3EF0FF00 AND.W #0xff, R14
- 000AE6 C24E.... MOV.B R14, &ADDRESS_VALUE
- 478 ADDRESS_LATCH_INTO();
- 000AEA B012.... CALL #ADDRESS_LATCH_INTO
- 479
- 480 FLASH_CON_PORT_OUT &=~ ALE;
- 000AEE E2C32900 BIC.B #0x2, &0x29
- 481 //CALL DELAY_100US
- 482 //for(i=0;i<0xff;i++);
- 483 DATA_PORT_OUT_INITIAL; //MCU OUTPUT,MCU WRITE A DATA TO FLASH
- 000AF2 F2433200 MOV.B #0xff, &0x32
- 000AF6 773F JMP ??FaxRXProcess_24
- 484
- 485 }//else
- 486 }//while
- 487 //***************************************
- 488 wDataRearCount=gdwRxQueueRearCnt-gdwRxQueueFrontCnt;
- ??FaxRXProcess_98:
- 000AF8 1E42.... MOV.W &gdwRxQueueRearCnt, R14
- 000AFC 1E82.... SUB.W &gdwRxQueueFrontCnt, R14
- 000B00 814E0200 MOV.W R14, 0x2(SP)
- 489 if (wDataRearCount)//wDataRearCount<2048-wGeneralCount*ucGeneralCnt)
- 000B04 81930200 CMP.W #0x0, 0x2(SP)
- 000B08 2724 JEQ ??FaxRXProcess_105
- 490 {
- 491 //for (ucGeneralCnt=0;ucGeneralCnt<wGeneralCount;ucGeneralCnt++)
- 492 for (ucGeneralCnt=0;ucGeneralCnt<wDataRearCount;ucGeneralCnt++)
- 000B0A 4A43 MOV.B #0x0, R10
- ??FaxRXProcess_28:
- 000B0C 4E4A MOV.B R10, R14
- 000B0E 3EF0FF00 AND.W #0xff, R14
- 000B12 1E910200 CMP.W 0x2(SP), R14
- 000B16 132C JC ??FaxRXProcess_106
- 493 {
- 494 FLASH_CON_PORT_OUT&=~WE;
- 000B18 D2C32900 BIC.B #0x1, &0x29
- 495 DATA_PORT_OUT=aucUartRxBuf[gpucQueueFront++];
- 000B1C 5E42.... MOV.B &gpucQueueFront, R14
- 000B20 3EF0FF00 AND.W #0xff, R14
- 000B24 D24E....3100 MOV.B aucUartRxBuf(R14), &0x31
- 000B2A D253.... ADD.B #0x1, &gpucQueueFront
- 496 gdwRxQueueFrontCnt++;
- 000B2E 9253.... ADD.W #0x1, &gdwRxQueueFrontCnt
- 000B32 8263.... ADDC.W #0x0, &gdwRxQueueFrontCnt + 0x2
- 497 FLASH_CON_PORT_OUT |= WE;
- 000B36 D2D32900 BIS.B #0x1, &0x29
- 498 }
- 000B3A 5A53 ADD.B #0x1, R10
- 000B3C E73F JMP ??FaxRXProcess_28
- 499
- 500 wGeneralCount=0;
- ??FaxRXProcess_106:
- 000B3E 0743 MOV.W #0x0, R7
- 501 COMMAND_VAL=0X10; //10H INITIATES PROGRAM
- 000B40 F2401000.... MOV.B #0x10, &COMMAND_VAL
- 502 COMMAND_LATCH_INTO();
- 000B46 B012.... CALL #COMMAND_LATCH_INTO
- 503
- 504 READ_STATUS();
- 000B4A B012.... CALL #READ_STATUS
- 505 ucFlashSttsOverflowCnt=0;
- 000B4E 4643 MOV.B #0x0, R6
- 506 if(FLASH_STATUS==1&&(ucFlashSttsOverflowCnt++)<2)
- 000B50 D293.... CMP.B #0x1, &FLASH_STATUS
- 000B54 0120 JNE ??FaxRXProcess_105
- 000B56 5653 ADD.B #0x1, R6
- 507 {
- 508 ;//ERASE_ONE_BLOCK();
- 509 //PROGRAM_ONE_PAGE();
- 510 }
- 511 }//if
- 512
- 513
- 514
- 515
- 516
- 517 SendATcmdH0();
- ??FaxRXProcess_105:
- 000B58 B012.... CALL #SendATcmdH0
- 518
- 519 while (1)
- 520 {
- 521 ucRxIndex1=gucUartRxCnt-3;
- ??FaxRXProcess_29:
- 000B5C 7E40FD00 MOV.B #0xfd, R14
- 000B60 5E52.... ADD.B &gucUartRxCnt, R14
- 000B64 4B4E MOV.B R14, R11
- 522 ucRxIndex0=gucUartRxCnt-2;
- 000B66 7E40FE00 MOV.B #0xfe, R14
- 000B6A 5E52.... ADD.B &gucUartRxCnt, R14
- 000B6E 484E MOV.B R14, R8
- 523 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x4B==aucUartRxBuf[ucRxIndex1]))
- 000B70 38F0FF00 AND.W #0xff, R8
- 000B74 F8900D00.... CMP.B #0xd, aucUartRxBuf(R8)
- 000B7A 0620 JNE ??FaxRXProcess_107
- 000B7C 3BF0FF00 AND.W #0xff, R11
- 000B80 FB904B00.... CMP.B #0x4b, aucUartRxBuf(R11)
- 000B86 1724 JEQ ??FaxRXProcess_108
- 524 break;
- 525 //if check time>min. 5S, Receive Fax error, progra should be quit
- 526 RxFaxTimeOverflowErrorQuit();
- ??FaxRXProcess_107:
- 000B88 1E42.... MOV.W &gwTimeOverflowCount, R14
- 000B8C 1F43 MOV.W #0x1, R15
- 000B8E 0F5E ADD.W R14, R15
- 000B90 824F.... MOV.W R15, &gwTimeOverflowCount
- 000B94 3E93 CMP.W #0xffff, R14
- 000B96 0420 JNE ??FaxRXProcess_109
- 000B98 D253.... ADD.B #0x1, &gucTimeOverflowCount
- 000B9C C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??FaxRXProcess_109:
- 000BA0 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 000BA6 DA23 JNE ??FaxRXProcess_29
- 000BA8 F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 000BAE C243.... MOV.B #0x0, &gucTimeOverflowCount
- 000BB2 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 527 }
- 528
- 529 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- ??FaxRXProcess_108:
- 000BB6 F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 000BBC 9A24 JEQ ??FaxRXProcess_63
- 530 ATcmdDelay();
- 000BBE B012.... CALL #ATcmdDelay
- 531 ATcmdDelay();
- 000BC2 B012.... CALL #ATcmdDelay
- 532 ATcmdDelay();
- 000BC6 B012.... CALL #ATcmdDelay
- 533 ATcmdDelay();
- 000BCA B012.... CALL #ATcmdDelay
- 534
- 535 SendATcmdH0();
- 000BCE B012.... CALL #SendATcmdH0
- 536
- 537 while (1)
- 538 {
- 539 ucRxIndex1=gucUartRxCnt-3;
- ??FaxRXProcess_30:
- 000BD2 7E40FD00 MOV.B #0xfd, R14
- 000BD6 5E52.... ADD.B &gucUartRxCnt, R14
- 000BDA 4B4E MOV.B R14, R11
- 540 ucRxIndex0=gucUartRxCnt-2;
- 000BDC 7E40FE00 MOV.B #0xfe, R14
- 000BE0 5E52.... ADD.B &gucUartRxCnt, R14
- 000BE4 484E MOV.B R14, R8
- 541 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x4B==aucUartRxBuf[ucRxIndex1]))
- 000BE6 38F0FF00 AND.W #0xff, R8
- 000BEA F8900D00.... CMP.B #0xd, aucUartRxBuf(R8)
- 000BF0 0620 JNE ??FaxRXProcess_110
- 000BF2 3BF0FF00 AND.W #0xff, R11
- 000BF6 FB904B00.... CMP.B #0x4b, aucUartRxBuf(R11)
- 000BFC 1724 JEQ ??FaxRXProcess_111
- 542 break;
- 543 //if check time>min. 5S, Receive Fax error, progra should be quit
- 544 RxFaxTimeOverflowErrorQuit();
- ??FaxRXProcess_110:
- 000BFE 1E42.... MOV.W &gwTimeOverflowCount, R14
- 000C02 1F43 MOV.W #0x1, R15
- 000C04 0F5E ADD.W R14, R15
- 000C06 824F.... MOV.W R15, &gwTimeOverflowCount
- 000C0A 3E93 CMP.W #0xffff, R14
- 000C0C 0420 JNE ??FaxRXProcess_112
- 000C0E D253.... ADD.B #0x1, &gucTimeOverflowCount
- 000C12 C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??FaxRXProcess_112:
- 000C16 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 000C1C DA23 JNE ??FaxRXProcess_30
- 000C1E F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 000C24 C243.... MOV.B #0x0, &gucTimeOverflowCount
- 000C28 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 545 }
- 546 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- ??FaxRXProcess_111:
- 000C2C F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 000C32 5F24 JEQ ??FaxRXProcess_63
- 547 ATcmdDelay();
- 000C34 B012.... CALL #ATcmdDelay
- 548 ATcmdDelay();
- 000C38 B012.... CALL #ATcmdDelay
- 549 ATcmdDelay();
- 000C3C B012.... CALL #ATcmdDelay
- 550 ATcmdDelay();
- 000C40 B012.... CALL #ATcmdDelay
- 551 ATcmdDelay();
- 000C44 B012.... CALL #ATcmdDelay
- 552 ATcmdDelay();
- 000C48 B012.... CALL #ATcmdDelay
- 553 ATcmdDelay();
- 000C4C B012.... CALL #ATcmdDelay
- 554 ATcmdDelay();
- 000C50 B012.... CALL #ATcmdDelay
- 555 //AT Fclass0
- 556
- 557 SendATcmdFCLASS0();
- 000C54 B012.... CALL #SendATcmdFCLASS0
- 558 ATcmdDelay();
- 000C58 B012.... CALL #ATcmdDelay
- 559 ATcmdDelay();
- 000C5C B012.... CALL #ATcmdDelay
- 560 ATcmdDelay();
- 000C60 B012.... CALL #ATcmdDelay
- 561 ATcmdDelay();
- 000C64 B012.... CALL #ATcmdDelay
- 562 //AT
- 563 SendATcmdPrefix();
- 000C68 B012.... CALL #SendATcmdPrefix
- 564 ATcmdDelay();
- 000C6C B012.... CALL #ATcmdDelay
- 565 SendATcmdSuffix();
- 000C70 B012.... CALL #SendATcmdSuffix
- 566 ATcmdDelay();
- 000C74 B012.... CALL #ATcmdDelay
- 567 ATcmdDelay();
- 000C78 B012.... CALL #ATcmdDelay
- 568 ATcmdDelay();
- 000C7C B012.... CALL #ATcmdDelay
- 569 //AT
- 570 SendATcmdPrefix();
- 000C80 B012.... CALL #SendATcmdPrefix
- 571 ATcmdDelay();
- 000C84 B012.... CALL #ATcmdDelay
- 572 SendATcmdSuffix();
- 000C88 B012.... CALL #SendATcmdSuffix
- 573 ATcmdDelay();
- 000C8C B012.... CALL #ATcmdDelay
- 574 ATcmdDelay();
- 000C90 B012.... CALL #ATcmdDelay
- 575 ATcmdDelay();
- 000C94 B012.... CALL #ATcmdDelay
- 576 //AT
- 577 SendATcmdPrefix();
- 000C98 B012.... CALL #SendATcmdPrefix
- 578 ATcmdDelay();
- 000C9C B012.... CALL #ATcmdDelay
- 579 SendATcmdSuffix();
- 000CA0 B012.... CALL #SendATcmdSuffix
- 580 ATcmdDelay();
- 000CA4 B012.... CALL #ATcmdDelay
- 581 ATcmdDelay();
- 000CA8 B012.... CALL #ATcmdDelay
- 582 ATcmdDelay();
- 000CAC B012.... CALL #ATcmdDelay
- 583
- 584 SendATconfigFE0EndofRX();
- 000CB0 B012.... CALL #SendATconfigFE0EndofRX
- 585 ATcmdDelay();
- 000CB4 B012.... CALL #ATcmdDelay
- 586 ATcmdDelay();
- 000CB8 B012.... CALL #ATcmdDelay
- 587 ATcmdDelay();
- 000CBC B012.... CALL #ATcmdDelay
- 588 ATcmdDelay();
- 000CC0 B012.... CALL #ATcmdDelay
- 589
- 590
- 591 SendATconfigS7RX();
- 000CC4 B012.... CALL #SendATconfigS7RX
- 592 ATcmdDelay();
- 000CC8 B012.... CALL #ATcmdDelay
- 593 ATcmdDelay();
- 000CCC B012.... CALL #ATcmdDelay
- 594 ATcmdDelay();
- 000CD0 B012.... CALL #ATcmdDelay
- 595 ATcmdDelay();
- 000CD4 B012.... CALL #ATcmdDelay
- 596
- 597 SendATconfigS0RX();
- 000CD8 B012.... CALL #SendATconfigS0RX
- 598 ATcmdDelay();
- 000CDC B012.... CALL #ATcmdDelay
- 599 ATcmdDelay();
- 000CE0 B012.... CALL #ATcmdDelay
- 600 ATcmdDelay();
- 000CE4 B012.... CALL #ATcmdDelay
- 601 ATcmdDelay();
- 000CE8 B012.... CALL #ATcmdDelay
- 602
- 603
- 604
- 605
- 606
- 607
- 608
- 609
- 610 //***************************************/
- 611 //gucRxTxFlag = DTERX;// set Rx Tx flag
- 612 _NOP();
- 000CEC 0343 NOP
- 613 gwPageAddress = wPageAddress;
- 000CEE 8249.... MOV.W R9, &gwPageAddress
- 614 /*
- 615 while (1)
- 616 {
- 617 SendATcmdModemSoftReset();
- 618 ATcmdDelay();
- 619 ATcmdDelay();
- 620
- 621 ucRxIndex1=gucUartRxCnt-3;
- 622 ucRxIndex0=gucUartRxCnt-2;
- 623 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x4B==aucUartRxBuf[ucRxIndex1]))
- 624 {break;}
- 625 }//while
- 626 */
- 627
- 628 }//FaxRXProcess
- ??FaxRXProcess_63:
- 000CF2 2152 ADD.W #0x4, SP
- 000CF4 3040.... BR #?Epilogue8
- 629
- In segment CODE, align 2, align-sorted
- 630 void FaxRxInit(void)
- FaxRxInit:
- 631 {
- 632
- 633 SendATconfigFS0();
- 000000 B012.... CALL #SendATconfigFS0
- 634 ATcmdDelay();
- 000004 B012.... CALL #ATcmdDelay
- 635 ATcmdDelay();
- 000008 B012.... CALL #ATcmdDelay
- 636 ATcmdDelay();
- 00000C B012.... CALL #ATcmdDelay
- 637 //AT
- 638 SendATcmdPrefix();
- 000010 B012.... CALL #SendATcmdPrefix
- 639 ATcmdDelay();
- 000014 B012.... CALL #ATcmdDelay
- 640 SendATcmdSuffix();
- 000018 B012.... CALL #SendATcmdSuffix
- 641 ATcmdDelay();
- 00001C B012.... CALL #ATcmdDelay
- 642 ATcmdDelay();
- 000020 B012.... CALL #ATcmdDelay
- 643 ATcmdDelay();
- 000024 B012.... CALL #ATcmdDelay
- 644
- 645 SendATconfigS7();
- 000028 B012.... CALL #SendATconfigS7
- 646 ATcmdDelay();
- 00002C B012.... CALL #ATcmdDelay
- 647 ATcmdDelay();
- 000030 B012.... CALL #ATcmdDelay
- 648 ATcmdDelay();
- 000034 B012.... CALL #ATcmdDelay
- 649
- 650 SendATconfigX4M1();
- 000038 B012.... CALL #SendATconfigX4M1
- 651 ATcmdDelay();
- 00003C B012.... CALL #ATcmdDelay
- 652 ATcmdDelay();
- 000040 B012.... CALL #ATcmdDelay
- 653 ATcmdDelay();
- 000044 B012.... CALL #ATcmdDelay
- 654
- 655 SendATcmdFCLASS();
- 000048 B012.... CALL #SendATcmdFCLASS
- 656 ATcmdDelay();
- 00004C B012.... CALL #ATcmdDelay
- 657 ATcmdDelay();
- 000050 B012.... CALL #ATcmdDelay
- 658 ATcmdDelay();
- 000054 B012.... CALL #ATcmdDelay
- 659 //AT
- 660 SendATcmdPrefix();
- 000058 B012.... CALL #SendATcmdPrefix
- 661 ATcmdDelay();
- 00005C B012.... CALL #ATcmdDelay
- 662 SendATcmdSuffix();
- 000060 B012.... CALL #SendATcmdSuffix
- 663 ATcmdDelay();
- 000064 B012.... CALL #ATcmdDelay
- 664 ATcmdDelay();
- 000068 B012.... CALL #ATcmdDelay
- 665 ATcmdDelay();
- 00006C B012.... CALL #ATcmdDelay
- 666
- 667 SendATcmdFCLASS();
- 000070 B012.... CALL #SendATcmdFCLASS
- 668 ATcmdDelay();
- 000074 B012.... CALL #ATcmdDelay
- 669 ATcmdDelay();
- 000078 B012.... CALL #ATcmdDelay
- 670 ATcmdDelay();
- 00007C B012.... CALL #ATcmdDelay
- 671 //AT
- 672 SendATcmdPrefix();
- 000080 B012.... CALL #SendATcmdPrefix
- 673 ATcmdDelay();
- 000084 B012.... CALL #ATcmdDelay
- 674 SendATcmdSuffix();
- 000088 B012.... CALL #SendATcmdSuffix
- 675 ATcmdDelay();
- 00008C B012.... CALL #ATcmdDelay
- 676 ATcmdDelay();
- 000090 B012.... CALL #ATcmdDelay
- 677 ATcmdDelay();
- 000094 3040.... BR #ATcmdDelay
- 678 }
- 679
- In segment CODE, align 2, keep-with-next
- 680 void PageImageEndProcess(void)
- PageImageEndProcess:
- 681 {
- 000000 0A12 PUSH.W R10
- 000002 0B12 PUSH.W R11
- 682 unsigned char ucRxIndex1=0,ucRxIndex0=0;
- 000004 4B43 MOV.B #0x0, R11
- 000006 4A43 MOV.B #0x0, R10
- 683 //FRHEOP (end of procedure)
- 684 SendATcmdFRH();
- 000008 B012.... CALL #SendATcmdFRH
- 685 //ATcmdDelay();
- 686
- 687 while (1)
- 688 {
- 689 ucRxIndex1=gucUartRxCnt-3;
- ??PageImageEndProcess_0:
- 00000C 7E40FD00 MOV.B #0xfd, R14
- 000010 5E52.... ADD.B &gucUartRxCnt, R14
- 000014 4B4E MOV.B R14, R11
- 690 ucRxIndex0=gucUartRxCnt-2;
- 000016 7E40FE00 MOV.B #0xfe, R14
- 00001A 5E52.... ADD.B &gucUartRxCnt, R14
- 00001E 4A4E MOV.B R14, R10
- 691 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x54==aucUartRxBuf[ucRxIndex1]))
- 000020 3AF0FF00 AND.W #0xff, R10
- 000024 FA900D00.... CMP.B #0xd, aucUartRxBuf(R10)
- 00002A 0620 JNE ??PageImageEndProcess_4
- 00002C 3BF0FF00 AND.W #0xff, R11
- 000030 FB905400.... CMP.B #0x54, aucUartRxBuf(R11)
- 000036 1724 JEQ ??PageImageEndProcess_5
- 692 break;
- 693 //if check time>min. 5S, Receive Fax error, progra should be quit
- 694 RxFaxTimeOverflowErrorQuit();
- ??PageImageEndProcess_4:
- 000038 1E42.... MOV.W &gwTimeOverflowCount, R14
- 00003C 1F43 MOV.W #0x1, R15
- 00003E 0F5E ADD.W R14, R15
- 000040 824F.... MOV.W R15, &gwTimeOverflowCount
- 000044 3E93 CMP.W #0xffff, R14
- 000046 0420 JNE ??PageImageEndProcess_6
- 000048 D253.... ADD.B #0x1, &gucTimeOverflowCount
- 00004C C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??PageImageEndProcess_6:
- 000050 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 000056 DA23 JNE ??PageImageEndProcess_0
- 000058 F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 00005E C243.... MOV.B #0x0, &gucTimeOverflowCount
- 000062 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 695 }//while
- 696
- 697 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- ??PageImageEndProcess_5:
- 000066 F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 00006C 9524 JEQ ??PageImageEndProcess_7
- 698
- 699 while (1)
- 700 {
- 701 ucRxIndex1=gucUartRxCnt-3;
- ??PageImageEndProcess_1:
- 00006E 7E40FD00 MOV.B #0xfd, R14
- 000072 5E52.... ADD.B &gucUartRxCnt, R14
- 000076 4B4E MOV.B R14, R11
- 702 ucRxIndex0=gucUartRxCnt-2;
- 000078 7E40FE00 MOV.B #0xfe, R14
- 00007C 5E52.... ADD.B &gucUartRxCnt, R14
- 000080 4A4E MOV.B R14, R10
- 703 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x4B==aucUartRxBuf[ucRxIndex1]))
- 000082 3AF0FF00 AND.W #0xff, R10
- 000086 FA900D00.... CMP.B #0xd, aucUartRxBuf(R10)
- 00008C 0620 JNE ??PageImageEndProcess_8
- 00008E 3BF0FF00 AND.W #0xff, R11
- 000092 FB904B00.... CMP.B #0x4b, aucUartRxBuf(R11)
- 000098 1724 JEQ ??PageImageEndProcess_9
- 704 break;
- 705 //if check time>min. 5S, Receive Fax error, progra should be quit
- 706 RxFaxTimeOverflowErrorQuit();
- ??PageImageEndProcess_8:
- 00009A 1E42.... MOV.W &gwTimeOverflowCount, R14
- 00009E 1F43 MOV.W #0x1, R15
- 0000A0 0F5E ADD.W R14, R15
- 0000A2 824F.... MOV.W R15, &gwTimeOverflowCount
- 0000A6 3E93 CMP.W #0xffff, R14
- 0000A8 0420 JNE ??PageImageEndProcess_10
- 0000AA D253.... ADD.B #0x1, &gucTimeOverflowCount
- 0000AE C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??PageImageEndProcess_10:
- 0000B2 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 0000B8 DA23 JNE ??PageImageEndProcess_1
- 0000BA F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 0000C0 C243.... MOV.B #0x0, &gucTimeOverflowCount
- 0000C4 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 707 }
- 708
- 709 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- ??PageImageEndProcess_9:
- 0000C8 F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 0000CE 6424 JEQ ??PageImageEndProcess_7
- 710
- 711 //FTHMCF (message confirmation)
- 712 SendATcmdFTH();
- 0000D0 B012.... CALL #SendATcmdFTH
- 713 while (1)
- 714 {
- 715 ucRxIndex1=gucUartRxCnt-3;
- ??PageImageEndProcess_2:
- 0000D4 7E40FD00 MOV.B #0xfd, R14
- 0000D8 5E52.... ADD.B &gucUartRxCnt, R14
- 0000DC 4B4E MOV.B R14, R11
- 716 ucRxIndex0=gucUartRxCnt-2;
- 0000DE 7E40FE00 MOV.B #0xfe, R14
- 0000E2 5E52.... ADD.B &gucUartRxCnt, R14
- 0000E6 4A4E MOV.B R14, R10
- 717 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x54==aucUartRxBuf[ucRxIndex1]))
- 0000E8 3AF0FF00 AND.W #0xff, R10
- 0000EC FA900D00.... CMP.B #0xd, aucUartRxBuf(R10)
- 0000F2 0620 JNE ??PageImageEndProcess_11
- 0000F4 3BF0FF00 AND.W #0xff, R11
- 0000F8 FB905400.... CMP.B #0x54, aucUartRxBuf(R11)
- 0000FE 1724 JEQ ??PageImageEndProcess_12
- 718 break;
- 719 //if check time>min. 5S, Receive Fax error, progra should be quit
- 720 RxFaxTimeOverflowErrorQuit();
- ??PageImageEndProcess_11:
- 000100 1E42.... MOV.W &gwTimeOverflowCount, R14
- 000104 1F43 MOV.W #0x1, R15
- 000106 0F5E ADD.W R14, R15
- 000108 824F.... MOV.W R15, &gwTimeOverflowCount
- 00010C 3E93 CMP.W #0xffff, R14
- 00010E 0420 JNE ??PageImageEndProcess_13
- 000110 D253.... ADD.B #0x1, &gucTimeOverflowCount
- 000114 C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??PageImageEndProcess_13:
- 000118 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 00011E DA23 JNE ??PageImageEndProcess_2
- 000120 F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 000126 C243.... MOV.B #0x0, &gucTimeOverflowCount
- 00012A 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 721 }
- 722
- 723 if (gucFrhErrorStatus == 0x03) return; //add at Mar. 16, 2007.
- ??PageImageEndProcess_12:
- 00012E F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 000134 3124 JEQ ??PageImageEndProcess_7
- 724
- 725 Delay1500ms(); // delay 1.5S minimun 1 second
- 000136 B012.... CALL #Delay1500ms
- 726 SendATdataFTHMCF();
- 00013A B012.... CALL #SendATdataFTHMCF
- 727 while (1)
- 728 {
- 729 ucRxIndex1=gucUartRxCnt-3;
- ??PageImageEndProcess_3:
- 00013E 7E40FD00 MOV.B #0xfd, R14
- 000142 5E52.... ADD.B &gucUartRxCnt, R14
- 000146 4B4E MOV.B R14, R11
- 730 ucRxIndex0=gucUartRxCnt-2;
- 000148 7E40FE00 MOV.B #0xfe, R14
- 00014C 5E52.... ADD.B &gucUartRxCnt, R14
- 000150 4A4E MOV.B R14, R10
- 731 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x4B==aucUartRxBuf[ucRxIndex1]))
- 000152 3AF0FF00 AND.W #0xff, R10
- 000156 FA900D00.... CMP.B #0xd, aucUartRxBuf(R10)
- 00015C 0620 JNE ??PageImageEndProcess_14
- 00015E 3BF0FF00 AND.W #0xff, R11
- 000162 FB904B00.... CMP.B #0x4b, aucUartRxBuf(R11)
- 000168 1724 JEQ ??PageImageEndProcess_7
- 732 break;
- 733 //if check time>min. 5S, Receive Fax error, progra should be quit
- 734 RxFaxTimeOverflowErrorQuit();
- ??PageImageEndProcess_14:
- 00016A 1E42.... MOV.W &gwTimeOverflowCount, R14
- 00016E 1F43 MOV.W #0x1, R15
- 000170 0F5E ADD.W R14, R15
- 000172 824F.... MOV.W R15, &gwTimeOverflowCount
- 000176 3E93 CMP.W #0xffff, R14
- 000178 0420 JNE ??PageImageEndProcess_15
- 00017A D253.... ADD.B #0x1, &gucTimeOverflowCount
- 00017E C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??PageImageEndProcess_15:
- 000182 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 000188 DA23 JNE ??PageImageEndProcess_3
- 00018A F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 000190 C243.... MOV.B #0x0, &gucTimeOverflowCount
- 000194 8243.... MOV.W #0x0, &gwTimeOverflowCount
- ??PageImageEndProcess_7:
- 000198 3B41 POP.W R11
- 00019A 3A41 POP.W R10
- 00019C 3041 RET
- 735 }
- 736
- 737 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- 738 }
- 739
- 740
- In segment CODE, align 2, align-sorted
- 741 void FRHDncProcess(void)
- FRHDncProcess:
- 742 {
- 743 ;
- 744 }
- 000000 3041 RET
- 745
- In segment CODE, align 2, keep-with-next
- 746 void FthCsiDis(void)
- FthCsiDis:
- 747 {
- 000000 0A12 PUSH.W R10
- 000002 0B12 PUSH.W R11
- 000004 0812 PUSH.W R8
- 748 unsigned char ucRxIndex1=0,ucRxIndex0=0,
- 000006 4B43 MOV.B #0x0, R11
- 000008 4A43 MOV.B #0x0, R10
- 749 ucGeneralCount=0;
- 00000A 4843 MOV.B #0x0, R8
- 750 //FTH
- 751 SendATcmdFTH();
- 00000C B012.... CALL #SendATcmdFTH
- 752 while (1) //CONNECT(54) 0D 0A
- 753 {
- 754 ucRxIndex1=gucUartRxCnt-3;
- ??FthCsiDis_0:
- 000010 7E40FD00 MOV.B #0xfd, R14
- 000014 5E52.... ADD.B &gucUartRxCnt, R14
- 000018 4B4E MOV.B R14, R11
- 755 ucRxIndex0=gucUartRxCnt-2;
- 00001A 7E40FE00 MOV.B #0xfe, R14
- 00001E 5E52.... ADD.B &gucUartRxCnt, R14
- 000022 4A4E MOV.B R14, R10
- 756 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x54==aucUartRxBuf[ucRxIndex1]))
- 000024 3AF0FF00 AND.W #0xff, R10
- 000028 FA900D00.... CMP.B #0xd, aucUartRxBuf(R10)
- 00002E 0620 JNE ??FthCsiDis_4
- 000030 3BF0FF00 AND.W #0xff, R11
- 000034 FB905400.... CMP.B #0x54, aucUartRxBuf(R11)
- 00003A 1724 JEQ ??FthCsiDis_5
- 757 break;
- 758 //if check time>min. 5S, Receive Fax error, progra should be quit
- 759 RxFaxTimeOverflowErrorQuit();
- ??FthCsiDis_4:
- 00003C 1E42.... MOV.W &gwTimeOverflowCount, R14
- 000040 1F43 MOV.W #0x1, R15
- 000042 0F5E ADD.W R14, R15
- 000044 824F.... MOV.W R15, &gwTimeOverflowCount
- 000048 3E93 CMP.W #0xffff, R14
- 00004A 0420 JNE ??FthCsiDis_6
- 00004C D253.... ADD.B #0x1, &gucTimeOverflowCount
- 000050 C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??FthCsiDis_6:
- 000054 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 00005A DA23 JNE ??FthCsiDis_0
- 00005C F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 000062 C243.... MOV.B #0x0, &gucTimeOverflowCount
- 000066 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 760
- 761 }
- 762 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- ??FthCsiDis_5:
- 00006A F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 000070 6C24 JEQ ??FthCsiDis_7
- 763
- 764 Delay1500ms(); // delay 1.5S minimun 1 second
- 000072 B012.... CALL #Delay1500ms
- 765
- 766 SendATdataFTHCSI(); //The final bit is 0. The modem will generates CONNECT message.
- 000076 B012.... CALL #SendATdataFTHCSI
- 767 while (1) //CONNECT(54) 0D 0A
- 768 {
- 769 ucRxIndex1=gucUartRxCnt-3;
- ??FthCsiDis_1:
- 00007A 7E40FD00 MOV.B #0xfd, R14
- 00007E 5E52.... ADD.B &gucUartRxCnt, R14
- 000082 4B4E MOV.B R14, R11
- 770 ucRxIndex0=gucUartRxCnt-2;
- 000084 7E40FE00 MOV.B #0xfe, R14
- 000088 5E52.... ADD.B &gucUartRxCnt, R14
- 00008C 4A4E MOV.B R14, R10
- 771 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x54==aucUartRxBuf[ucRxIndex1]))
- 00008E 3AF0FF00 AND.W #0xff, R10
- 000092 FA900D00.... CMP.B #0xd, aucUartRxBuf(R10)
- 000098 0620 JNE ??FthCsiDis_8
- 00009A 3BF0FF00 AND.W #0xff, R11
- 00009E FB905400.... CMP.B #0x54, aucUartRxBuf(R11)
- 0000A4 1724 JEQ ??FthCsiDis_9
- 772 break;
- 773 //if check time>min. 5S, Receive Fax error, progra should be quit
- 774 RxFaxTimeOverflowErrorQuit();
- ??FthCsiDis_8:
- 0000A6 1E42.... MOV.W &gwTimeOverflowCount, R14
- 0000AA 1F43 MOV.W #0x1, R15
- 0000AC 0F5E ADD.W R14, R15
- 0000AE 824F.... MOV.W R15, &gwTimeOverflowCount
- 0000B2 3E93 CMP.W #0xffff, R14
- 0000B4 0420 JNE ??FthCsiDis_10
- 0000B6 D253.... ADD.B #0x1, &gucTimeOverflowCount
- 0000BA C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??FthCsiDis_10:
- 0000BE F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 0000C4 DA23 JNE ??FthCsiDis_1
- 0000C6 F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 0000CC C243.... MOV.B #0x0, &gucTimeOverflowCount
- 0000D0 8243.... MOV.W #0x0, &gwTimeOverflowCount
- 775 }
- 776 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- ??FthCsiDis_9:
- 0000D4 F2900300.... CMP.B #0x3, &gucFrhErrorStatus
- 0000DA 3724 JEQ ??FthCsiDis_7
- 777
- 778 for (ucGeneralCount=0; ucGeneralCount<50; ucGeneralCount++)// delay 1.5S minimun 1 second
- 0000DC 4843 MOV.B #0x0, R8
- ??FthCsiDis_2:
- 0000DE 78903200 CMP.B #0x32, R8
- 0000E2 042C JC ??FthCsiDis_11
- 779 {
- 780 ATcmdDelay(); //50ms
- 0000E4 B012.... CALL #ATcmdDelay
- 781 }
- 0000E8 5853 ADD.B #0x1, R8
- 0000EA F93F JMP ??FthCsiDis_2
- 782
- 783 SendATdataFTHDIS();//SendATdataFTHTSI(sizeof (FTHDIS)); a bug of Sep.18
- ??FthCsiDis_11:
- 0000EC B012.... CALL #SendATdataFTHDIS
- 784
- 785 while (1) //O K 0D 0A
- 786 {
- 787 ucRxIndex1=gucUartRxCnt-3;
- ??FthCsiDis_3:
- 0000F0 7E40FD00 MOV.B #0xfd, R14
- 0000F4 5E52.... ADD.B &gucUartRxCnt, R14
- 0000F8 4B4E MOV.B R14, R11
- 788 ucRxIndex0=gucUartRxCnt-2;
- 0000FA 7E40FE00 MOV.B #0xfe, R14
- 0000FE 5E52.... ADD.B &gucUartRxCnt, R14
- 000102 4A4E MOV.B R14, R10
- 789 if ((0x0d==aucUartRxBuf[ucRxIndex0])&&(0x4B==aucUartRxBuf[ucRxIndex1])) //K ==0x4b
- 000104 3AF0FF00 AND.W #0xff, R10
- 000108 FA900D00.... CMP.B #0xd, aucUartRxBuf(R10)
- 00010E 0620 JNE ??FthCsiDis_12
- 000110 3BF0FF00 AND.W #0xff, R11
- 000114 FB904B00.... CMP.B #0x4b, aucUartRxBuf(R11)
- 00011A 1724 JEQ ??FthCsiDis_7
- 790 break;
- 791 //if check time>min. 5S, Receive Fax error, progra should be quit
- 792 RxFaxTimeOverflowErrorQuit();
- ??FthCsiDis_12:
- 00011C 1E42.... MOV.W &gwTimeOverflowCount, R14
- 000120 1F43 MOV.W #0x1, R15
- 000122 0F5E ADD.W R14, R15
- 000124 824F.... MOV.W R15, &gwTimeOverflowCount
- 000128 3E93 CMP.W #0xffff, R14
- 00012A 0420 JNE ??FthCsiDis_13
- 00012C D253.... ADD.B #0x1, &gucTimeOverflowCount
- 000130 C243.... MOV.B #0x0, &gucFrhErrorStatus
- ??FthCsiDis_13:
- 000134 F2901400.... CMP.B #0x14, &gucTimeOverflowCount
- 00013A DA23 JNE ??FthCsiDis_3
- 00013C F2400300.... MOV.B #0x3, &gucFrhErrorStatus
- 000142 C243.... MOV.B #0x0, &gucTimeOverflowCount
- 000146 8243.... MOV.W #0x0, &gwTimeOverflowCount
- ??FthCsiDis_7:
- 00014A 3841 POP.W R8
- 00014C 3B41 POP.W R11
- 00014E 3A41 POP.W R10
- 000150 3041 RET
- 793 }
- 794
- 795 if (gucFrhErrorStatus==0x03) return; //add at Mar. 16, 2007.
- 796 }
- Maximum stack usage in bytes:
- Function CSTACK
- -------- ------
- FRHDncProcess 2
- FaxRXProcess 22
- -> FaxRxInit 22
- -> SendATcmdATA 22
- -> Delay1500ms 22
- -> SendATdataFTHCSI 22
- -> ATcmdDelay 22
- -> SendATdataFTHDIS 22
- -> SendATcmdFRH 22
- -> SendATcmdSuffix 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATcmdPrefix 22
- -> ATcmdDelay 22
- -> SendATcmdSuffix 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> Delay2000ms 22
- -> FthCsiDis 22
- -> SendATcmdFRH 22
- -> SendATcmdFRH 22
- -> SendATcmdFRM 22
- -> SendATcmdFTH 22
- -> ATcmdDelay 22
- -> SendATdataFTHCFR 22
- -> SendATcmdFRM 22
- -> CalNextPageAddress 22
- -> ERASE_ONE_BLOCK 22
- -> COMMAND_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> PageImageEndProcess 22
- -> SendATcmdFRM 22
- -> COMMAND_LATCH_INTO 22
- -> READ_STATUS 22
- -> CalNextPageAddress 22
- -> ERASE_ONE_BLOCK 22
- -> COMMAND_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> SendATcmdFRH 22
- -> COMMAND_LATCH_INTO 22
- -> READ_STATUS 22
- -> CalNextPageAddress 22
- -> ERASE_ONE_BLOCK 22
- -> COMMAND_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> ADDRESS_LATCH_INTO 22
- -> COMMAND_LATCH_INTO 22
- -> READ_STATUS 22
- -> SendATcmdH0 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATcmdH0 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATcmdFCLASS0 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATcmdPrefix 22
- -> ATcmdDelay 22
- -> SendATcmdSuffix 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATcmdPrefix 22
- -> ATcmdDelay 22
- -> SendATcmdSuffix 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATcmdPrefix 22
- -> ATcmdDelay 22
- -> SendATcmdSuffix 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATconfigFE0EndofRX 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATconfigS7RX 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> SendATconfigS0RX 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- -> ATcmdDelay 22
- FaxRxInit 2
- -> SendATconfigFS0 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> SendATcmdPrefix 2
- -> ATcmdDelay 2
- -> SendATcmdSuffix 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> SendATconfigS7 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> SendATconfigX4M1 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> SendATcmdFCLASS 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> SendATcmdPrefix 2
- -> ATcmdDelay 2
- -> SendATcmdSuffix 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> SendATcmdFCLASS 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> SendATcmdPrefix 2
- -> ATcmdDelay 2
- -> SendATcmdSuffix 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- -> ATcmdDelay 2
- FthCsiDis 8
- -> SendATcmdFTH 8
- -> Delay1500ms 8
- -> SendATdataFTHCSI 8
- -> ATcmdDelay 8
- -> SendATdataFTHDIS 8
- PageImageEndProcess 6
- -> SendATcmdFRH 6
- -> SendATcmdFTH 6
- -> Delay1500ms 6
- -> SendATdataFTHMCF 6
- Segment part sizes:
- Function/Label Bytes
- -------------- -----
- P2OUT 1
- P5OUT 1
- P5DIR 1
- FaxRXProcess 3320
- FaxRxInit 152
- PageImageEndProcess 414
- FRHDncProcess 2
- FthCsiDis 338
-
- 4 226 bytes in segment CODE
- 3 bytes in segment DATA16_AN
-
- 4 226 bytes of CODE memory
- 0 bytes of DATA memory (+ 3 bytes shared)
- Errors: none
- Warnings: none