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.

AM1808 interrupt example?

Anonymous
Anonymous

Other Parts Discussed in Thread: AM1808

Hi,

 

I would like to ask a question AM1808.

 

Is there any example showing how interrupts are used on AM1808? I need example code showing:

1)    How interrupts are enabled in the CPU core

2)    How events are mapped to internal interrupts

3)    How vector table (in assembly code) are written

4)    How loading address of ISR are specified in linker.cmd

 

These code should not rely on any operating system such as Linux or BIOS, but rather in the "naked" code in that registers are modified directly and all other necessary steps are done using directives and alike.

 

Could someone provide code for this? Or does TI wiki contain such example?

 

 

 

Zheng

 

 

  • Anonymous
    0 Anonymous in reply to Mukul Bhatnagar

    Mukul,

     

    Features
    • Peripheral programming interface
    • Example applications for each peripheral to demonstrate programming and usage of the peripheral
    • Software portability across devices for a given peripheral
    • Tool-chain agnostic C code (Some startup code will be in assembly and hence some part of the code will be tool dependant)
    • Support for Windows® host and Linux host (Not all tool chains support both Windows and Linux hosts)
    • Support for the following tool chains:
      • Mentor Graphics' Sourcery CodeBench(GCC) for ARM EABI
      • IAR tool chain for ARM
    • Graphics library and USB stack ported with example applications
    • Doxygen based application programming interface (API) reference guide available with delivery package

     

    What's Included

     

    • Bootloader and flashing utility
    • Device abstraction layer for most of the peripherals
    • Application examples showing the usage of DAL and demonstrating the capability of the peripherals
    • Out of box demo that boots from flash and demonstrates various peripherals
    • lwIP, a free, BSD-style license, TCP/IP stack from Swedish Institute of Computer Science
    • API reference guide, release notes and user guide
    • AisGen tool to convert .out to .ais
    • Registry file for IAR (.mac) and Code Composer Studio™ (CCS) (.gel)
    • Pnmtoc tool to convert PNM image to C array
    • User guide that provides a detailed list of instructions and helpful programming tips

     

    I have just downloaded the package. However, in all descriptions above I didn't find information on interrupt configuration. Is interrupt configuration example included?

     

     

    Zheng

     

     



  • Anonymous
    0 Anonymous in reply to Mukul Bhatnagar

    Mukul,

    I also looked at the folder contents, and at least from what the folder/file name suggest there is no dedicated interrupt configuration example.

    Does it really include interrupt example? In which folder/example?

     

    Zheng

  • Anonymous
    0 Anonymous in reply to Anonymous

    Mukul,

     

     

    Did you mean this one?

    I haven't bough an AM1808 EVM yet. The simulator setup dialog says that no peripheral is modeled.  In the support component list (highlighted in yellow) I didn't find AINTC, but does AINTC belong to processor core? After all, can interrupts be simulated in simulator?

     

     

     

    Zheng

  • Zheng,

                 there is no dedicated interrupt configuration example. However you can find the interrupt configuration in lot of examples timer, raster, demo, etc.

     

    Regards

    Baskaran