PK70 Interrupt Setup

Discussion to talk about software related topics only.
Post Reply
User avatar
mike
Posts: 20
Joined: Thu Oct 29, 2015 10:25 am

PK70 Interrupt Setup

Post by mike »

On the PK70 board.
I want/need to install an interrupt service routine for PIT1.

Netburner software for the MOD5441x includes this macro to assist with setting the interrupt controller:
SETUP_PIT1_ISR(&pit1_isr_asm, 5);

Does that macro, or an equivalent, exist for the PK70 ??
If so, what include file do I need ??

Thanks, Mike.
User avatar
TomNB
Posts: 569
Joined: Tue May 10, 2016 8:22 am

Re: PK70 Interrupt Setup

Post by TomNB »

Take a look at the PK70EX product page, in the docs section. There is an interrupt app note. It is for external interrupts, but the macros will work for internal as well, so combine with what you see in the processor manual for the PIT timer.
https://www.netburner.com/products/netw ... it/pk70-ex
Note: the PK70EX uses a MCF5270 processor, just like the MOD5270, SB70LC and SB70.
User avatar
mike
Posts: 20
Joined: Thu Oct 29, 2015 10:25 am

Re: PK70 Interrupt Setup

Post by mike »

Tom,
Thank you. I appreciate it.
User avatar
mlara
Posts: 8
Joined: Tue Mar 29, 2016 10:40 am

Re: PK70 Interrupt Setup

Post by mlara »

Mike,

After taking a look at things, we've realized that the PIT interrupt/semaphore/flag functions defined in nburn\MOD5270\include\pitr_sem.h and nburn\MOD5270\system\pitr_sem.cpp should have been ported over to the PK70. SetUpPITRFunc() defined in pitr_sem.cpp shows how to configure a PIT interrupt, which might be useful to you as an example. In case you don't have the MOD5270 source files in your install, I'll send them to you in a private message.
Mike Lara
Project Engineer
Netburner, Inc
Post Reply