Hi Dan
On Thursday 21 June 2007 12:56:42 Dan Ellis wrote:
> Gudjon I. Gudjonsson wrote:
> > Hi
> >I made the following c-code:
> >
> > // Initialize Module 0 in capture mode
> > CCAPM0=0x21; // Capture positive edge first
> > // for measuring pulse width
> > flag_0=0;
> >
Gudjon I. Gudjonsson wrote:
>
> Hi
>I made the following c-code:
>
> // Initialize Module 0 in capture mode
> CCAPM0=0x21; // Capture positive edge first
> // for measuring pulse width
> flag_0=0;
> n=1;
> AUXR1=0x01;
> meas_end=res_dph_addr[n];
> _asm
> mov dph, _m
Hi,
I got the syntax.
.include "filename".
Thanks for your help.
Thanks,
Prashanthi
--- "Gudjon I. Gudjonsson" <[EMAIL PROTECTED]> wrote:
> Hi
>I made the following c-code:
>
> // Initialize Module 0 in capture mode
> CCAPM0=0x21; // Capture positive edge first
> // f
Hi
I made the following c-code:
// Initialize Module 0 in capture mode
CCAPM0=0x21; // Capture positive edge first
// for measuring pulse width
flag_0=0;
n=1;
AUXR1=0x01;
meas_end=res_dph_addr[n];
_asm
mov dph, _meas_end
mov dpl, #0
_endasm;
AUXR1=0;
meas_end