欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC18F4520-I/P 参数 Datasheet PDF下载

PIC18F4520-I/P图片预览
型号: PIC18F4520-I/P
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器与10位A / D和纳瓦技术 [28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管时钟
文件页数/大小: 412 页 / 6898 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4520-I/P的Datasheet PDF文件第213页浏览型号PIC18F4520-I/P的Datasheet PDF文件第214页浏览型号PIC18F4520-I/P的Datasheet PDF文件第215页浏览型号PIC18F4520-I/P的Datasheet PDF文件第216页浏览型号PIC18F4520-I/P的Datasheet PDF文件第218页浏览型号PIC18F4520-I/P的Datasheet PDF文件第219页浏览型号PIC18F4520-I/P的Datasheet PDF文件第220页浏览型号PIC18F4520-I/P的Datasheet PDF文件第221页  
PIC18F2420/2520/4420/4520  
18.2.4.1  
Special Considerations Using  
Auto-Wake-up  
18.2.4.2  
Special Considerations Using  
the WUE Bit  
Since auto-wake-up functions by sensing rising edge  
transitions on RX/DT, information with any state  
changes before the Stop bit may signal a false End-of-  
Character (EOC) and cause data or framing errors. To  
work properly, therefore, the initial character in the  
transmission must be all ‘0’s. This can be 00h (8 bytes)  
for standard RS-232 devices or 000h (12 bits) for LIN  
bus.  
The timing of WUE and RCIF events may cause some  
confusion when it comes to determining the validity of  
received data. As noted, setting the WUE bit places the  
EUSART in an Idle mode. The wake-up event causes a  
receive interrupt by setting the RCIF bit. The WUE bit is  
cleared after this when a rising edge is seen on RX/DT.  
The interrupt condition is then cleared by reading the  
RCREG register. Ordinarily, the data in RCREG will be  
dummy data and should be discarded.  
Oscillator start-up time must also be considered,  
especially in applications using oscillators with longer  
start-up intervals (i.e., XT or HS mode). The Sync  
Break (or Wake-up Signal) character must be of  
sufficient length and be followed by a sufficient interval  
to allow enough time for the selected oscillator to start  
and provide proper initialization of the EUSART.  
The fact that the WUE bit has been cleared (or is still  
set) and the RCIF flag is set should not be used as an  
indicator of the integrity of the data in RCREG. Users  
should consider implementing a parallel method in  
firmware to verify received data integrity.  
To assure that no actual data is lost, check the RCIDL  
bit to verify that a receive operation is not in process. If  
a receive operation is not occurring, the WUE bit may  
then be set just prior to entering the Sleep mode.  
FIGURE 18-8:  
AUTO-WAKE-UP BIT (WUE) TIMINGS DURING NORMAL OPERATION  
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4  
Bit Set by User  
Auto-Cleared  
OSC1  
WUE bit(1)  
RX/DT Line  
RCIF  
Cleared Due to User Read of RCREG  
Note 1: The EUSART remains in Idle while the WUE bit is set.  
FIGURE 18-9:  
AUTO-WAKE-UP BIT (WUE) TIMINGS DURING SLEEP  
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4  
Bit Set by User  
Q1  
Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4  
Auto-Cleared  
OSC1  
WUE bit(2)  
RX/DT Line  
RCIF  
Note 1  
Cleared Due to User Read of RCREG  
Sleep Ends  
Sleep Command Executed  
Note 1: If the wake-up event requires long oscillator warm-up time, the auto-clear of the WUE bit can occur before the oscillator is ready. This  
sequence should not depend on the presence of Q clocks.  
2: The EUSART remains in Idle while the WUE bit is set.  
© 2008 Microchip Technology Inc.  
DS39631E-page 215  
 复制成功!