AnsweredAssumed Answered

MC9S08PA4 SCI debugging problems

Question asked by anny li on May 19, 2013
Latest reply on Jun 4, 2013 by bigmac

when I debugging the MC9S08PA4 SCI, I can not write the SCI0_D registers when I want to send message. My configer is as following:

void Init_SCI0(void)
{
SYS_SOPT1_SCI0PS=1; //SCI0 RXD & TXD MAPPED ON PTA2 & PTA3
ADC_APCTL1_ADPC2=1; //disable the ADP
ADC_APCTL1_ADPC3=1; //disable the ADP

SCI0_BDH=0b00000000;//set the baud rate
SCI0_BDL=0b00110100; //baud rate is 9600 b/s, internal clock 8MHz
SCI0_C1=0x00;//0x00:8bits

SCI0_C2_TE=1; //TRANSMITTER ENABLE
SCI0_C2_TIE=1;//inable the interrupt
dummy=SCI0_S1;
  SCI0_D='a'; 
}

 

Who can help me? Pls...

Outcomes