Personal tools
You are here: Home Forums M16C M16C/62P - Clock Output that is 16 times faster than selected Baud Rate.

M16C/62P - Clock Output that is 16 times faster than selected Baud Rate.

Up to M16C

M16C/62P - Clock Output that is 16 times faster than selected Baud Rate.

Posted by Girish at August 21. 2008
Hi, I am workin on a application, where I am using the M16C/62P UART0 for serial communication. I want a clock output that is 16 times faster than the Baud Rate selected for the Serial transmission. And I want to know the M16C/62P UART is industry-standard 16550 UART compatible?

Re: M16C/62P - Clock Output that is 16 times faster than selected Baud Rate.

Posted by FrankL at August 21. 2008

A 16550 has a 16 byte buffer, M16C has no buffer. Beside this, both are EIA-232 (RS-232) UARTs...

You can output a fast clock signal on the Timer IO. And as the UART always uses an internal divider /16 this is no problem. Just select the same count source for timer and UART.

Re: M16C/62P - Clock Output that is 16 times faster than selected Baud Rate.

Posted by Girish at August 26. 2008
Hi, Thanks for the reply. I am using a IrDA Transciever(MAX3130 from Maxim) with built-in RS232 Transciever. I am connecting the MCU UART output to the Transciever, and using a control signal to select either the IrDA or RS232 output. To use IrDA output, I need to enable a Encoder/Decoder block of the Transciever, which requires a clock that is 16 times faster than the selected Baud Rate. So selecting the same count source for both UART and Timer help?

Re: M16C/62P - Clock Output that is 16 times faster than selected Baud Rate.

Posted by FrankL at August 26. 2008

Selecting the same count source helps to synchronise the UART and the clock signal. And from what I see in the MAX3130 data sheet the input clock to BAUD16 can run continuously. So it should not be a problem.

Re: M16C/62P - Clock Output that is 16 times faster than selected Baud Rate.

Posted by Girish at August 27. 2008
Hey thanx FrankL. I have designed the hardware using UART0 and TA4OUT for the 16 times Baud Rate Clock. Thanx again for help, I'll check for the output.
Powered by Ploneboard