Printf with MPC565?
"vijayanandl" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hello all
I just have a question regarding printing with MPC565. I use the
Metrowerks codewarrior BDI environment with the standard library.
I have two serial ports for printing. One port is connected to
QSMCM_A.TXD1, QSMCM_A.RxD1. The other port is connected to
QSMCM_B.TxD1,QSMCM_B.RxD1.
I made the initial settings for port1 and 2 as follows
QSMCM_A.SCC1R1.R=0x100C;QSMCM_A.SCC1R0.R=0x0082;
QSMCM_B.SCC1R1.R=0x100C;QSMCM_B.SCC1R0.R=0x0082;
which sets it to 9600 kBaud and printed from both the ports. From
port1 the output was ok but I am unable to print from port2. The
string to be printed on port2 gets printed on port1.
My question is, is there a way to configure the printf to enable
printing in port 2? What are the settings I need to make?
Thanks in advance.
Regards
Vijay
-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MPC500/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/