Hi all!
I have a problem with the same board. The baud rate is ok, it receives serial data, but it isn't able to transmit. There isn't any transition on PTE0 (viewed with an oscilloscope) and the TDRE bit in SCI1S1 register never sets. This thing is making me crazy. I don't understand what's wrong!
This is the routine:
ORG Z_RAMStart ; $0080
TEST RMB 1
ORG ROMStart ; $1900
MyCode: SECTION
main:
_Startup:
JSR MCU_init
LDHX #$1080 ; initialize the stack pointer
TXS
BSET 5,PTCD
BSET 3,PTBD
CLRH
CLRX
LDA SCI1S1
LOOP BRCLR 5,SCI1S1,LOOP
LDA SCI1S1
LDA SCI1D
STA TEST
LDA SCI1C2
AND #$F2
ADD #$04
STA SCI1C2
START BSET 3,PTBD
LDA SCI1S1
LOOP1 BRCLR 7,SCI1S1,LOOP1
LOOP2 BRCLR 6,SCI1S1,LOOP2
BCLR 5,PTCD
GIRO BRSET 7,PTBD,GIRO
BSET 5,PTCD
LDA SCI1S1
LDA SERIAL,X
STA SCI1D
LOOP3 BRCLR 7,SCI1S1,LOOP3
LOOP4 BRCLR 6,SCI1S1,LOOP4
BCLR 3,PTBD
INCX
TXA
CBEQA #$04,CLEAR
JMP OUT
CLEAR CLRX
OUT BRSET 6,PTBD,OUT
JMP START
ORG $A000
SERIAL FCB $35,$30,$36,$37
END.
The program loops here: LOOP3 BRCLR 7,SCI1S1,LOOP3
What is happening?