I am trying to use the LPC935 to generate a PWM signal using Timer 0 in Mode 6 (TCON = 0x3A, TMOD = 0x02 and TAMOD = 0x01) The correct mode is selected and the timer appears to be functioning correctly, but the T0 (P1.2) pin does not toggle. I have set the pin as open drain and enabled the o/p facility in AUXR1 (set to 0x10).I have tested it on a custom board and also in the EPM900. What is the problem?
Pullup?
On the hardware - of course, it's open drain. But how do you fit a pull-up resistor to the simulator (don't answer that!!!!). It doesn't work there either.