参数资料
型号: DM240002
厂商: Microchip Technology
文件页数: 31/42页
文件大小: 0K
描述: BOARD DEV EXPLORER 16 44-PIN
标准包装: 1
系列: Explorer 16 44 引脚
类型: MCU
适用于相关产品: dsPIC30,dsPIC33,PIC32,PIC24FJ,PIC24HJ
所含物品: Explorer 16 开发板,PIC24FJ64GA004 和 dsPIC33FJ32GP204 PIM 模块
产品目录页面: 659 (CN2011-ZH PDF)
44-Pin Demo Board Lessons
FIGURE 3-7:
TIMER0 SIMPLIFIED
Clock/4 or
T0CKI pin
Prescaler
Prescaler may be configured
to divide by 2, 4, 8, 16, 32, 64,
128 or 256.
TMR0
T0IF
Flag set when
TMR0 overflows.
Must be cleared
in software.
TMR0 is a Special Function Register (SFR) and may be read or modified by the pro-
gram. The prescaler is not a SFR and thus cannot be read or modified by the program.
However, writing to TMR0 clears the prescaler.
The timer may be fed either by the same clock that drives the processor or by an exter-
nal event. Driven by the processor clock, it increments once for every instruction cycle.
This is a convenient method of marking time and is better than delay loops, as it allows
the processor to work on the problem rather than waste cycles in delay loops.
The prescaler is configured through the OPTION_REG, see Figure 3-8.
FIGURE 3-8:
PRESCALER CONFIGURATION THROUGH OPTION_REG
X
X
T0CS
T0SE
PSA
PS2
PS1
PS0
bit 7
Legend:
X:
Don’t cares – not Timer0 related.
bit 0
T0CS: Timer0 Clock Source 0 for Instruction Clock.
T0SE: Timer0 Source Edge – Don’t care when connected to instruction clock.
PSA:
PS:
Prescaler Assignment 0 assigns to Timer0.
Prescaler rate select ‘ 111 ’ – full prescaler, divide by 256.
Lesson 9 configures Timer0 with the prescaler for a maximum delay on Timer0. The
prescaler will divide the processor clock by 256 and Timer0 will divide that by 256
again. Thus, the Timer0 Flag will be set every 65536 μ s (0.0000001 second * 256 *
256), or about 15 times a second. The main program sits in a loop waiting for the
rollover and when it does, it increments the display and then loops back.
? 2007 Microchip Technology Inc.
DS41296B-page 27
相关PDF资料
PDF描述
DM240011 KIT STARTER MPLAB FOR PIC24F MCU
DM240021 KIT STARTER MPLAB FOR PIC24H
DM240311 BOARD DEV PIC24F16KA102 XLP
DM300018 BOARD DEMO DSPICDEM 2
DM300019 BOARD DEMO DSPICDEM 80L STARTER
相关代理商/技术参数
参数描述
DM240002 制造商:Microchip Technology Inc 功能描述:Explorer 16 kit(44-PIN) w/ PIC24FJ64GA00
DM240011 功能描述:开发板和工具包 - PIC / DSPIC MPLAB Starter Kit for PIC24F MCU RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM240012 功能描述:开发板和工具包 - PIC / DSPIC PIC24E USB Starter Kit RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM240013-1 功能描述:开发板和工具包 - PIC / DSPIC Microstick for 3V PIC24F K-series RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM240013-2 功能描述:开发板和工具包 - PIC / DSPIC RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: