How do I test the QEP port on the TI C2812 board in Target for TI C2000 2.2 (R2007a)?

조회 수: 1(최근 30일)
I am using the Target for TI C2000 on a TI C2812 board. There is no signal detected from the QEP port.
How can I test the QEP port to see if it is faulty or not?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
You can use the attached model to test the QEP board. To run the model, please do the following:
1. Make the some hardware connections. If you are using a Spectrum Digital 2812 eZdsp board, the following pins have to be connected:
A. P8-10 connected to P8-6.
B. P8-9 connected to P8-7.
If you are using a custom board, the following must be connected on the 2812 chip:
C. Pin 92 to 106.
D. Pin 93 to 107.
2. Once the connections are made, go ahead and generate code for the model.
3. In Code Composer Studio (CCS), open the QEP_loopback.c file. QEP_counter is declared as a global variable at the top of the file.
4. Right-click on the variable and select "add to watch window". Now you can see the value of the QEP counter in CCS.
5. If you right click on the watch window and select refresh, you can verify that this variable is incrementing, hence showing that the QEP module is working.

추가 답변(0개)

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2007a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by