Hi there,
I'm a bit confused on configuration and usage of the N2HET WCAP instruction.
Let say, does the following code segment make sense?
L00 CNT { next=L01, angle_count=OFF, reg=A, comp=EQ, IRQ= OFF, max=0x01FFFFFF, data=0 } L01 WCAP { next=L02, reg=A, pin=CC23, irq=ON, event=RISE, hr_lr=HIGH, data=0 } L02 WCAP { next=L00, reg=A, pin=CC24, irq=ON, event=RISE, hr_lr=HIGH, data=0 }
On edge detection, what value will be stored to the 25-+bit WCAP data field (DF)?
Is reg=A (25-bit) the source register to write to WCAP DF, or 0 as specified by "data=0"?
Is reg=S (32-bit) is used, when will happen to the WCAP DF?
Thanks.