英飞凌16位单片机2287-DAVE演示文档-ADC
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
HOT XC2000
ADC
AIM MC ACE1
Hardware Triggering of ADC
In this exercise you will:
Configure the XC2000 with DAvE
Assign a potentiometer to an ADC cannel
Define ADC parameters
Develop a program that will trigger ADC conversion by hardware
Hardware Triggering of ADC
Exercise goal:
Trigger ADC conversion by T13 overflow of CCU60
The onboard potentiometer is connected to channel 0
(P5.0)
A/D converter will run in hardware triggered autoscan
mode
Use T13 period match of CCU60 to trigger ADC conversion Output A/D results on Port P10 (LED display)
1
2
3
After a while a ‘project settings’window occurs
In the ‘compiler settings’option, select ‘Tasking Viper’
Take default for other settings
Close the window by pressing
Save your project by selecting 'File →Save' or press Browse and create folder
“c:\IFX_HOT\VX_code_workspace\ADC_1”
Enter project name: 'ADC_1'
Click 'Save’.
Project Settings
Project Settings (cont.)
3
2
1
Close the windows by pressing
12
1 2
3 2
1
3 2
3 1
2
12
1 2
1 2
2 3
3 1 2
Output Value –
2 1
Save your DAvE Project File
Go to File ÆSave (or Save As)or click on Filename entered previously: “c:\IFX_HOT\VX_code_workspace\ADC_1\ADC_1.dav”Save DAvE Project
1
Open Project Work Space
Click on
2
Create New Project
Click on Workbench (if not already there…)
1
2
3
4
1
23 4
1 2
1
2
2 1
1
Set Target Board Configuration for Project ADC_1
Select ‘Infineon XC2287 Easy Kit Board’
1
2
3
Disable ‘Automatic inclusion of ‘.sfr’file’
3
45
1
6
1
6
45
Run Debugger
Verifications
Click on ‘Suspend’
Click on ‘Restart’
LEDs Stop Changing ON/OFF States
Click on ‘Resume’
LEDs display ADC value