Re: how to generate external interrupts

Partha Palit <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
Hello,

Thank you Frank for showing the direction to
generating an external interrupt. 

Kindly advise if my approach is correct. I edited the
sid.conf as follows-

new sid-sched-sim sensor-sched

//then I set the num clients to 5...
//then connected the sched event to the intrctrl...

connect-pin sensor-sched 1-event -> intrctrl source-16

//then I appropriately set the 'regular' and 'time'
attributes.

The problem is that I am unable to catch the
interrupt.I am using eCos as the RTOS. In my program,
I register an ISR at "vector 16". Is this correct ? I
saw some memory mapping for the timers and UART in the
SID config file. Do I have to do somehing like that? 

Also, when I checked the eCos header file
(hal_intr.h), max interrupts were set to 8.If,possible
could you kindly comment on this?
P.S: my platform - ARM-PID.

Thanks for your time.

-Partha

--- "Frank Ch. Eigler" <[email protected]> wrote:
> Hi -
> 
> > >How would you prefer to cause interrupts?
> > 
> > I want to simulate a periodic interrupt(
> specifically,
> > I want to be able to count the heart beats [...]
> 
> OK.
> 
> > Hence, I guess a script or a program would be
> > a suitable way to do it.
> 
> That's possible, but not necessary for this context.
> 
> Probably the easiest thing to do is to use one of
> the
> sid scheduler objects to supply the periodic
> interrupt.
> You would have to decide whether you would like
> these
> interrupts based on the progression of host (real)
> time,
> versus target (simulated) time.  Then, you'd pick a
> suitable time interval, in milliseconds or clock
> ticks
> respectively.  Then you'd arrange to get the chosen
> scheduler to send out a ping at the chosen interval
> to the appropriate interrupt input pin.  This latter
> bit is most easily done by emitting and editing the
> sid configuration file that otherwise models your
> desired system.
> 
> 
> > Presently,I am reading through the SID user
> manual. Is
> > there any other documentation, which can be
> helpful?
> 
> The other two families of documentation that you may
> find
> helpful consist of a guide on developing sid
> components and
> the set of individual component reference pages. 
> These may
> all be found on the sid project web page.
> 
> 
> - FChE
> 

> ATTACHMENT part 2 application/pgp-signature 



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.