??? 12/13/05 16:49 Read: times |
#105155 - program for PWM Responding to: ???'s previous message |
In my circuit I have used P0.7/T1/KB1 as PWM output pin.I have done the following configuration in the program:
// Configure Port 0 as push-pull P0M1 &= 0x00; P0M2 |= 0xFF; P1M1 |= 0x20; P1M2 &= 0xDF; // configure timer 1 TMOD &= 0x0F; TMOD |= 0x20; TAMOD &= 0xEF; TAMOD |= 0x10; // timer values TH1 = 0x80; TL1 = 0x80; // set timer 1 isr priority to 0 IP0 &= 0xF7; IP0H &= 0xF7; // enable timer 1 interrupt ET1 = 1; // start timer 1 TR1 = 1; EA =1; Please can someone tell me if any other registers have to be modified? |
Topic | Author | Date |
89lpc952 PWM operation | 01/01/70 00:00 | |
PWM | 01/01/70 00:00 | |
932um 933-935UM | 01/01/70 00:00 | |
program for PWM | 01/01/70 00:00 | |
why not use the CodeArchitect | 01/01/70 00:00 | |
PWM software for P89LPC952 | 01/01/70 00:00 | |
why did you choose a derivative without | 01/01/70 00:00 | |
PWM P89LPC952 | 01/01/70 00:00 | |
the only way I see would be | 01/01/70 00:00 | |
Hopefully....![]() | 01/01/70 00:00 |