|
楼主 |
发表于 2008-12-30 14:46:20
|
显示全部楼层
SHORT volatile USART1_receCount = 0;
UCHAR volatile USART1_checkoutError = 0;
#pragma interrupt_handler USART1_TX_ISR:iv_USART1_TX
void USART1_TX_ISR(void)
{
USART1_checkoutError = 0;
USART1_receCount = 0;
RS485_RECIVE();
}
1F6C ; #pragma interrupt_handler USART1_TX_ISR:iv_USART1_TX
1F6C ; void USART1_TX_ISR(void)
1F6C ; {
1F6C .dbline 1304
1F6C ; USART1_checkoutError = 0;
1F6C 2224 clr R2
1F6E 20920400 sts _USART1_checkoutError,R2 // 0 --->USART1_checkoutError
1F72 .dbline 1305
1F72 ; USART1_receCount = 0;
1F72 3324 clr R3
1F74 30920200 sts _USART1_receCount+1,R3 // 0 --->USART1_receCount 高字节
1F78 20920100 sts _USART1_receCount,R2 // 0 --->USART1_receCount 低字节
1F7C .dbline 1306
1F7C ; RS485_RECIVE();
1F7C C79A sbi 0x18,7 //
1F7E .dbline 1306
1F7E .dbline -2
1F7E L627:
1F7E .dbline 0 ; func end
1F7E 2990 ld R2,y+
1F80 2FBE out 0x3f,R2
1F82 3990 ld R3,y+
1F84 2990 ld R2,y+
1F86 1895 reti
1F88 .dbend
.area bss(ram, con, rel)
0000 .dbfile D:\USART1.C
0000 _USART1_mscomm_buffer::
0000 .blkb 255
00FF .dbsym e USART1_mscomm_buffer _USART1_mscomm_buffer A[255:255]c
00FF _USART1_send_buffer::
00FF .blkb 255
01FE .dbsym e USART1_send_buffer _USART1_send_buffer A[255:255]c
01FE ; }
上面的代码中,没有看到push指令呀! |
|