Author Topic: p89c669 dual serial port  (Read 5140 times)

Rohini

  • Guest
p89c669 dual serial port
« on: August 08, 2005, 03:54:14 am »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2178
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: p89c669 dual serial port
« Reply #1 on: August 08, 2005, 08:03:19 am »
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

  • Guest
Re: p89c669 dual serial port
« Reply #2 on: August 09, 2005, 12:25:08 am »
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

  • Guest
Re: p89c669 dual serial port
« Reply #3 on: August 09, 2005, 07:27:11 am »
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

  • Guest
Re: p89c669 dual serial port
« Reply #4 on: September 08, 2005, 05:05:31 am »
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

  • Guest
Re: p89c669 dual serial port
« Reply #5 on: September 08, 2005, 05:16:18 am »
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

  • Guest
Re: p89c669 dual serial port
« Reply #6 on: October 07, 2005, 10:00:41 am »
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