参数资料
型号: DM240001
厂商: Microchip Technology
文件页数: 29/50页
文件大小: 0K
描述: BOARD DEMO PIC24/DSPIC33/PIC32
产品培训模块: PIC24 Introduction
视频文件: PIC32 Board Selection
特色产品: SMPS & Digital Power Conversion Solutions
AC164144 LCC Graphics PICtail? Plus Daughter Board
标准包装: 1
系列: Explorer 16 100 引脚
类型: MCU
适用于相关产品: dsPIC30,dsPIC33,PIC32,PIC24FJ,PIC24HJ
所含物品: Explorer 16 开发板,PIC24FJ128GA010 和 dsPIC33FJ256GP710 PIM 模块
产品目录页面: 659 (CN2011-ZH PDF)
配用: AC164127-5-ND - BOARD GRAPH LCD CNTLR PICTAIL
AC164127-3-ND - BOARD DAUGHTER GRAPHIC PICTAIL
AC164127-ND - BRD DAUGHT GRAPHIC PICTAIL PLUS
相关产品: MA240017-ND - MODULE PLUG-IN PIC24F16KA102 PIM
DSPIC33FJ64MC802T-I/MM-ND - IC DSPIC MCU/DSP 64K 28-QFN
DSPIC33FJ64MC202T-I/MM-ND - IC DSPIC MCU/DSP 64K 28-QFN
DSPIC33FJ64GP802T-I/MM-ND - IC DSPIC MCU/DSP 64K 28-QFN
DSPIC33FJ64GP202T-I/MM-ND - IC DSPIC MCU/DSP 64K 28-QFN
DSPIC33FJ32MC302T-I/MM-ND - IC DSPIC MCU/DSP 32K 28-QFN
DSPIC33FJ32GP302T-I/MM-ND - IC DSPIC MCU/DSP 32K 28-QFN
DSPIC33FJ128GP202T-I/MM-ND - IC DSPIC MCU/DSP 128K 28-QFN
DSPIC33FJ64MC802-I/MM-ND - IC DSPIC MCU/DSP 64K 28-QFN
DSPIC33FJ64MC802-E/MM-ND - IC DSPIC MCU/DSP 64K 28-QFN
更多...
Explorer 16 Development Board User’s Guide
3.3
dsPIC33F TUTORIAL PROGRAM OPERATION
The dsPIC33F tutorial program is made up of five simple processes which continuously
execute on the dsPIC33FJ256GP710 device:
?
?
?
?
?
Real-Time Clock (RTC) using Timer1
A/D conversion of Potentiometer (R6)
A/D volts to Hex conversion
Hex to Decimal conversion (for LCD display)
LCD Update
The time of day and A/D conversion values are continually updated and displayed on
the LCD. The program demonstrates the basic code to initialize Timer1, enable the
Timer1 oscillator for RTC operation, and initialize the A/D for single channel conversion
of potentiometer, RP5. The LCD is driven via the port pins. The program flow is shown
In addition to the tutorial, the Explorer 16 CD also provides code examples to demon-
strate higher level processing requirements, such as DMA, digital filters and Fast
Fourier Transforms (FFT). See Code Example 2 on the CD for more information.
3.3.1
Voltmeter
The simple tutorial program initializes the A/D module for 12-bit mode with
auto-sampling and conversion of the potentiometer connected to pin AN5 and initial-
izes the respective interrupt. The A/D module continually samples and converts the
potentiometer signal (0 to 3.3 VDC) on analog channel, AN5. When a conversion is
complete, an interrupt is generated and the result in the ADCBUF0 register is copied
into a temporary variable, temp1 . The adc_lcd_update flag is then asserted and the
A/D Interrupt Flag, AD1IF (IFS0<13>), is cleared.
The program exits the Interrupt Service Routine and re-enters the main program loop.
The variable, adc_lcd_update , is evaluated in the main loop to determine if there is
a new A/D conversion value which can be converted and displayed on the LCD.
The primary code modules associated with the operation of the ADC module and
display are:
?
?
?
?
init_ADC.c
isr_ADC.c
advolts.c
hexdec.c
3.3.2
Real-Time Clock
The tutorial program also supports a Real-Time Clock demo. Timer1 is initialized with
interrupts enabled and the external 32.768 kHz oscillator is enabled. Within the Timer1
Interrupt Service Routine (once every second), the variables, hours , minutes and
seconds , are updated, the flag variable, rtc_lcd_update , is asserted and the
Timer1 Interrupt Flag, T1IF (IFS0<3>), is cleared.
The program exits the Interrupt Service Routine and re-enters the main program loop.
The variable, rtc_lcd_update , is evaluated in the main loop to determine if there is
a new time of day value which can be converted and displayed on the LCD.
The primary code modules associated with the operation of the Timer1 module and
display are:
? init_timer1.c
? isr_timer1.c
? hexdec.c
DS51589A-page 25
? 2005 Microchip Technology Inc.
相关PDF资料
PDF描述
DM240002 BOARD DEV EXPLORER 16 44-PIN
DM240011 KIT STARTER MPLAB FOR PIC24F MCU
DM240021 KIT STARTER MPLAB FOR PIC24H
DM240311 BOARD DEV PIC24F16KA102 XLP
DM300018 BOARD DEMO DSPICDEM 2
相关代理商/技术参数
参数描述
DM240002 功能描述:开发板和工具包 - PIC / DSPIC Explorer 16 Kit RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
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 接口类型: 工作电源电压: