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
hi, well even i'm working with the atmel mc T89C5115 and i havent found the logic for programming the PCA to generate a 25KHz freq wave which has 10% duty cycle. i wud be really thankful if u wud share any logic that u have with me on this topic. the cookbook abt philips wasnt helpful in programming the PCA since i was not able to understand the codes it had in assembly and moreover the mc used there was different. thanks, swapna
have you even looked at the PCA cookbook? Erik
erik, i have not only seen but read the cookbook and i found that it has information only about a few philips microcontrollers whereas i need information about atmel chips. moreover the code examples given there are in assembly which i'm not able to relate much to. the codes i wrote in C are giving me error as certain sfr's are not defined in particular register files. so any information on atmel chips wud be helpful. thanks, swapna.
i found that it has information only about a few philips microcontrollers whereas i need information about atmel chips. 10 there is no info on "philips chips" in the cookbook, only Intel. Who cares, if you had taken the time to check, you would have seen that the Atmel implementation is the same (maybe with a small expansion here or there). moreover the code examples given there are in assembly which i'm not able to relate much to. Then I will not give $0.05 for you C. If you do not know the underlying workings of your controller (have made some assembler) your C will be woefully inefficient. Erik
Dear dear Erik, there is no info on "philips chips" in the cookbook, only Intel. you dont need to tell me this as it is an INTEL cookbook. i can perfectly well realise that. maybe with a small expansion here or there... i hope u realise very well that while involving urself in major projects "small expansions" play a very important role....if i cud do these small expansions myself i wudnt waste my time posting this query on the site. still i'm "thankful" for ur "valuable advice". Then I will not give $0.05 for you C. My efficiency in C does not require ur evaluation and my requirement in my project far exceeds and involves in improving the efficiency of my controller so OBVIOUSLY i'm confident in my knowledge abt my controller. Other than commenting on my efficiency i wud appreciate sum genuine TECHNICAL advice. swapna.
"you dont need to tell me this as it is an INTEL cookbook. i can perfectly well realise that." I'm curious, then, why you keep stating that it refers to Philips chips? If you want to be taken seriously I suggest you avoid using the following childish nonsense: u urself cud wudnt ur abt wud sum
Perhaps Keil could apply a spell checker for all posts onto the board, and fire an error if any SMS-speak is detected in the post. Something along the lines of "There is no 160 character limit on this board. Please use FULL words. Or go post somewhere else."
since i was not able to understand the codes it had in assembly OBVIOUSLY i'm confident in my knowledge abt my controller That "confidence" is not worth much when you can not even read assembler. Erik
View all questions in Keil forum