lpcware

LPC1227- Extern Counter Mode

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 16, 2016 by lpcware
Content originally posted in LPCWare by saud_c on Fri Jul 25 00:49:31 MST 2014
Hey guys.

I want to use a extern counter and then toggle a output. The idea behind it is using the lpc1227 in counter mode for a extern PLL.
Since the lpc1227 is way cheaper than the HEF4059 and has a bigger frequency width, I think that this is a great way of solving this problem. The idea is in using the counter with the CAP0 (PIO0_1) to count with the rising_edge to MR3 then toggle MAT0. Does anyone have any ideas?
Unfortunately it does not work. This is my code:


Original Attachment has been moved to: counter_extern.c.zip

Outcomes