I'm kind of stuck with trying to get a simple PWM out of P71/MTIOC3B with an RX13T,and reading the hardware manual "R01UH0822EJ0100 Rev.1.00" didn't help me to get it working.
Below I describe what I was thinking and how I tried. Can someone help me to get it working, orexplain why it can't work?
Of course there is not a standard way to do this, as 19. Multi-Function Timer Pulse Unit 3 (MTU3c) says:
Because I'm using PB7/MTIOC3C as RxD1-pin the obvious choice seemed to simulate PWM as follows:
Several problems had to be overcome, apart from the obvious PDR-bit to 1, PFS-function to 1 and PMR-bit to 1:
After setting a bit in the first and clearing a bit in the second register I got one change in output, as expected,but no interrupt to get it back. When using high-toggle as MTIOC3B-setting I could verify that the counter wasreset by changing the TGR3C-setting to change the output frequency, but no interrupt.
At this moment I have no clue why the interrupt doesn't happen and the day I thought would be well enoughfor getting it working has passed without the pin working as expected.
What did I do wrong, or is it just not possible with that pin?