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.

NHET for RPM Detection

Hi.

 

I'm using RM48HDK module.

I'm tring to use NHET module for RPM detection. How can I use it?

Could you send me the sample program for NHET edge interrut detection?

 

Thank you.

  • encoder (QEP A, B, I) or hall sensor signal?

    If you look for encoder NHET example, go to: http://processors.wiki.ti.com/index.php/TMS570LS31x_CNCD

    And look for demo software: NHET Project NHET_Example.zip

     

  • Hi.

     

    I try to compile TMS570LS31x_CNCD Motor_Demo.

    but, it has so many error. why does it happen?

    I'll post the screen capture file.

    Thank you.

    Seongjin Jeong

    KOMECO/Senoir Engeer

     

  • Seongjin,

    Please can you tell me which version of the Code Generator Tool you are using?

    The problem you are facing can easily be fixed.
    The Data_Process.asm file is using Thumb2 instructions. The reason you are getting all this error is because in CCS this project is compiled as ARM mode (32bis).

    The best solution is to edit the Data_Process.asm and to add after the .text statement the following statement:

           .thumb

    This will inform the assembler to assemble this file in thumb2 mode.

    I've also noticed a warning during link time that can be fixed by adding the following line in the sys_link.cmd

    /* USER CODE BEGIN (4) */
        MOTOR_CODE: palign=4, run=RAM, load=FLASH0, LOAD_START(_motor_load_addr1), RUN_START(_motor_run_addr), SIZE(_motor_length)
        {
           Data_Process.obj(.text)
        }
        .sysmem : {} > RAM
    /* USER CODE END */

    Please have a try and let me know the result.

    Regards,

    Jean-Marc