参数资料
型号: DM240002
厂商: Microchip Technology
文件页数: 28/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
One of the simplest ways to switch debounce is to sample the switch until the signal is
stable or continue to sample the signal until no more bounces are detected. How long
to continue sampling requires some investigation. However, 5 mS is usually plenty
long, while still reacting fast enough that the user won’t notice it.
Lesson 6 shows how to sample the line at a 1 mS rate waiting for a number of sequen-
tial state changes, which is a simple matter of counting to 5, then resetting the counter
every time it’s still in the original unchanged state.
The Switch on the 44-Pin Demo Board doesn’t bounce much, but it is good practice to
debounce all switches in the system.
FIGURE 3-6:
SIMPLE SWITCH DEBOUNCE PROGRAM FLOW
Yes
Switch has
changed states?
No
Increment Counter
Is Counter = 5?
Yes
Change State
Reset Counter
No
Delay 1 mS
Reset Counter
3.2.7
Lesson 7: Reversible Variable Speed Rotate
Lesson 7 combines Lessons 5 and 6 using the button to reverse the direction of rotation
when the button is pressed and adjusting the potentiometer to control the speed of
rotation.
The program needs to keep track of rotation direction and new code needs to be added
to rotate in the other direction.
Lesson 5 rotates right and checks for a ‘ 1 ’ in the Carry bit to determine when to restart
the sequence. In Lesson 7, we’ll also need to rotate left and check for a ‘ 1 ’ in bit 7 of
the display. When the ‘ 1 ’ shows up in bit 7 of the display, insert it into the bit 0 position.
DS41296B-page 24
? 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 接口类型: 工作电源电压: