 by mniki » Fri Mar 12, 2010 4:42 pm
                by mniki » Fri Mar 12, 2010 4:42 pm
            
            
                     by mniki
                by mniki
Fri Mar 12, 2010 4:42 pm
            
            
            i didn't read any byte, i only test read serial number function to sure that my send_cmd() function has no error blinking for reading serial! i change the firmware to 2.29 and test and test again, but it has the same problem. here is the whole main function 
while (1)
      {
      // Place your code here
         if (PINB.4 ==0)
      {
   
        rls_mode();
        delay_ms(200);
      }
      if (PINB.1 ==0)
      {
        //send_cmd(0x14,0x07);
        
        send_cmd(0x0c,0x01);
        delay_ms(200);
        //send_cmd(0x12,0x01);
        
      }
      if (PINB.2 ==0)
      {
   
        send_cmd(0x14,0x07);
        delay_ms(200);
        
      }
       if (PINB.3 ==0)
      {
   
        //send_cmd(0x14,0x07);
        
        //send_cmd(0x0c,0x01);
        send_cmd(0x12,0x01);
        delay_ms(200);
        
      }
      };
I use Pinb.4 for release and three other for commands, only motion command gets error and error LED blink .
Help plz!!!!
            i didn't read any byte, i only test read serial number function to sure that my send_cmd() function has no error blinking for reading serial! i change the firmware to 2.29 and test and test again, but it has the same problem. here is the whole main function 
while (1)
      {
      // Place your code here
         if (PINB.4 ==0)
      {
   
        rls_mode();
        delay_ms(200);
      }
      if (PINB.1 ==0)
      {
        //send_cmd(0x14,0x07);
        
        send_cmd(0x0c,0x01);
        delay_ms(200);
        //send_cmd(0x12,0x01);
        
      }
      if (PINB.2 ==0)
      {
   
        send_cmd(0x14,0x07);
        delay_ms(200);
        
      }
       if (PINB.3 ==0)
      {
   
        //send_cmd(0x14,0x07);
        
        //send_cmd(0x0c,0x01);
        send_cmd(0x12,0x01);
        delay_ms(200);
        
      }
      };
I use Pinb.4 for release and three other for commands, only motion command gets error and error LED blink .
Help plz!!!!