📄 pic4620_rf.lst
字号:
000e00 c081 MOVFF 0x81,0xff7
000e02 fff7
000e04 c082 MOVFF 0x82,0xff8
000e06 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
000e08 0100 MOVLB 0x0 movlb curr_byte C:\MCC18\src\traditional\startup\c018i.c
000e0a 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
000e0c e102 BNZ 0xe12 bnz 2 // copy_one_byte C:\MCC18\src\traditional\startup\c018i.c
000e0e 5384 MOVF 0x84,0x1,0x1 movf curr_byte + 1, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
000e10 e007 BZ 0xe20 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
000e12 0009 TBLRDPOSTINC tblrdpostinc C:\MCC18\src\traditional\startup\c018i.c
000e14 50f5 MOVF 0xf5,0x0,0x0 movf TABLAT, 0, 0 C:\MCC18\src\traditional\startup\c018i.c
000e16 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
000e18 0783 DECF 0x83,0x1,0x1 decf curr_byte, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
000e1a e2f8 BC 0xe0c bc -8 // copy_loop C:\MCC18\src\traditional\startup\c018i.c
000e1c 0784 DECF 0x84,0x1,0x1 decf curr_byte + 1, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
000e1e d7f9 BRA 0xe12 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
000e20 c087 MOVFF 0x87,0xff6 TBLPTR = data_ptr; C:\MCC18\src\traditional\startup\c018i.c
000e22 fff6
000e24 c088 MOVFF 0x88,0xff7
000e26 fff7
000e28 c089 MOVFF 0x89,0xff8
000e2a fff8
/* next entry... */ C:\MCC18\src\traditional\startup\c018i.c
000e2c 0100 MOVLB 0x0 curr_entry--; C:\MCC18\src\traditional\startup\c018i.c
000e2e 0785 DECF 0x85,0x1,0x1
000e30 0e00 MOVLW 0x0
000e32 5b86 SUBWFB 0x86,0x1,0x1
000e34 d7bf BRA 0xdb4 goto test; C:\MCC18\src\traditional\startup\c018i.c
done: C:\MCC18\src\traditional\startup\c018i.c
; C:\MCC18\src\traditional\startup\c018i.c
000e36 0012 RETURN 0x0 } C:\MCC18\src\traditional\startup\c018i.c
#include "include.h" E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
//------------------------------------------------------------------------------------------------------- E:\2420\LAB\rf\app\rf_blink_led.c
// Defintions used locally in this file. E:\2420\LAB\rf\app\rf_blink_led.c
#define SW1 RB4 E:\2420\LAB\rf\app\rf_blink_led.c
#define SW2 RB5 E:\2420\LAB\rf\app\rf_blink_led.c
#define SW3 RB6 E:\2420\LAB\rf\app\rf_blink_led.c
#define SW4 RB7 E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
#define PAYLOAD_SIZE 10 E:\2420\LAB\rf\app\rf_blink_led.c
#define RF_CHANNEL 26 E:\2420\LAB\rf\app\rf_blink_led.c
#define TX_PERIOD 50 // Packet sent each n'th cycle E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
#define FILL_BYTE 0xEE E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
static BYTE ledPeriod= 0x80; // LED blinking frequency E:\2420\LAB\rf\app\rf_blink_led.c
static UINT16 nRecv = 0; // Counting received packets E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
void ledFlash(UINT16 duration, UINT16 period); E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
extern volatile BASIC_RF_SETTINGS rfSettings; E:\2420\LAB\rf\app\rf_blink_led.c
extern void halWait(UINT16 timeout); E:\2420\LAB\rf\app\rf_blink_led.c
extern void basicRfInit(BASIC_RF_RX_INFO *pRRI, UINT8 channel, WORD panId, WORD myAddr); E:\2420\LAB\rf\app\rf_blink_led.c
extern void basicRfReceiveOn(void); E:\2420\LAB\rf\app\rf_blink_led.c
extern BOOL basicRfSendPacket(BASIC_RF_TX_INFO *pRTI); E:\2420\LAB\rf\app\rf_blink_led.c
extern void EUSART_Init(); E:\2420\LAB\rf\app\rf_blink_led.c
extern void sent_ch(unsigned char d); E:\2420\LAB\rf\app\rf_blink_led.c
//------------------------------------------------------------------------------------------------------- E:\2420\LAB\rf\app\rf_blink_led.c
// Basic RF transmission and reception structures E:\2420\LAB\rf\app\rf_blink_led.c
BASIC_RF_RX_INFO rfRxInfo; E:\2420\LAB\rf\app\rf_blink_led.c
BASIC_RF_TX_INFO rfTxInfo; E:\2420\LAB\rf\app\rf_blink_led.c
BYTE pTxBuffer[BASIC_RF_MAX_PAYLOAD_SIZE]; E:\2420\LAB\rf\app\rf_blink_led.c
BYTE pRxBuffer[BASIC_RF_MAX_PAYLOAD_SIZE]; E:\2420\LAB\rf\app\rf_blink_led.c
//------------------------------------------------------------------------------------------------------- E:\2420\LAB\rf\app\rf_blink_led.c
E:\2420\LAB\rf\app\rf_blink_led.c
//------------------------------------------------------------------------------------------------------- E:\2420\LAB\rf\app\rf_blink_led.c
// BASIC_RF_RX_INFO* basicRfReceivePacket(BASIC_RF_RX_INFO *pRRI) E:\2420\LAB\rf\app\rf_blink_led.c
// E:\2420\LAB\rf\app\rf_blink_led.c
// DESCRIPTION: E:\2420\LAB\rf\app\rf_blink_led.c
// This function is a part of the basic RF library, but must be declared by the application. Once E:\2420\LAB\rf\app\rf_blink_led.c
// the application has turned on the receiver, using basicRfReceiveOn(), all incoming packets will E:\2420\LAB\rf\app\rf_blink_led.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -