Texas Instruments Incorporated · NASDAQ:TXN
Texas Instruments — Technical Presentation
16 slides from Texas Instruments's technical presentation
Slide 1: C2000 SysConfig Demonstration
C2000 SysConfig Demonstration GUI-Based Configuration Tool for C2000 MCUs Walkthrough of Initializing and C2000 Configuring Device Using SysConfig 1
Slide 2: SysConfig Demo Overview and Objective
SysConfig Demo Overview and Objective • Import an existing ADC example into Code Composer Studio – adc_ex13_soc_oversampling • Use EPWM1 to trigger 6 ADC conversions @ 50kHz – adcAResult0 = A0 Conversion A2 – adcAResult1 = A1 Conversion – adcAResult2 = Average of 4 x A2 Conversions (Oversampled) • U
Slide 3: LaunchPad Hardware Overview
LaunchPad Hardware Overview • All LaunchPads include some form of a DAC signal – Device DAC – PWM-DAC • Transforms an ePWM signal into a DC voltage using buffer and low-pass RC filter circuitry • Connect DAC pin to the A0 pin using a jumper wire – Drive DAC and allow ADC A0 to sample it 3
Slide 4: Set Active Target Configuration
Set Active Target Configuration Right click on desired target 4
Slide 5: Change SOC0 to Channel A0 (1)
Change SOC0 to Channel A0 (1) • Expand SOC Configurations to confirm the enabled SOCs 5
Slide 6: Change SOC0 to Channel A0 (2)
Change SOC0 to Channel A0 (2) • Expand SOC0 configuration and change the Channel to ADCIN0 6
Slide 7: Change SOC0 to Channel A0 (3)
Change SOC0 to Channel A0 (3) • Expand Sample Time Calculator • Check Use Sample Time Calculator • Input Cs = 0.1uF and Rs = 1kΩ • Check Use Calculated Sample Time for this SOC 7
Slide 8: Change SOC1-5 to Channel A0
Change SOC1-5 to Channel A0 • Repeat SOC0 steps on SOC1 through SOC5 8
Slide 9: Configure MUX for PWM DAC (1)
Configure MUX for PWM DAC (1) • GPIO23 is MUX'd with EPWM4_B (Pin 65 of 80-pin device on LP) • Click on 3-dot settings shortcut • Click on Preferences & Actions 9
Slide 10: Configure MUX for PWM DAC (2)
Configure MUX for PWM DAC (2) • Expand Device Pin Label setting • Check Device pin name option • Close Preferences & Actions Configure EPWM PinMux: 1. Add an EPWM configuration under Control >> EPWM >> + 1 2. CUSTOM 3. EPWM_B 2 3 4. EPWM4 5. GPIO23/65 4 5 10
Slide 11: Configure Time Base for PWM DAC
Configure Time Base for PWM DAC Configure EPWM Time Base – Period of 200 – Change HS Clock Divider to Divide Clock by 1 – Up-Count Mode 11
Slide 12: Configure Counter Compare for PWM DAC
Configure Counter Compare for PWM DAC Configure Counter Compare – CMPB Value of 100 12
Slide 13: Configure Action Qualifier for PWM DAC
Configure Action Qualifier for PWM DAC Configure Action Qualifier – Enable ePWMxB Shadow Mode – Action Events • Time Base Equals Zero – Trigger Pin High • Time Base Up Equals CMPB – Trigger Pin Low 13
Slide 14: Debug Project
Debug Project Clicking Debug Icon Will Do the Following: • Compile and link the active project • Connect to the target specified in the .ccxml • Load the generated .out file to the target • Run to main and halt 14
Slide 15: Add Variables to Watch Expressions Window
Add Variables to Watch Expressions Window Enable Continuous Refresh 1. Select variable 2. Right click 15
Slide 16: Helpful SysConfig Resources
Helpful SysConfig Resources • Test out SysConfig in the Cloud • Download Standalone SysConfig Tool • Learning Material – Application Report: C2000 SysConfig – SysConfig Training Module and Hands-On Lab in C2000 Academy – Speed Up Development With C2000™ Real-Time MCUs Using SysConfig – C2000 SysConf