We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi I am generating external clock of 50% duty cycle 100KHz using AT89c52 using timer2.This external clock I am given to clock input of USART 82c51.I need to another clock frequency to set the baud rates of TXC and RXC inputs of USART 82c51 which need to be 1/32 or 1/64 times the clock given to USART(eg:100KHz/32 or 100KHz/16).
Problem:
How can I divide the 100KHz external clock frequency generated by the AT89c52 to generate the frequency required for RXC and TXC pins of USART.
eg: I need a frequency of 4KHz from the 100KHz external clock frequency.
I am giving the external clock frequency output pin (P1.0) be given to input of another pin(eg:P1.1) and divide the clock to get the desired frequency.
Is there any to perform the division of the clock inside AT89c52? (eg:100KHz/32 or 100KHz/16).
regards raghun
I have no idea what you are talking about, but just in case it is this:
how can I use the UART of the '51 with an external clock, the answer is simple: do as if you used the uC clock, then set the 'counter bit' C/_T bit for T1 in TMOD and attach your external clock to T1in.