Author Topic: question regarding PWM controller sequent  (Read 1896 times)

0 Members and 1 Guest are viewing this topic.

Offline orchidTopic starter

  • Full Member
  • ***
  • Posts: 54
  • Helpful? 0
question regarding PWM controller sequent
« on: April 29, 2008, 01:44:14 AM »
I have some source code that control PWM for my dsp mck 2812 board. The problem is, the motor didnt rotate well and after rotating half (or maybe less) cycle, my ccs show error sign and needed me to disconnect the board from pc. is there any way else i can use or somebody can repair my source code i've made.

Code: [Select]
void Gpio_PortBF(void)
{

while(1)
{
DelayUs(2000);
EvaRegs.ACTRA.all = 0x00C2;
DelayUs(2000);
EvaRegs.ACTRA.all = 0x0C02;
DelayUs(2000);
EvaRegs.ACTRA.all = 0x0C20;
DelayUs(2000);
EvaRegs.ACTRA.all = 0x00C8;
DelayUs(2000);
EvaRegs.ACTRA.all = 0x0C08;
DelayUs(2000);
EvaRegs.ACTRA.all = 0x0C80;
DelayUs(2000);
EvaRegs.ACTRA.all = 0x0000;

}
}

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
2008 Views
Last post October 25, 2007, 11:42:13 PM
by bulkhead
57 Replies
16982 Views
Last post July 14, 2008, 03:39:01 AM
by RUBEN;blues
6 Replies
2137 Views
Last post May 25, 2010, 03:26:11 AM
by kevinisnekkid
98 Replies
10996 Views
Last post July 27, 2011, 04:24:47 PM
by madsci1016


Get Your Ad Here