📄 pic4620_rf.lst
字号:
C:\MCC18\src\traditional\startup\c018i.c
/* now assign the source address to the table pointer */ C:\MCC18\src\traditional\startup\c018i.c
000d48 c080 MOVFF 0x80,0xff6 TBLPTR = prom; C:\MCC18\src\traditional\startup\c018i.c
000d4a fff6
000d4c c081 MOVFF 0x81,0xff7
000d4e fff7
000d50 c082 MOVFF 0x82,0xff8
000d52 fff8
C:\MCC18\src\traditional\startup\c018i.c
/* do the copy loop */ C:\MCC18\src\traditional\startup\c018i.c
_asm C:\MCC18\src\traditional\startup\c018i.c
// determine if we have any more bytes to copy C:\MCC18\src\traditional\startup\c018i.c
000d54 0100 MOVLB 0x0 movlb curr_byte C:\MCC18\src\traditional\startup\c018i.c
000d56 5383 MOVF 0x83,0x1,0x1 movf curr_byte, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
copy_loop: C:\MCC18\src\traditional\startup\c018i.c
000d58 e102 BNZ 0xd5e bnz 2 // copy_one_byte C:\MCC18\src\traditional\startup\c018i.c
000d5a 5384 MOVF 0x84,0x1,0x1 movf curr_byte + 1, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
000d5c e007 BZ 0xd6c bz 7 // done_copying C:\MCC18\src\traditional\startup\c018i.c
C:\MCC18\src\traditional\startup\c018i.c
copy_one_byte: C:\MCC18\src\traditional\startup\c018i.c
000d5e 0009 TBLRDPOSTINC tblrdpostinc C:\MCC18\src\traditional\startup\c018i.c
000d60 50f5 MOVF 0xf5,0x0,0x0 movf TABLAT, 0, 0 C:\MCC18\src\traditional\startup\c018i.c
000d62 6eee MOVWF 0xee,0x0 movwf POSTINC0, 0 C:\MCC18\src\traditional\startup\c018i.c
C:\MCC18\src\traditional\startup\c018i.c
// decrement byte counter C:\MCC18\src\traditional\startup\c018i.c
000d64 0783 DECF 0x83,0x1,0x1 decf curr_byte, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
000d66 e2f8 BC 0xd58 bc -8 // copy_loop C:\MCC18\src\traditional\startup\c018i.c
000d68 0784 DECF 0x84,0x1,0x1 decf curr_byte + 1, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
000d6a d7f9 BRA 0xd5e bra -7 // copy_one_byte C:\MCC18\src\traditional\startup\c018i.c
C:\MCC18\src\traditional\startup\c018i.c
done_copying: C:\MCC18\src\traditional\startup\c018i.c
C:\MCC18\src\traditional\startup\c018i.c
_endasm C:\MCC18\src\traditional\startup\c018i.c
/* restore the table pointer for the next entry */ C:\MCC18\src\traditional\startup\c018i.c
000d6c c087 MOVFF 0x87,0xff6 TBLPTR = data_ptr; C:\MCC18\src\traditional\startup\c018i.c
000d6e fff6
000d70 c088 MOVFF 0x88,0xff7
000d72 fff7
000d74 c089 MOVFF 0x89,0xff8
000d76 fff8
/* next entry... */ C:\MCC18\src\traditional\startup\c018i.c
000d78 0100 MOVLB 0x0 curr_entry--; C:\MCC18\src\traditional\startup\c018i.c
000d7a 0785 DECF 0x85,0x1,0x1
000d7c 0e00 MOVLW 0x0
000d7e 5b86 SUBWFB 0x86,0x1,0x1
000d80 d7bf BRA 0xd00 goto test; C:\MCC18\src\traditional\startup\c018i.c
done: C:\MCC18\src\traditional\startup\c018i.c
; C:\MCC18\src\traditional\startup\c018i.c
000d82 0012 RETURN 0x0 } C:\MCC18\src\traditional\startup\c018i.c
#include "include.h" E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
#define PAYLOAD_SIZE 10 E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
#define RF_CHANNEL 26 E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
#define TX_PERIOD 50 // Packet sent each n'th cycle E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
#define FILL_BYTE 0xEE E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
static BYTE ledPeriod= 0x80; // LED blinking frequency E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
static UINT16 nRecv = 0; // Counting received packets E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
void ledFlash(UINT16 duration, UINT16 period); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
extern volatile BASIC_RF_SETTINGS rfSettings; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
extern void halWait(UINT16 timeout); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
extern void basicRfInit(BASIC_RF_RX_INFO *pRRI, UINT8 channel, WORD panId, WORD myAddr); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
extern void basicRfReceiveOn(void); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
extern BOOL basicRfSendPacket(BASIC_RF_TX_INFO *pRTI); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
extern void EUSART_Init(); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
extern void sent_ch(unsigned char d); E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
//------------------------------------------------------------------------------------------------------- E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
// Basic RF transmission and reception structures E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
BASIC_RF_RX_INFO rfRxInfo; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
BASIC_RF_TX_INFO rfTxInfo; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
BYTE pTxBuffer[BASIC_RF_MAX_PAYLOAD_SIZE]; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
BYTE pRxBuffer[BASIC_RF_MAX_PAYLOAD_SIZE]; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000ab4 cfd9 MOVFF 0xfd9,0xfe6 BASIC_RF_RX_INFO* basicRfReceivePacket(BASIC_RF_RX_INFO *pRRI) { E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000ab6 ffe6
000ab8 cfe1 MOVFF 0xfe1,0xfd9
000aba ffd9
//用户自己定义接收 E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000abc 0efd MOVLW 0xfd return pRRI; E:\2420\LAB\remote_device\rf_tx\app\rf_blink_led.c
000abe cfdb MOVFF 0xfdb,0x0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -