Hi Brandon,
> I am using the ts-7300, and nothing as far as kernel
> or disto has been changed on it. I am using the board
> for my undergrad senior project. Over the summer I am
> just trying to get familiar with using the features.
> I am writing a program to make use of the T1 timer and
> handling an interrupt.
>
> I believe I can setup the timer, but I am unsure how to
> set the interrupt handler for when the counter reaches
> zero. I am only slightly familiar with handling an
> interrupt for a PIC, and after reading the EP9302 users
> guide, this doesn't look like it works like a PIC.
> On a PIC, I would know where in memory the ISR was
> expected to be, and I would assign it to be there.
> How does it work on this microprocessor? Any other
> information you think might be helpful to me is
> welcomed as well.
When you program a PIC, your application code is pretty
much running directly on the processor. When you run
Linux or any other OS on a processor, you generally use
the OSes API for connecting up to interrupt handlers.
In the case of Linux, its request_irq().
If you are running without an OS, then you can pretty
much do what you would do on a PIC.
You'll want to look around on the web for the 2nd edition
of the Linux Device Drivers book by Rubini. It covers the
driver APIs for the Linux 2.4 series kernel.
You could also look on the list archives and try to get
a 2.6 kernel working on your board, and then use the
2.6 kernel API.
Here's some notes to get you started:
1. TS7300 kernel and driver environment setup
http://www.ovro.caltech.edu/~dwh/ts7300/
2. LPC2000 ARM microcontrollers
http://www.ovro.caltech.edu/~dwh/ucos/
(Just to show you how to setup a bare metal system like
the PIC)
3. Some 2.6 device driver examples
http://www.ovro.caltech.edu/~dwh/correlator/pdf/LNX-723-Hawkins.pdf
http://www.ovro.caltech.edu/~dwh/correlator/software/driver_design.tar.gz
Cheers,
Dave
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|