📄 rfidreader.lst
字号:
* D:\MPLABProject\RFIDReader\Console.c
* Author Date Comment D:\MPLABProject\RFIDReader\Console.c
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\MPLABProject\RFIDReader\Console.c
* Nilesh Rajbharti 10/15/04 Original D:\MPLABProject\RFIDReader\Console.c
* Nilesh Rajbharti 11/1/04 Pre-release version D:\MPLABProject\RFIDReader\Console.c
* DF/KO 04/29/05 Microchip ZigBee Stack v1.0-2.0 D:\MPLABProject\RFIDReader\Console.c
* DF/KO 07/18/05 Microchip ZigBee Stack v1.0-3.0 D:\MPLABProject\RFIDReader\Console.c
* DF/KO 07/27/05 Microchip ZigBee Stack v1.0-3.1 D:\MPLABProject\RFIDReader\Console.c
* DF/KO 08/19/05 Microchip ZigBee Stack v1.0-3.2 D:\MPLABProject\RFIDReader\Console.c
* DF/KO 09/08/05 Microchip ZigBee Stack v1.0-3.3 D:\MPLABProject\RFIDReader\Console.c
* DF/KO 01/09/06 Microchip ZigBee Stack v1.0-3.5 D:\MPLABProject\RFIDReader\Console.c
* DF/KO 08/31/06 Microchip ZigBee Stack v1.0-3.6 D:\MPLABProject\RFIDReader\Console.c
* DF/KO/YY 11/27/06 Microchip ZigBee Stack v1.0-3.7 D:\MPLABProject\RFIDReader\Console.c
* DF/KO/YY 01/12/07 Microchip ZigBee Stack v1.0-3.8 D:\MPLABProject\RFIDReader\Console.c
********************************************************************/ D:\MPLABProject\RFIDReader\Console.c
// Uncomment ENABLE_DEBUG line to enable debug mode for this file. D:\MPLABProject\RFIDReader\Console.c
// Or you may also globally enable debug by defining this macro D:\MPLABProject\RFIDReader\Console.c
// in zigbee.def file or from compiler command-line. D:\MPLABProject\RFIDReader\Console.c
#ifndef ENABLE_DEBUG D:\MPLABProject\RFIDReader\Console.c
//#define ENABLE_DEBUG D:\MPLABProject\RFIDReader\Console.c
#endif D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
#include "Console.h" D:\MPLABProject\RFIDReader\Console.c
//#include "zigbee.h" D:\MPLABProject\RFIDReader\Console.c
#include "zigbee.def" D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
// This is only until they fix the include file... D:\MPLABProject\RFIDReader\Console.c
#ifdef __18F87J10 D:\MPLABProject\RFIDReader\Console.c
#define RCREG RCREG1 D:\MPLABProject\RFIDReader\Console.c
#define BAUDCON BAUDCON1 D:\MPLABProject\RFIDReader\Console.c
#endif D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
#define USART_USE_BRGH_HIGH D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
#if defined(USART_USE_BRGH_LOW) D:\MPLABProject\RFIDReader\Console.c
#define SPBRG_VAL ( ((CLOCK_FREQ/BAUD_RATE)/64) - 1) D:\MPLABProject\RFIDReader\Console.c
#else D:\MPLABProject\RFIDReader\Console.c
#define SPBRG_VAL ( ((CLOCK_FREQ/BAUD_RATE)/16) - 1) D:\MPLABProject\RFIDReader\Console.c
#endif D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
#if SPBRG_VAL > 255 D:\MPLABProject\RFIDReader\Console.c
#error "Calculated SPBRG value is out of range for currnet CLOCK_FREQ." D:\MPLABProject\RFIDReader\Console.c
#endif D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
void ConsoleInit(void) D:\MPLABProject\RFIDReader\Console.c
{ D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
000a38 8eab BSF 0xab,0x7,0x0 RCSTAbits.SPEN = 1; // (RCSTA<7>) must be set (= 1), D:\MPLABProject\RFIDReader\Console.c
000a3a 9c94 BCF 0x94,0x6,0x0 TRISCbits.TRISC6 = 0; D:\MPLABProject\RFIDReader\Console.c
000a3c 8e94 BSF 0x94,0x7,0x0 TRISCbits.TRISC7 = 1; D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
#if defined(USART_USE_BRGH_HIGH) D:\MPLABProject\RFIDReader\Console.c
000a3e 0e24 MOVLW 0x24 TXSTA = 0x24; D:\MPLABProject\RFIDReader\Console.c
000a40 6eac MOVWF 0xac,0x0
#else D:\MPLABProject\RFIDReader\Console.c
TXSTA = 0x20; D:\MPLABProject\RFIDReader\Console.c
#endif D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
000a42 0e90 MOVLW 0x90 RCSTA = 0x90; // 0b10010000; D:\MPLABProject\RFIDReader\Console.c
000a44 6eab MOVWF 0xab,0x0
000a46 0e33 MOVLW 0x33 SPBRG = SPBRG_VAL; D:\MPLABProject\RFIDReader\Console.c
000a48 6eaf MOVWF 0xaf,0x0
000a4a 0e40 MOVLW 0x40 BAUDCON = 0x40; D:\MPLABProject\RFIDReader\Console.c
000a4c 6eb8 MOVWF 0xb8,0x0
000a4e 0012 RETURN 0x0 } D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
000a50 cfd9 MOVFF 0xfd9,0xfe6 void ConsolePutROMString(ROM char* str) D:\MPLABProject\RFIDReader\Console.c
000a52 ffe6
000a54 cfe1 MOVFF 0xfe1,0xfd9
000a56 ffd9
000a58 52e6 MOVF 0xe6,0x1,0x0
{ D:\MPLABProject\RFIDReader\Console.c
BYTE c; D:\MPLABProject\RFIDReader\Console.c
D:\MPLABProject\RFIDReader\Console.c
000a5a 0efd MOVLW 0xfd while( c = *str++ ) D:\MPLABProject\RFIDReader\Console.c
000a5c cfdb MOVFF 0xfdb,0xff6
000a5e fff6
000a60 2adb INCF 0xdb,0x1,0x0
000a62 0efe MOVLW 0xfe
000a64 cfdb MOVFF 0xfdb,0xff7
000a66 fff7
000a68 e301 BNC 0xa6c
000a6a 2adb INCF 0xdb,0x1,0x0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -