How can i configure PWMA pin as just an output pin. (i.e. i want to use this pin as just a regular output because i am out of regular GPIO pins) Plz help ASAP... thx's a lot... Olamide... "financially free dec 2005" |
|
Use PWMA pin as Output???
Started by ●November 5, 2003
Reply by ●November 5, 20032003-11-05
Hi, You can use the PWM Output Control Register (PMOUT). It's the simplest way I found. It's also called softway control. first : You must enable (set) the output control of your selected PWM pin. PMOUT [8-13] asm (bfset #$BF00,X:$0E03); // all PWMA output on 801 to 805 second : You can now set of clear PWM pin with PMOUT [0-5]. Hope that's clear enough. Bruno --- In , "Olamide..." <o_mide@y...> wrote: > > How can i configure PWMA pin as just an output pin. (i.e. i want to > use this pin as just a regular output because i am out of regular GPIO > pins) > > Plz help ASAP... thx's a lot... > > Olamide... > "financially free dec 2005" |