logomatic: digital logger?

Hoi,

I wonder if it is possible to use the logomatic v2 as a digital datalogger in the following way:

5 measurement devices are giving pulses with a width of 100ms every time the measure a unit.

I’ve to log haw many pulses there come in say one minute or 5 minutes.

So I need a time reference in the log file and for each channel a number of pulses, unless it can be done in another way.

You’d need to adapt the firmware, but you can turn it into a pulse counter. The change would be fairly easy.

hi all,

i’m trying to modify logomatic fw to count pulses… like brume need…

the best way, is to use IRQ enabled on each ch to count, wich reset a counter and after divide clock freq. with it …

F(Hz)=1/T(sec), where T=counter(sec/clock), so F(Hz)=clock/counter … right ?!?

preamble: this is my first time in ARM programming, i’m studying logomatic firmware to understand, so my problem is to know how enable IRQ on a specific pin (es. ch8 - AD1.3 - P0.12)

first question : ch8 = 0x00020FF08 ?

I’m using UART routine as example, is this code correct ? :?

enableIRQ();

VICIntSelect &= 0x00020FF08; //Make this a normal interrupt instead of FIQ

VICIntEnable |= 0x00020FF08; //Enable the interrupt

VICVectCntl3 = 0x28; //VIC slot 3 enabled, IRQ8 (VICVectCntl2=0x27 was slot 2,IRQ7)

VICVectAddr3 = (unsigned int)AD13ISR;

U0IER=1; //??? wich is corrispondent for AD1.3?

static void AD13ISR(void)

{

char temp;

temp = U0IIR; // Have to read this to clear the interrupt ??? wich is corrispondent for AD1.3?

}

thanks in advance for any help !