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

AN1063D 参数 Datasheet PDF下载

AN1063D图片预览
型号: AN1063D
PDF下载: 下载PDF文件 查看货源
内容描述: 集成的处理器与DMA USERA ????手册 [Integrated Processor with DMA User’s Manual]
分类和应用:
文件页数/大小: 441 页 / 2488 K
品牌: FREESCALE [ Freescale ]
 浏览型号AN1063D的Datasheet PDF文件第368页浏览型号AN1063D的Datasheet PDF文件第369页浏览型号AN1063D的Datasheet PDF文件第370页浏览型号AN1063D的Datasheet PDF文件第371页浏览型号AN1063D的Datasheet PDF文件第373页浏览型号AN1063D的Datasheet PDF文件第374页浏览型号AN1063D的Datasheet PDF文件第375页浏览型号AN1063D的Datasheet PDF文件第376页  
Freescale Semiconductor, Inc.  
• Enable the counter prescaler (CPE bit).  
• Select the selected clock (CLK bit).  
• If the PCLK bit is set, select the POTx bits.  
• Select the mode of operation (MODEx bits).  
• Select the operation of TOUT (OCx bits).  
8.5.2 Timer Module Example Configuration Code  
The following code is an example of a configuration sequence for the timer module.  
***************************************************************************  
* MC68340 basic timer module register initialization example code.  
* This code is used to initialize the 68340's internal timer module  
* registers, providing basic functions for operation.  
* It sets up timer1 for square wave generation.  
***************************************************************************  
***************************************************************************  
* equates  
***************************************************************************  
MBAR  
EQU $0003FF00 Address of SIM40 Module Base Address Reg.  
MODBASE EQU $FFFFF000 SIM40 MBAR address value  
***************************************************************************  
* Timer1 module equates  
TIMER1  
MCR1  
EQU $600  
EQU $0  
Offset from MBAR for timer1 module regs  
MCR for timer1  
* Timer1 register offsets from timer1 base address  
IR1  
CR1  
SR1  
CNTR1  
PRLD11 EQU  
COM1 EQU  
EQU  
EQU  
EQU  
EQU  
$604  
$606  
$608  
$60A  
$60C  
$610  
interrupt register timer1  
control register timer1  
status register timer1  
counter register timer1  
preload register 1 timer1  
compare register timer1  
***************************************************************************  
***************************************************************************  
* Initialize Timer1  
***************************************************************************  
LEA MODBASE+TIMER1,A0 Pointer to timer1 module  
* Disable timer1  
CLR.W  
CR1(A0)  
* Clear the TO, TG, and TC bits  
CLR.W SR1(A0)  
8- 28  
MC68340 USER’S MANUAL  
MOTOROLA  
For More Information On This Product,  
Go to: www.freescale.com  
 复制成功!