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.

DSK c5510 timer interrupt

Other Parts Discussed in Thread: SPRC133

Hello every body

Iam a new member to this community. Iam using DSKc5510 for one of my application where i have to use timer to generate periodic events.

now, iam going through the literature but not very clear about how  my ISR is mapped to the timer interrupt. iam using algebriac assembly for my application devlopment

i searched web but could not find the sample code for this. can any body help me out  as to how to procede

any sample code will help me great deal.

i'am new to DSPs

Thankyou

Ravikumar

  • Hi,

    Yes there is an timer example from Chip Support Library (CSL) http://www.ti.com/tool/sprc133.

    Please use SPRC133.

    SPRC133:
    TMS320C55x Chip Support Library for C5501, C5502, C5509, C5509A, and C5510 devices

    Regards,

    Hyun

  • Welcome.

    The general purpose timer interrupt signal (TINT0 and TINT1) are mapped to CPU's interrupt flag registers (IFR0 and IFR1) bits (SINT4 & SINT22). These documents would be useful: The data manual, timer user's guide and TMS320C55x DSP CPU Reference Guide.

    For SW examples, I would recommend CSL SPRC133 and Spectrum Digital's DSK5510 example tests: http://c5000.spectrumdigital.com/dsk5510/

    Regards.

     

     

  • Thanks a lot Mr Hyun for useful information..

    warm regards

    Ravikumar

  • Thanks a lot Mr Steve Tsang for the info...

    but one small doubt, how processor control directed to ISR which we have written for this particular interrupt

    we set IVPD and IVPH registers with starting address of interrupt vector table and then? how to set ISR's address and where??

    Thanks and regards,

    Ravikumar

  • I would recommend serching the web for any DSP Programming related information to read up. Use the CSL eaxmples and the TMS320C55x DSP CPU Reference Guide to understand how the C55 DSP works.

    A for the ISR, the ISR name is assigned in the vector.asm file in CSL examples.

    Hope this help.

    Regards.

  • Dear Mr Steve, 

    this is regarding use of the call instruction, iam calling a routine in my application, when it returned from the called routine it is not going back where it is called from rather it is going back to the start of the program. i have observed that the RETA is holding the return address but it is not updating the program counter while returning from sub routine..why? i have gone through the literature and found that stack has to be configured to fast return. but when i have seen the reset vector location through GEL option in ccs it is set as follows
    FFFF00 00000000                 .ivec , USE_RETA
    FFFF04 000000                   RPTCC #0, AC0 == #0
    FFFF07 000000                   RPTCC #0, AC0 == #0
    FFFF0A 000000                   RPTCC #0, AC0 == #0
    FFFF0D 000000                   RPTCC #0, AC0 == #0
    from the above i understood that the stack is already configured as 16 bit fast return.
    please correct me if my understanding is wrong. and suggest me how can i set the stack to correct configuration so that control go back to  correct position after call.
    please help me
    Warm Regards,
    Ravikumar