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

C8051F363 参数 Datasheet PDF下载

C8051F363图片预览
型号: C8051F363
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用:
文件页数/大小: 288 页 / 2659 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F363的Datasheet PDF文件第143页浏览型号C8051F363的Datasheet PDF文件第144页浏览型号C8051F363的Datasheet PDF文件第145页浏览型号C8051F363的Datasheet PDF文件第146页浏览型号C8051F363的Datasheet PDF文件第148页浏览型号C8051F363的Datasheet PDF文件第149页浏览型号C8051F363的Datasheet PDF文件第150页浏览型号C8051F363的Datasheet PDF文件第151页  
C8051F360/1/2/3/4/5/6/7/8/9  
Certain types of instruction data or certain blocks of code can also be excluded from caching. The destina-  
tions of RETI instructions are, by default, excluded from caching. To enable caching of RETI destinations,  
the CHRETI bit (CCH0CN.3) can be set to ‘1’. It is generally not beneficial to cache RETI destinations  
unless the same instruction is likely to be interrupted repeatedly (such as a code loop that is waiting for an  
interrupt to happen). Instructions that are part of an interrupt service routine (ISR) can also be excluded  
from caching. By default, ISR instructions are cached, but this can be disabled by clearing the CHISR bit  
(CCH0CN.2) to ‘0’. The other information that can be explicitly excluded from caching are the data  
returned by MOVC instructions. Clearing the CHMOV bit (CCH0CN.1) to ‘0’ will disable caching of MOVC  
data. If MOVC caching is allowed, it can be restricted to only use slot 0 for the MOVC information (exclud-  
ing cache push operations). The CHFIXM bit (CCH0TN.2) controls this behavior.  
Further cache control can be implemented by disabling all cache writes. Cache writes can be disabled by  
clearing the CHWREN bit (CCH0CN.7) to ‘0’. Although normal cache writes (such as those after a cache  
miss) are disabled, data can still be written to the cache with a cache push operation. Disabling cache  
writes can be used to prevent a non-critical section of code from changing the cache contents. Note that  
regardless of the value of CHWREN, a Flash write or erase operation automatically removes the affected  
bytes from the cache. Cache reads and the prefetch engine can also be individually disabled. Disabling  
cache reads forces all instructions data to execute from Flash memory or from the prefetch engine. To dis-  
able cache reads, the CHRDEN bit (CCH0CN.6) can be cleared to ‘0’. Note that when cache reads are dis-  
abled, cache writes will still occur (if CHWREN is set to ‘1’). Disabling the prefetch engine is accomplished  
using the CHPFEN bit (CCH0CN.5). When this bit is cleared to ‘0’, the prefetch engine will be disabled. If  
both CHPFEN and CHRDEN are ‘0’, code will execute at a fixed rate, as instructions become available  
from the Flash memory.  
Cache locations can also be pre-loaded and locked with time-critical branch destinations. For example, in  
a system with an ISR that must respond as fast as possible, the entry point for the ISR can be locked into  
a cache location to minimize the response latency of the ISR. Up to 30 locations can be locked into the  
cache at one time. Instructions are locked into cache by enabling cache push operations with the CHPUSH  
bit (CCH0LC.7). When CHPUSH is set to ‘1’, a MOVC instruction will cause the four-byte segment contain-  
ing the data byte to be written to the cache slot location indicated by CHSLOT (CCH0LC.4-0). CHSLOT is  
them decremented to point to the next lockable cache location. This process is called a cache push opera-  
tion. Cache locations that are above CHSLOT are “locked”, and cannot be changed by the processor core,  
as shown in Figure 14.3. Cache locations can be unlocked by using a cache pop operation. A cache pop is  
performed by writing a ‘1’ to the CHPOP bit (CCH0LC.6). When a cache pop is initiated, the value of  
CHSLOT is incremented. This unlocks the most recently locked cache location, but does not remove the  
information from the cache. Note that a cache pop should not be initiated if CHSLOT is equal to 11110b.  
Doing so may have an adverse effect on cache performance. Important: Although locking cache loca-  
tion 1 is not explicitly disabled by hardware, the entire cache will be unlocked when CHSLOT is  
equal to 00000b. Therefore, cache locations 1 and 0 must remain unlocked at all times.  
Rev. 1.0  
147  
 复制成功!