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

C8051F502-IM 参数 Datasheet PDF下载

C8051F502-IM图片预览
型号: C8051F502-IM
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用: 微控制器和处理器外围集成电路PC时钟
文件页数/大小: 312 页 / 2813 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F502-IM的Datasheet PDF文件第97页浏览型号C8051F502-IM的Datasheet PDF文件第98页浏览型号C8051F502-IM的Datasheet PDF文件第99页浏览型号C8051F502-IM的Datasheet PDF文件第100页浏览型号C8051F502-IM的Datasheet PDF文件第102页浏览型号C8051F502-IM的Datasheet PDF文件第103页浏览型号C8051F502-IM的Datasheet PDF文件第104页浏览型号C8051F502-IM的Datasheet PDF文件第105页  
C8051F50x-F51x  
SFRPGCN Bit  
Interrupt  
Logic  
SFRPAGE  
CIP-51  
SFRNEXT  
SFRLAST  
Figure 13.1. SFR Page Stack  
Automatic hardware switching of the SFR Page on interrupts may be enabled or disabled as desired using  
the SFR Automatic Page Control Enable Bit located in the SFR Page Control Register (SFR0CN). This  
function defaults to “enabled” upon reset. In this way, the autoswitching function will be enabled unless dis-  
abled in software.  
A summary of the SFR locations (address and SFR page) are provided in Table 13.3 in the form of an SFR  
memory map. Each memory location in the map has an SFR page row, denoting the page in which that  
SFR resides. Certain SFRs are accessible from ALL SFR pages, and are denoted by the “(ALL PAGES)”  
designation. For example, the Port I/O registers P0, P1, P2, and P3 all have the “(ALL PAGES)” designa-  
tion, indicating these SFRs are accessible from all SFR pages regardless of the SFRPAGE register value.  
13.3. SFR Page Stack Example  
The following is an example that shows the operation of the SFR Page Stack during interrupts. In this  
example, the SFR Control register is left in the default enabled state (i.e., SFRPGEN = 1), and the CIP-51  
is executing in-line code that is writing values to SPI Data Register (SFR “SPI0DAT”, located at address  
0xA3 on SFR Page 0x00). The device is also using the CAN peripheral (CAN0) and the Programmable  
Counter Array (PCA0) peripheral to generate a PWM output. The PCA is timing a critical control function in  
its interrupt service round so its associated ISR that is set to low priority. At this point, the SFR page is set  
to access the SPI0DAT SFR (SFRPAGE = 0x00). See Figure 13.2.  
Rev. 1.1  
101  
 复制成功!