Hi ZhangJennie,
I'm using SDK: SDK_2.x_LPC8N04DevBoard. I based my code on demo ctimer_match_example, but I'm not sure how can I find a direct link to it.
In the base version of the example, it works because the value assigned to the matchValue: "matchConfig.matchValue = EXAMPLE_CTIMER_CLK_FREQ / 10;" can fit into 16 bits. If you switch it eg: "matchConfig.matchValue = EXAMPLE_CTIMER_CLK_FREQ;" and in debug mode compare the value of matchConfig.matchValue and EXAMPLE_CTIMER.MR[0], you will see that:
matchConfig.matchValue = 500000 (binary 1111010000100100000)
EXAMPLE_CTIMER.MR[0] = 41248 (binary 1010000100100000) - cut down to 16 bits
Thanks,
ppaw