Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Timer interrupt of the Lite 5200 board: (9 Items)
   
Timer interrupt of the Lite 5200 board  
Hello,

what is the interrupt vector of the timer interrupt (IRQ 0 on x86) of the Lite5200 board ?

Best Regards

--Armin
Re: Timer interrupt of the Lite 5200 board  
> 
> Hello,
> 
> what is the interrupt vector of the timer interrupt (IRQ 0 on x86) of the 
> Lite5200 board ?
> 
> Best Regards
> 
> --Armin


normaly You can find this out by doing:

pidin syspage=qtime

You should see something...  .... intr:number

You are searching for number.


-Jeevan

Re: Timer interrupt of the Lite 5200 board  
Or, in your code

struct qtime_entry *qtp = SYSPAGE_ENTRY(qtime);

timer_intr = qtp->intr;

Jeevan Mathew wrote:
>> Hello,
>>
>> what is the interrupt vector of the timer interrupt (IRQ 0 on x86) of the 
>> Lite5200 board ?
>>
>> Best Regards
>>
>> --Armin
> 
> 
> normaly You can find this out by doing:
> 
> pidin syspage=qtime
> 
> You should see something...  .... intr:number
> 
> You are searching for number.
> 
> 
> -Jeevan
> 
> 
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post10544
> 
Re: Timer interrupt of the Lite 5200 board  
Hi Jeevan,

the code 'works'  ... but it returnes an interrupt vector of 0x80000000.
That seems not to be very useful ?

pidin syspage=qtime seems only to work with QNX 6.3.2 .... I'm testing for the first time under QNX 6.2.

Why is the timer interrupt not documented in the Lite5200B BSP ?

Regards

--Armin

Re: Timer interrupt of the Lite 5200 board  
That's the id for the PPC decrementer.

That said, the build file doesn't seem to document those interrupts...

Armin Steinhoff wrote:
> Hi Jeevan,
> 
> the code 'works'  ... but it returnes an interrupt vector of 0x80000000.
> That seems not to be very useful ?
> 
> pidin syspage=qtime seems only to work with QNX 6.3.2 .... I'm testing for the first time under QNX 6.2.
> 
> Why is the timer interrupt not documented in the Lite5200B BSP ?
> 
> Regards
> 
> --Armin
> 
> 
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post10563
> 
Re: Timer interrupt of the Lite 5200 board  
> That's the id for the PPC decrementer.

Sorry, what is a PPC decrementer ?
Can it be used with a InterruptAttach call ?

--Armin

> 
> That said, the build file doesn't seem to document those interrupts...
> 
> Armin Steinhoff wrote:
> > Hi Jeevan,
> > 
> > the code 'works'  ... but it returnes an interrupt vector of 0x80000000.
> > That seems not to be very useful ?
> > 
> > pidin syspage=qtime seems only to work with QNX 6.3.2 .... I'm testing for 
> the first time under QNX 6.2.
> > 
> > Why is the timer interrupt not documented in the Lite5200B BSP ?
> > 
> > Regards
> > 
> > --Armin
> > 
> > 
> > 
> > _______________________________________________
> > QNX Momentics Community Support
> > http://community.qnx.com/sf/go/post10563
> > 


Re: Timer interrupt of the Lite 5200 board  
The PPC decrementer interrupt is used as the timer interrupt on most PPC
boards.

Yes, you can use it with InterruptAttach();

SYSPAGE_ENTRY(qtime)->intr will always be a useable interrupt id, or 
your system will be really hosed.. :-)

Colin

Armin Steinhoff wrote:
>> That's the id for the PPC decrementer.
> 
> Sorry, what is a PPC decrementer ?
> Can it be used with a InterruptAttach call ?
> 
> --Armin
> 
>> That said, the build file doesn't seem to document those interrupts...
>>
>> Armin Steinhoff wrote:
>>> Hi Jeevan,
>>>
>>> the code 'works'  ... but it returnes an interrupt vector of 0x80000000.
>>> That seems not to be very useful ?
>>>
>>> pidin syspage=qtime seems only to work with QNX 6.3.2 .... I'm testing for 
>> the first time under QNX 6.2.
>>> Why is the timer interrupt not documented in the Lite5200B BSP ?
>>>
>>> Regards
>>>
>>> --Armin
>>>
>>>
>>>
>>> _______________________________________________
>>> QNX Momentics Community Support
>>> http://community.qnx.com/sf/go/post10563
>>>
> 
> 
> 
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post10566
> 
Re: Timer interrupt of the Lite 5200 board  
In addition to Colin.
Not that I am a ppc,  despite a ppc-expert, but :-)

Please check this:
http://www.go-ecs.com/ppc/ppctek1.htm#DTB

Jeevan

> The PPC decrementer interrupt is used as the timer interrupt on most PPC
> boards.
> 
> Yes, you can use it with InterruptAttach();
> 
> SYSPAGE_ENTRY(qtime)->intr will always be a useable interrupt id, or 
> your system will be really hosed.. :-)
> 
> Colin
> 
> Armin Steinhoff wrote:
> >> That's the id for the PPC decrementer.
> > 
> > Sorry, what is a PPC decrementer ?
> > Can it be used with a InterruptAttach call ?
> > 
> > --Armin
> > 
> >> That said, the build file doesn't seem to document those interrupts...
> >>
> >> Armin Steinhoff wrote:
> >>> Hi Jeevan,
> >>>
> >>> the code 'works'  ... but it returnes an interrupt vector of 0x80000000.
> >>> That seems not to be very useful ?
> >>>
> >>> pidin syspage=qtime seems only to work with QNX 6.3.2 .... I'm testing for
>  
> >> the first time under QNX 6.2.
> >>> Why is the timer interrupt not documented in the Lite5200B BSP ?
> >>>
> >>> Regards
> >>>
> >>> --Armin
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> QNX Momentics Community Support
> >>> http://community.qnx.com/sf/go/post10563
> >>>
> > 
> > 
> > 
> > 
> > _______________________________________________
> > QNX Momentics Community Support
> > http://community.qnx.com/sf/go/post10566
> > 


Re: Timer interrupt of the Lite 5200 board  
Hi,


>the code 'works'  ... but it returnes an interrupt vector of 0x80000000.
>That seems not to be very useful ?

   ... but it works =:-/   .... any comments ?

--Armin