Is it possible to achieve 16Khz PWM on the port pins of 89C51? What could be the outlined logic for the code?
Make it easy on yourself, get a derivative with a PCA, then have a look at The PCA cookbook http://www.intel.com/design/mcs51/applnots/270609.htm Erik The cookbook refer to ancient derivatives, fear not, the PCA in current derivatives e.g. the SILabs and Philips is identical (some have more clocking options). Erik
It depends on the details of your PWM. (resolution e.g.). What in details do you think of?