hello, every body i'm working with the AT89C5115 of ATMEL and i want to generate a square pulse of 40Khz using the PCA( PWM, the capture or the timer ). for the moment i coulndn't resolve the problem PCA counter registers (CL and CH) doesn't increment even activated. ? if some one have informations i'll be gratefull thanks in advance
The "PCA cookbook" found at http://www.intel.com/design/MCS51/applnots/27085101.PDF gives suggestions and code for virtually any application of the PCA. I do not know your specific derivative (Atmel), but the Philips PCA implementations are extremely similar to those used in the Intel appnote. Erik