参数资料
型号: DM240002
厂商: Microchip Technology
文件页数: 26/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 User’s Guide
3.2.5
Lesson 5: Variable Speed Rotate
Lesson 5 combines Lessons 3 and 4 by using the Analog-to-Digital Converter (ADC)
to control the speed of rotation.
New Instructions
BTFSS
BTFSC
Bit test, skip if set
Bit test, skip if clear
A conversion is run on every pass through the main loop. The result controls the length
of the outer loop (see Example 3-5).
EXAMPLE 3-5:
...
VARIABLE SPEED ROTATE EXAMPLE
BSF
BTFSS
GOTO
MOVF
ADDLW
MOVWF
ADCON0,GO_DON E
ADCON0,GO_DONE
$-1
ADRESH,w
1
Delay2
; start conversion
; this bit will change to zero when
; the conversion is complete
; Copy the display to the LEDs
A2DDelayLoop:
DECFSZ
Delay1,f
; Delay Loop shortened by the ADResult
; as controlled by the potentiometer.
GOTO
DECFSZ
GOTO
FIGURE 3-3:
A2DDelayLoop
Delay2,f
A2DDelayLoop
VARIABLE SPEED ROTATE PROGRAM FLOW
Initialize I/O Port
Initialize ADC
Put Up Display
Get ADC Result
Delay Using ADC
Rotate Display
DS41296B-page 22
Did it overflow?
No
Reset Display
Yes
? 2007 Microchip Technology Inc.
相关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 接口类型: 工作电源电压: