1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

How to access IO registers on ADSP 21992 using C language?

Discussion in 'Embedded' started by Paul, Oct 7, 2005.

  1. Paul

    Paul Guest

    How can I access IO register on 21992 using C language?

    For example, if I want to write PWM0_TM, i can do this with Assemble
    language like this:

    IOPG=PWM0_Page; // page of PWM0 block
    ar = PWM_Period;
    IO(PWM0_TM)= ar; //write to PWM period register

    But how can I do this with C language? I can not figure out how to set
    the memory address for such IO registers.

    Thanks.


    thanks.
     
    Paul, Oct 7, 2005
    #1
    1. Advertisements

  2. Paul

    Thad Smith Guest

    Paul wrote:
    >
    > How can I access IO register on 21992 using C language?


    Consult the documentation for your C compiler covering your specific
    target. It should discuss this.

    Thad
     
    Thad Smith, Oct 13, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. =?iso-8859-2?Q?Jacek_Potrymaj=B3o?=

    ADSP 21160 - IO

    =?iso-8859-2?Q?Jacek_Potrymaj=B3o?=, Jun 30, 2003, in forum: Embedded
    Replies:
    0
    Views:
    642
    =?iso-8859-2?Q?Jacek_Potrymaj=B3o?=
    Jun 30, 2003
  2. Raghavendra

    Interfacing RTC R2016 with ADSP 2188

    Raghavendra, Nov 11, 2003, in forum: Embedded
    Replies:
    1
    Views:
    406
    Gary Kato
    Nov 12, 2003
  3. Ravi kumar.N
    Replies:
    1
    Views:
    492
    Thad Smith
    Mar 14, 2005
  4. tawen

    Need help w/ IAR 8051 C/Assembler!!!

    tawen, Sep 27, 2006, in forum: Motherboard General Discussion
    Replies:
    0
    Views:
    876
    tawen
    Sep 27, 2006
  5. manoj
    Replies:
    10
    Views:
    996
    Viktor
    Oct 6, 2006
  6. Nutty

    ADSP BF538_Board Bring Up Query

    Nutty, Jul 12, 2007, in forum: Embedded
    Replies:
    3
    Views:
    420
    David Tweed
    Jul 18, 2007
  7. vladitx

    ADSP-BF51x(F) - what is going on

    vladitx, Sep 25, 2009, in forum: Embedded
    Replies:
    2
    Views:
    570
  8. freedom9ner

    No IO ports motherboard exists?

    freedom9ner, Aug 17, 2012, in forum: Motherboard General Discussion
    Replies:
    0
    Views:
    1,597
    freedom9ner
    Aug 17, 2012
Loading...