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.

Question on UART and Timer..!!

Other Parts Discussed in Thread: TMS320DM6437

Hello, I had start studying TMS320DM6437 EVM(made by Spectrum Digital) with my Intern started a week ago.

My Working application is CCS v3.3 and I had success for operating DIP Switch and LED on/off

 

 

But, I am facing with two problem!

 

First, I can't initializing UART Regsiter.

I had referenced default examples(provided CCS).

However, A UART Register was never modify by UART example Processing

The Register doesn't change values. Usually, Also, The Register changed the value. But, It changed only the PWREMU Register( It also modified only a 0x6003 )

 

Can you tell me why this problem happened? Please Give me a solution.

( The Solution is "Success of UART Example Source" or "How to modify the register that prevented access." )

 

Next, I can't use Timer Interrupt. I already know that Timer Interrupt generated when TIM12 reached PRD12's value.

But, How to use TINTL0?( It has written on DM6437 'DataSheet' and '64bit Timer' References Document by DSP SYSTEM EVENT NUMBER '4')

And How to modify PRD12 Regsiter?

 

So, I hope using the TINTL0 Interrupt. How to use this Interrupt? Where is the Interrupt Vector table or a Interrupt Vector Register?

Please Show me the C code example.(Not Big time or Clock example)

 

Below is part of my C codes.

 

 

 

 

 


#include "evmdm6437.h"

Int16 Timer_count;

 

interrupt void TINTL0( )

{

Timer_count++;

}

 

void Timer_LED( )

{

Timer_count = 0;

 

while(1)

{

if ( Timer_count > 5 )

{

EVMDM6437_LED_on( 0 );

Timer_count = 0;

_waitusec(30000);

EVMDM6437_LED_off( 0 );

}

}

}

 

  • Hello Dong-Chan,

    Please refer to the Timer User Guide for Timer:  http://focus.ti.com/lit/ug/spru989/spru989.pdf, and the UART User Guide for UART: http://focus.ti.com/lit/ug/spru997c/spru997c.pdf.

    Regards,

    Viet

  • Thanks for your replies!

     

    I already got two References(Timer, UART).

    However, How to use the TINTL0?

     

    Frankly, for the first time I faced these problems.

    I had only experience ARM Cortex-M3 and it is solved by Interrupt Vector using C codes.

     

    For examples, If the Cortex-M3 is occured a Interrupt, The processor goes to Interrupt Handler using C codes.

    The Interrupt Handler have included interrupts handling by source codes.

     

    Consequently, When an interrupt occurs, Where is DM6437 Interrupts handler?

    Please show me some examples by C codes for solving this problem.

     

    How can I use a interrupt handler?

    How can I write interrupt Vector and handler?

     

     

    Thanks again for your replies!