dsPICDEM? 80-Pin Starter Development Board User’s Guide
The dsPIC DSC device functionality used in this demonstration program includes:
? Setting up I/O ports
? Setting up timer interrupts
? Handling interrupts
To observe this demonstration, close jumper J4 to enable the LEDs, then operate the
switches.
3.3.2
Analog-to-Digital Conversion
To illustrate analog-to-digital conversion, the analog value of potentiometer R13 is
converted by the Analog-to-Digital Converter, ADC12, to a digital value that is
transmitted via UART1 to a PC.
When the HyperTerminal accessory in Microsoft Windows ? is connected to the serial
port on the dsPICDEM 80-Pin Starter Development Board, it receives and displays a
stream of three-digit HEX codes that correspond to the 12-bit output value of ADC12.
As the potentiometer R13 is adjusted, the displayed HEX code changes within a range
from 000 to FFF.
The dsPIC30F device functionality used for this demonstration includes:
? Conversion of an analog signal to a 12-bit digital signal
? Conversion of the 12-bit ADC value to HEX and ASCII format
? UART communication handling
To implement this demonstration, connect the J1 connector on the dsPICDEM 80-Pin
Starter Development Board to the RS-232 serial port on the PC with a DB9 cable. Using
the HyperTerminal program available as a Microsoft Windows communications
accessory, configure the serial port to 2400 baud, 8 bits with 1 stop bit, no parity and
no flow control.
3.3.3
Digital-to-Analog Conversion
To illustrate digital-to-analog conversion, the dsPICDEM 80-Pin Starter Development
Board uses the MCP41010 digital potentiometer and MCP6022 Operational Amplifier
(configured as a low-pass filter) to deliver an audio tone to the LINE OUT pin. The
digital input is derived from a table of HEX values in data memory. The demo program
cycles through the table and delivers the selected value to the digital potentiometer via
the Serial Peripheral Interface (SPI) module on the dsPIC DSC device. The table
values cover the full range of the digital potentiometer.
The program communicates a new table value to the digital potentiometer every 125
microseconds, which generates a 400 Hz audio signal out of the low-pass filter.
Switches S1 and S2 are used to change the output frequency to 800 Hz and 1600 Hz,
respectively.
The dsPIC DSC device functionality used for this demonstration includes:
? Mapping of data memory to program memory with PSV addressing
? Initialization of the SPI port
? Loading and transmission of data using hardware SPI
To observe this demonstration, connect an oscilloscope probe to pin 2 of J9 (the LINE
OUT pin).
DS51584B-page 26
? 2006 Microchip Technology Inc.
相关PDF资料
DM300024 KIT DEMO DSPICDEM 1.1
DM330012 KIT USB STARTER FOR DSPIC33E
DM330013 MICROSTICK DSPIC33F/PIC24H BOARD
DNET1 SURGE SUPPRESSOR ETHERNET RJ45
DR-8094 RACK DOUBLE 84"X20.25"X36" BLK
DR-IAC5E INPUT MODULE AC 5VDC
DRIDC24A INPUT MODULE DC 34MA 24VDC
DRODC24 OUTPUT MODULE DC 13MA 24VDC
相关代理商/技术参数
DM300019 制造商:Microchip Technology Inc 功能描述:DEMO BOARD STARTER ((NW))
DM300020 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM MC1 Motor C RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300021 功能描述:开发板和工具包 - PIC / DSPIC High V Pwr Module RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300021 制造商:Microchip Technology Inc 功能描述:MODULE dsPICDEM MC1H 3 PHASE
DM300022 功能描述:开发板和工具包 - PIC / DSPIC Low V Pwr Module RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300023 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM SMPS Buck Demo Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300024 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 1.1 GP RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300027 功能描述:开发板和工具包 - PIC / DSPIC 16-bit Starter Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: