0% found this document useful (0 votes)
56 views11 pages

Weekly PPT

The document compares the Piccolo controlstick and Piccolo LaunchPad development boards. It lists 10 key features such as input/output pins, clock speed, memory, interfacing, weight, and analog-to-digital converter pins. The Piccolo controlstick has fewer I/O pins, a slightly lower clock speed, uses a small USB memory stick for interfacing, and is lighter weight compared to the Piccolo LaunchPad.

Uploaded by

shashi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views11 pages

Weekly PPT

The document compares the Piccolo controlstick and Piccolo LaunchPad development boards. It lists 10 key features such as input/output pins, clock speed, memory, interfacing, weight, and analog-to-digital converter pins. The Piccolo controlstick has fewer I/O pins, a slightly lower clock speed, uses a small USB memory stick for interfacing, and is lighter weight compared to the Piccolo LaunchPad.

Uploaded by

shashi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Asymmetric PWM Output

Uint16 duty_cycle_A=500; // Set duty


50% initially
Uint16 duty_cycle_B=500; // Set duty
50% initially
void main(){
#define period 1000
EPwm2Regs.TBPRD = period; // Set timer
period, PWM frequency = 1
EPwm2Regs.TBPHS.all = 0; // Time-Base
Phase Register
EPwm2Regs.TBCTR = 0; // Time-Base
Counter Register
EPwm2Regs.TBCTL.bit.PRDLD = TB_IMMEDIATE; // Set Immediate load
EPwm2Regs.TBCTL.bit.CTRMODE = TB_COUNT_UP;
// Setup shadow register load on ZERO
EPwm2Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;
EPwm2Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
EPwm2Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO;
EPwm2Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO;
// Set Compare values

EPwm2Regs.CMPA.half.CMPA = duty_cycle_A; // Set duty 50%


initially
EPwm2Regs.CMPB = duty_cycle_B; // Set duty 50%
initially

// Set actions
EPwm2Regs.AQCTLA.bit.ZRO = AQ_SET; // Set PWM2A on Zero
EPwm2Regs.AQCTLA.bit.CAU = AQ_CLEAR; // Clear PWM2A on event A,
up count

EPwm2Regs.AQCTLB.bit.ZRO = AQ_CLEAR; // Set PWM2B on Zero


EPwm2Regs.AQCTLB.bit.CBU = AQ_SET; // Clear PWM2B on event B,
up count
for(;;)
{
EPwm2Regs.CMPA.half.CMPA = duty_cycle_A;
EPwm2Regs.CMPB = duty_cycle_B;
}
Uint16 duty_cycle_A=500; // duty
cycle 50%
Uint16 duty_cycle_B=500; // duty
cycle 50%
Uint16 duty_cycle_A=100; // duty
cycle 10%
Uint16 duty_cycle_B=900; // duty
cycle 90%
Uint16 duty_cycle_A=100; // duty
cycle 10%
Uint16 duty_cycle_B=100; // duty
cycle 10%
for(;;)
{
EPwm2Regs.CMPA.half.CMPA =period*1;
EPwm2Regs.CMPA.half.CMPA =period*3;
EPwm2Regs.CMPA.half.CMPA =period*5;
EPwm2Regs.CMPA.half.CMPA =period*7;
EPwm2Regs.CMPB = duty_cycle_B; //duty_cycle_B = 100
}
for(;;)
{
EPwm2Regs.CMPA.half.CMPA =period*1;
void delay()
delay(); {
EPwm2Regs.CMPA.half.CMPA =period*3;
CpuTimer0.RegsAddr = &CpuTimer0Regs;
delay(); CpuTimer0Regs.PRD.all = period;
EPwm2Regs.CMPA.half.CMPA =period*5;CpuTimer0Regs.TCR.bit.TSS = 0;
while(CpuTimer0Regs.TCR.bit.TIF==0);
delay(); CpuTimer0Regs.TCR.bit.TIF=0;
EPwm2Regs.CMPA.half.CMPA =period*7;CpuTimer0Regs.TCR.bit.TSS=1;
}
delay();
Comparison between piccolo
controlstick and piccolo LaunchPad

Source http://www.ti.com/tool/Launchxl-
F28069m
Comparison between piccolo
controlstick and piccolo LaunchPad
S.N Features Piccolo Piccolo controlpad
O controlstickF28069 F28069M
1 Input/output 32 80
pins
2 Clock speed 80 MHz 90 MHz
3 Embedded 256KB of Flash 256KB of Flash
Memory
4 Interfacing Small USB memory stick USB cable
medium
5 Flash memory 256 KB 256KB
6 bits 32bit 32 bit
7 weight .097749 Kg .154987Kg
8 ADC pins 12 Bit 12 Bit
9 Encoder single dual
10 RAM 100 KB 96KB

You might also like