According to the datasheet of the ADuC7126 it should be possible to write to register T1CAP. But writing to this register is simply ignored.
Thanks for letting us know, this is a documentation fault - T1CAP is from our internal documentation a Read-Only MMR. For normal operation anyway for a timer capture it makes no sense to init the capture MMR - it captures always the actual Timer Value. It is used to measure the difference between two consecutive captures. So you do not need to init the timer capture MMR. Only take care you take a timer overflow into account in your difference calculations.
Thank you for your answer. For my application it is important to initialise T1CAP because I store T1CAP to T1LD. T1CAP is than a summation of all captures. I am now working with a work-a-round.
Would be great if you let the community know how your workaround looks.
Here the timer it self is the event. This initialise T1CAP with 0xFFFFFFFE. It is not perfekt but ok.
T1LD = 1;
T1CON = (1<<7) | (1<<12) | (1<<17);
Retrieving data ...