This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F2812 CAPTURE EXAMPLE CODE

Other Parts Discussed in Thread: TMS320F2812

HI All ,

    am working in TMS320F2812,  successfully i have generated sine pwm for 3 phase inverted with the help of TI header file setup , now i want to read the signal from motor and i have to control the speed with closed loop functin, can u please direct me to correct link wherre i can get the correct information about the CAPTURE PIN, EXAMPLE CODE USING CAPTURE FUNCTION,,,,,,,,,,,,,,,,,,,,

URGENT BY TODAY,,,,,,,,,,,,,,,,, TRY TO HELP SOON...............

  • http://www.ti.com/tool/sprc130         

    aci3_1.c

    	Line 75: // Instance a Capture interface driver 
    Line 76: CAPTURE cap1 = CAPTURE_DEFAULTS;
    Line 78: // Instance a speed calculator based on capture
    Line 79: SPEED_MEAS_CAP speed1 = SPEED_MEAS_CAP_DEFAULTS;
    Line 79: SPEED_MEAS_CAP speed1 = SPEED_MEAS_CAP_DEFAULTS;
    Line 250: // Initialize capture module
    Line 251: cap1.init(&cap1);
    Line 255: // x1-eCap Timer, 100MHz, 1000-teeth sprocket, only Capture Event 1 used (4x)
    Line 381: if((cap1.read(&cap1))==0) // Call the capture read function
    Line 383: speed1.EventPeriod=(int32)(cap1.EventPeriod); // Read out new time stamp difference
    Line 388: if((cap1.read(&cap1))==0) // Call the capture read function
    Line 390: speed1.TimeStamp=(int32)(cap1.TimeStamp); // Read out new time stamp
    Line 477: if((cap1.read(&cap1))==0) // Call the capture read function
    Line 479: speed1.EventPeriod=(int32)(cap1.EventPeriod); // Read out new time stamp difference
    Line 484: if((cap1.read(&cap1))==0) // Call the capture read function
    Line 486: speed1.TimeStamp=(int32)(cap1.TimeStamp); // Read out new time stamp