📄 pic4620_rf.lst
字号:
// be received by the FIFOP interrupt service routine. When finished, the ISR will call the E:\2420\LAB\rf\app\rf_blink_led.c
// basicRfReceivePacket() function. Please note that this function must return quickly, since the E:\2420\LAB\rf\app\rf_blink_led.c
// next received packet will overwrite the active BASIC_RF_RX_INFO structure (pointed to by pRRI). E:\2420\LAB\rf\app\rf_blink_led.c
// E:\2420\LAB\rf\app\rf_blink_led.c
// ARGUMENTS: E:\2420\LAB\rf\app\rf_blink_led.c
// BASIC_RF_RX_INFO *pRRI E:\2420\LAB\rf\app\rf_blink_led.c
// The reception structure, which contains all relevant info about the received packet. E:\2420\LAB\rf\app\rf_blink_led.c
// E:\2420\LAB\rf\app\rf_blink_led.c
// RETURN VALUE: E:\2420\LAB\rf\app\rf_blink_led.c
// BASIC_RF_RX_INFO* E:\2420\LAB\rf\app\rf_blink_led.c
// The pointer to the next BASIC_RF_RX_INFO structure to be used by the FIFOP ISR. If there is E:\2420\LAB\rf\app\rf_blink_led.c
// only one buffer, then return pRRI. E:\2420\LAB\rf\app\rf_blink_led.c
//------------------------------------------------------------------------------------------------------- E:\2420\LAB\rf\app\rf_blink_led.c
0008e4 cfd9 MOVFF 0xfd9,0xfe6 BASIC_RF_RX_INFO* basicRfReceivePacket(BASIC_RF_RX_INFO *pRRI) { E:\2420\LAB\rf\app\rf_blink_led.c
0008e6 ffe6
0008e8 cfe1 MOVFF 0xfe1,0xfd9
0008ea ffd9
E:\2420\LAB\rf\app\rf_blink_led.c
//sent_ch(ledPeriod); E:\2420\LAB\rf\app\rf_blink_led.c
0008ec c18f MOVFF 0x18f,0x1fa ledPeriod= pRxBuffer[9]; E:\2420\LAB\rf\app\rf_blink_led.c
0008ee f1fa
0008f0 c1fa MOVFF 0x1fa,0xfe6 sent_ch(ledPeriod); E:\2420\LAB\rf\app\rf_blink_led.c
0008f2 ffe6
0008f4 ec54 CALL 0xea8,0x0
0008f6 f007
0008f8 52e5 MOVF 0xe5,0x1,0x0
// Continue using the (one and only) reception structure E:\2420\LAB\rf\app\rf_blink_led.c
0008fa 0efd MOVLW 0xfd return pRRI; E:\2420\LAB\rf\app\rf_blink_led.c
0008fc cfdb MOVFF 0xfdb,0x10
0008fe f010
000900 0efe MOVLW 0xfe
000902 cfdb MOVFF 0xfdb,0x11
000904 f011
000906 c010 MOVFF 0x10,0xff3
000908 fff3
00090a c011 MOVFF 0x11,0xff4
00090c fff4
00090e d000 BRA 0x910
E:\2420\LAB\rf\app\rf_blink_led.c
000910 52e5 MOVF 0xe5,0x1,0x0 } // basicRfReceivePacket E:\2420\LAB\rf\app\rf_blink_led.c
000912 cfe7 MOVFF 0xfe7,0xfd9
000914 ffd9
000916 0012 RETURN 0x0
E:\2420\LAB\rf\app\rf_blink_led.c
void port_init() E:\2420\LAB\rf\app\rf_blink_led.c
{ E:\2420\LAB\rf\app\rf_blink_led.c
000918 9292 BCF 0x92,0x1,0x0 TRISA1=0; E:\2420\LAB\rf\app\rf_blink_led.c
00091a 9492 BCF 0x92,0x2,0x0 TRISA2=0; E:\2420\LAB\rf\app\rf_blink_led.c
00091c 9692 BCF 0x92,0x3,0x0 TRISA3=0; E:\2420\LAB\rf\app\rf_blink_led.c
00091e 9a92 BCF 0x92,0x5,0x0 TRISA5=0; E:\2420\LAB\rf\app\rf_blink_led.c
000920 9c95 BCF 0x95,0x6,0x0 TRISD6=0; E:\2420\LAB\rf\app\rf_blink_led.c
000922 9e95 BCF 0x95,0x7,0x0 TRISD7=0; E:\2420\LAB\rf\app\rf_blink_led.c
000924 6893 SETF 0x93,0x0 TRISB=0xFF; E:\2420\LAB\rf\app\rf_blink_led.c
000926 9094 BCF 0x94,0x0,0x0 TRISC0=0; E:\2420\LAB\rf\app\rf_blink_led.c
000928 9294 BCF 0x94,0x1,0x0 TRISC1=0; E:\2420\LAB\rf\app\rf_blink_led.c
00092a 9494 BCF 0x94,0x2,0x0 TRISC2=0; E:\2420\LAB\rf\app\rf_blink_led.c
00092c 9694 BCF 0x94,0x3,0x0 TRISC3=0; E:\2420\LAB\rf\app\rf_blink_led.c
00092e 8894 BSF 0x94,0x4,0x0 TRISC4=1; E:\2420\LAB\rf\app\rf_blink_led.c
000930 9a94 BCF 0x94,0x5,0x0 TRISC5=0; E:\2420\LAB\rf\app\rf_blink_led.c
000932 9289 BCF 0x89,0x1,0x0 LED1=0; E:\2420\LAB\rf\app\rf_blink_led.c
000934 9489 BCF 0x89,0x2,0x0 LED2=0; E:\2420\LAB\rf\app\rf_blink_led.c
000936 9689 BCF 0x89,0x3,0x0 LED3=0; E:\2420\LAB\rf\app\rf_blink_led.c
000938 0e0f MOVLW 0xf ADCON1 = 0x0F; E:\2420\LAB\rf\app\rf_blink_led.c
00093a 6ec1 MOVWF 0xc1,0x0
00093c 0012 RETURN 0x0 } E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
void halSpiInit(void) { E:\2420\LAB\rf\app\rf_blink_led.c
// Initialize the SPI pins and directions E:\2420\LAB\rf\app\rf_blink_led.c
00093e 868b BSF 0x8b,0x3,0x0 LATC3 = 1; // SCK E:\2420\LAB\rf\app\rf_blink_led.c
000940 8a8b BSF 0x8b,0x5,0x0 LATC5 = 1; // SDO E:\2420\LAB\rf\app\rf_blink_led.c
000942 9694 BCF 0x94,0x3,0x0 TRISC3 = 0; // SCK E:\2420\LAB\rf\app\rf_blink_led.c
000944 8894 BSF 0x94,0x4,0x0 TRISC4 = 1; // SDI E:\2420\LAB\rf\app\rf_blink_led.c
000946 9a94 BCF 0x94,0x5,0x0 TRISC5 = 0; // SDO E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
// Initialize the SPI module E:\2420\LAB\rf\app\rf_blink_led.c
000948 0ec0 MOVLW 0xc0 SSPSTAT = 0xc0; E:\2420\LAB\rf\app\rf_blink_led.c
00094a 6ec7 MOVWF 0xc7,0x0
00094c 0e20 MOVLW 0x20 SSPCON1 = 0x20; E:\2420\LAB\rf\app\rf_blink_led.c
00094e 6ec6 MOVWF 0xc6,0x0
000950 969e BCF 0x9e,0x3,0x0 SSPIF=0; E:\2420\LAB\rf\app\rf_blink_led.c
000952 0012 RETURN 0x0 } // SpiInit E:\2420\LAB\rf\app\rf_blink_led.c
void ccp2_init() E:\2420\LAB\rf\app\rf_blink_led.c
{ E:\2420\LAB\rf\app\rf_blink_led.c
000954 8ed0 BSF 0xd0,0x7,0x0 IPEN=1; E:\2420\LAB\rf\app\rf_blink_led.c
000956 8ef2 BSF 0xf2,0x7,0x0 GIEH=1; E:\2420\LAB\rf\app\rf_blink_led.c
000958 8cf2 BSF 0xf2,0x6,0x0 GIEL=1; E:\2420\LAB\rf\app\rf_blink_led.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -