public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nick Garnett <nickg@ecoscentric.com>
To: "Transferencia de Archivos" <transfers@phaber.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] eCos and eb40a capture mode
Date: Wed, 15 Oct 2003 09:32:00 -0000	[thread overview]
Message-ID: <m38ynm7uwi.fsf@miso.calivar.com> (raw)
In-Reply-To: <200310141711.h9EHBsQx000311@dns.vitacom.net>

"Transferencia de Archivos" <transfers@phaber.com> writes:

> Im working now on the at91eb40a target of ecos, and I'm using the cvs
> version of ecos, I have succesfully used ecos for his own things,
> until now. I have now to read an external pwm signal and I have found
> that the micro has a capture mode that does the reading almos from
> himself, I have been trying to  configure the micro using hal_write
> and as gdb says it has been done succesfully.
> the micro is the AT91R40008
> But outside, the line is i/o so I need it as an input, as my
> configuration plans to do the line must go as an input, the line never
> goes from the logic 1.
> Is ecos using the timers of the eb40a for any of his functions?
> I need some advice here.
> To be more explicit. I have configured the three timers of the R40008,
> TC0, TC1, TC2 in capture mode, so in the rising edge of  TIOA(the line
> that gets the pwm)  the TC_V is loaded in RA and the, when the falling
> edge comes, he loads the RB.
> When I cheked the physical line of the r40008 after configuring, the
> line is at logic 1!. Here's the code.

eCos currently uses TC0 to implement its main system timer and TC2 to
implement a microsecond delay timer. You could probably disable the
latter, but disabling the system timer would only work if you have no
code that needs timing services of any sort. This is fairly rare, even
for very simple programs. 


-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com      The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

      reply	other threads:[~2003-10-15  9:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 17:12 Transferencia de Archivos
2003-10-15  9:32 ` Nick Garnett [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m38ynm7uwi.fsf@miso.calivar.com \
    --to=nickg@ecoscentric.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=transfers@phaber.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).