欢迎访问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文件第167页浏览型号PIC18F4520-I/P的Datasheet PDF文件第168页浏览型号PIC18F4520-I/P的Datasheet PDF文件第169页浏览型号PIC18F4520-I/P的Datasheet PDF文件第170页浏览型号PIC18F4520-I/P的Datasheet PDF文件第172页浏览型号PIC18F4520-I/P的Datasheet PDF文件第173页浏览型号PIC18F4520-I/P的Datasheet PDF文件第174页浏览型号PIC18F4520-I/P的Datasheet PDF文件第175页  
PIC18F2420/2520/4420/4520  
17.3.8  
OPERATION IN POWER-MANAGED  
MODES  
17.3.9  
EFFECTS OF A RESET  
A Reset disables the MSSP module and terminates the  
current transfer.  
In SPI Master mode, module clocks may be operating  
at a different speed than when in full-power mode; in  
the case of Sleep mode, all clocks are halted.  
17.3.10 BUS MODE COMPATIBILITY  
Table 17-1 shows the compatibility between the  
standard SPI modes and the states of the CKP and  
CKE control bits.  
In most Idle modes, a clock is provided to the peripher-  
als. That clock should be from the primary clock  
source, the secondary clock (Timer1 oscillator at  
32.768 kHz) or the INTOSC source. See Section 2.7  
“Clock Sources and Oscillator Switching” for  
additional information.  
TABLE 17-1: SPI BUS MODES  
Control Bits State  
Standard SPI Mode  
In most cases, the speed that the master clocks SPI  
data is not important; however, this should be  
evaluated for each system.  
Terminology  
CKP  
CKE  
0, 0  
0, 1  
1, 0  
1, 1  
0
0
1
1
1
0
1
0
If MSSP interrupts are enabled, they can wake the con-  
troller from Sleep mode, or one of the Idle modes, when  
the master completes sending data. If an exit from  
Sleep or Idle mode is not desired, MSSP interrupts  
should be disabled.  
There is also an SMP bit which controls when the data  
is sampled.  
If the Sleep mode is selected, all module clocks are  
halted and the transmission/reception will remain in  
that state until the devices wakes. After the device  
returns to Run mode, the module will resume  
transmitting and receiving data.  
In SPI Slave mode, the SPI Transmit/Receive Shift  
register operates asynchronously to the device. This  
allows the device to be placed in any power-managed  
mode and data to be shifted into the SPI Transmit/  
Receive Shift register. When all 8 bits have been  
received, the MSSP interrupt flag bit will be set, and if  
enabled, will wake the device.  
TABLE 17-2: REGISTERS ASSOCIATED WITH SPI OPERATION  
Reset  
Values  
on page  
Name  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
INTCON  
PIR1  
GIE/GIEH PEIE/GIEL TMR0IE  
INT0IE  
TXIF  
RBIE  
SSPIF  
SSPIE  
SSPIP  
TMR0IF  
CCP1IF  
CCP1IE  
CCP1IP  
INT0IF  
RBIF  
49  
52  
52  
52  
52  
52  
50  
50  
50  
PSPIF(1)  
PSPIE(1)  
PSPIP(1)  
ADIF  
ADIE  
ADIP  
RCIF  
RCIE  
RCIP  
TMR2IF  
TMR1IF  
PIE1  
TXIE  
TXIP  
TMR2IE TMR1IE  
TMR2IP TMR1IP  
IPR1  
TRISA  
TRISA7(2) TRISA6(2) PORTA Data Direction Register  
TRISC  
SSPBUF  
SSPCON1  
SSPSTAT  
PORTC Data Direction Register  
MSSP Receive Buffer/Transmit Register  
WCOL  
SMP  
SSPOV  
CKE  
SSPEN  
D/A  
CKP  
P
SSPM3  
S
SSPM2  
R/W  
SSPM1  
UA  
SSPM0  
BF  
Legend: Shaded cells are not used by the MSSP in SPI mode.  
Note 1: These bits are unimplemented in 28-pin devices; always maintain these bits clear.  
2: PORTA<7:6> and their direction bits are individually configured as port pins based on various primary  
oscillator modes. When disabled, these bits read as ‘0’.  
© 2008 Microchip Technology Inc.  
DS39631E-page 169  
 复制成功!