paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] PPM input and trigger_ext module


From: Eduardo lavratti
Subject: [Paparazzi-devel] PPM input and trigger_ext module
Date: Fri, 19 Sep 2014 20:07:00 -0300

Today i finished the gasoline meter module.
It work using TRIGGER_ISR

I configured it do use capture channel 0 and it work fine if i choose radio as datalink.
When i configure the radio to ppm mine module stop do count pulses.

To solve it i changed the line
T0CCR = TRIGGER_CRR | TRIGGER_CRI;
to
T0CCR |= TRIGGER_CRR | TRIGGER_CRI;

Looking at ppm_arch.c i see that ppm not use |= when configuring T0CCR register.

I think the correct is to use
        T0CCR |= PPM_CCR_CRR | PPM_CCR_CRI;
not   T0CCR = PPM_CCR_CRR | PPM_CCR_CRI;


i am right ?

another question, how i do to know what capture channels are used in lpc firmware ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]