A ALEXANDRE MARQUES New Member Jan 11, 2024 #1 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
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
A ALEXANDRE MARQUES New Member Jan 11, 2024 #2 The routines I need are in assembly. Upvote 0 Downvote
A ALEXANDRE MARQUES New Member Jan 13, 2024 #3 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 Upvote 0 Downvote
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