📄 pic4620_rf.lst
字号:
// Wait for the user to select node address, and initialize for basic RF operation E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b40 0ee8 MOVLW 0xe8 halWait(1000); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b42 6ee6 MOVWF 0xe6,0x0
000b44 0e03 MOVLW 0x3
000b46 6ee6 MOVWF 0xe6,0x0
000b48 ecfd CALL 0xdfa,0x0
000b4a f006
000b4c 52e5 MOVF 0xe5,0x1,0x0
000b4e 52e5 MOVF 0xe5,0x1,0x0
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b50 0e78 MOVLW 0x78 basicRfInit(&rfRxInfo, RF_CHANNEL, 0x2420, 0x5678); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b52 6ee6 MOVWF 0xe6,0x0
000b54 0e56 MOVLW 0x56
000b56 6ee6 MOVWF 0xe6,0x0
000b58 0e20 MOVLW 0x20
000b5a 6ee6 MOVWF 0xe6,0x0
000b5c 0e24 MOVLW 0x24
000b5e 6ee6 MOVWF 0xe6,0x0
000b60 0e1a MOVLW 0x1a
000b62 6ee6 MOVWF 0xe6,0x0
000b64 0e00 MOVLW 0x0
000b66 6ee6 MOVWF 0xe6,0x0
000b68 0e01 MOVLW 0x1
000b6a 6ee6 MOVWF 0xe6,0x0
000b6c ec70 CALL 0x8e0,0x0
000b6e f004
000b70 6ef5 MOVWF 0xf5,0x0
000b72 0e07 MOVLW 0x7
000b74 5ee1 SUBWF 0xe1,0x1,0x0
000b76 50f5 MOVF 0xf5,0x0,0x0
000b78 0101 MOVLB 0x1 rfTxInfo.destAddr = 0x1234; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b7a 0e34 MOVLW 0x34
000b7c 6f0c MOVWF 0xc,0x1
000b7e 0e12 MOVLW 0x12
000b80 6f0d MOVWF 0xd,0x1
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
// Initalize common protocol parameters E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b82 0e0a MOVLW 0xa rfTxInfo.length = PAYLOAD_SIZE; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b84 6f0e MOVWF 0xe,0x1
000b86 0e01 MOVLW 0x1 rfTxInfo.ackRequest = 1; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b88 6f11 MOVWF 0x11,0x1
000b8a 0e12 MOVLW 0x12 rfTxInfo.pPayload = pTxBuffer; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b8c 6f0f MOVWF 0xf,0x1
000b8e 0e01 MOVLW 0x1
000b90 6f10 MOVWF 0x10,0x1
000b92 0e86 MOVLW 0x86 rfRxInfo.pPayload = pRxBuffer; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b94 6f06 MOVWF 0x6,0x1
000b96 0e01 MOVLW 0x1
000b98 6f07 MOVWF 0x7,0x1
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b9a 6adf CLRF 0xdf,0x0 for (n = 0; n < PAYLOAD_SIZE; n++) { E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000b9c 0e0a MOVLW 0xa
000b9e 5cdf SUBWF 0xdf,0x0,0x0
000ba0 e20e BC 0xbbe
000bba 2adf INCF 0xdf,0x1,0x0
000bbc d7ef BRA 0xb9c
000ba2 0e10 MOVLW 0x10 pTxBuffer[n] = n+0x10; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000ba4 24df ADDWF 0xdf,0x0,0x0
000ba6 6ee6 MOVWF 0xe6,0x0
000ba8 50df MOVF 0xdf,0x0,0x0
000baa 6aea CLRF 0xea,0x0
000bac 0f12 ADDLW 0x12
000bae 6ee9 MOVWF 0xe9,0x0
000bb0 0e01 MOVLW 0x1
000bb2 22ea ADDWFC 0xea,0x1,0x0
000bb4 52e5 MOVF 0xe5,0x1,0x0
000bb6 50e7 MOVF 0xe7,0x0,0x0
000bb8 6eef MOVWF 0xef,0x0
} E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
// Turn on RX mode E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000bbe ec1c CALL 0x38,0x0 basicRfReceiveOn(); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000bc0 f000
// The main loop: E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000c1e d7d1 BRA 0xbc2 while (TRUE) E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
{ E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000bc2 9c8c BCF 0x8c,0x6,0x0 YLED1=0; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000bc4 9e8c BCF 0x8c,0x7,0x0 YLED2=0; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000bc6 b083 BTFSC 0x83,0x0,0x0 if(!KEY1) E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000bc8 d010 BRA 0xbea
{ E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000bca a083 BTFSS 0x83,0x0,0x0 while(!KEY1); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000bcc d7fe BR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -