51机的PWM搞定了,但是,今天搞2440,竟然连个PWM都搞不定,气人ing 相关程序如下: //backlight control rCLKCON |= 0x100; rTCFG0 &= 0xFFFF00; rTCFG0 |= 0x31; //prescal by 50, T0~1 rTCFG1 &= ~0xF0; //use timer1 ,1/2. 50MHz/50/2=500kHz rTCNTB1 = 0x19; rTCMPB1 = 0x15; rTCON &= 0xFFFF0F; rTCON |= 0xa0; rTCON |= 0x10; //start
请高人指点迷径 |