p89c669 dual serial port

Started by Rohini, August 08, 2005, 03:54:14 AM

Previous topic - Next topic

Rohini

Hi all,

     I'm working on P89c669 .

     It is having dual serial ports-- port_0 and port_1.

    I'm not able to communicate with port 1.

    i've set it's baudrate properly by using baudrate generator.

    i don't know whether further settings are needed to use this port.


    So if anybody can focus on this, i'l be thankful for that.

   waiting for ur valuable replies.

              Rohini


Andy Ayre

I am pretty sure that the bootloader only understands how to use UART 0 on the 669 for ISP communications.
\

Embedded Systems Academy, Inc.
support at esacademy dot com

Rohini

thanks Sir,

  But the problem is not with UART 0 but with UART 1.
 I'm using UART 0  for boot loading as well as 232 communication .

   I want to use UART 1 for 485 communication @ 19200 baudrate.
 

   The crystal i'm using is 11.0592MHz.


   the setting done are-   
                S1CON = 0x40;
   BRGCON=0x00;
   BRGR0=0x3F;//for 19200 brate
   BRGR1=0x02;
   BRGCON=0x01;

   Then too it's not working.

erikm

I want to use UART 1 for 485 communication @ 19200 baudrate.

Thia is a FlashMagic forum, what does the above have to do with FlashMagic?

Try a place such as 8052.com

Erik

Primson

Sir,
      I done the part of UART0 Serial Data Transmission through MAX323.But i con't able to get the output in UART1 in p89c669.Please guide me.

erikm

after reading: "This is a FlashMagic forum, what does the above have to do with FlashMagic?

Try a place such as 8052.com"

You just keep babbling
"I done the part of UART0 Serial Data Transmission through MAX323.But i con't able to get the output in UART1 in p89c669.Please guide me."

This has NOTHING to do with FlashMagic and thus the question is totally and uttely misplaced.

If every question were to be answered in any forum, the same reply would have to be posted in every forum, but since we answer for free why should that concern Primson

Erik

Joseph Goldburg

You need to read the data sheet very carefully on th 669 as UART1  is mapped in the "2nd" set of SFRs

You send a command to swap SFR banks then Play with the SFR of UART1 and other sfr's