Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

DS80c400 and Serial 2

Hey guys.
I'm looking for information on how to configure serial 2 on the ds80c400 microcontroller.
There is a lot of information about port 0 and port 1, but nothing about port 2.

Can any one help me.

Tanks,

Alexandre
 
MOV T3CM,#052H ;
MOV SCON2,#0D0H ;;
MOV TH3,#0FBH ;19200 BPS
MOV TL3,#0FBH

RI_2 EQU B.0
TI_2 EQU B.1
RD_SERIAL2:
MOV B,SCON2
JNB RI_2,RD_SERIAL2_100
CLR RI_2
MOV SCON2,B
MOV A,SBUF2 ;
RET

WR_SERIAL2:
MOV B,SCON2
CLR TI_2
MOV SCON2,B
MOV SBUF2,A
M02:
MOV B,SCON2
JNB TI_2,M02
RET
 

Latest threads

New Articles From Microcontroller Tips

Back
Top