AnsweredAssumed Answered

MC9S12ZVM SCI connection problem

Question asked by Young-kyun Park on Oct 8, 2014
Latest reply on Oct 20, 2014 by iggi

I'm trying to use FreeMASTER for monitoring.

 

I want to use TXD1 on PS3, RXD1 on PS2.

 

So, I configure like follows:

 

in main.c file,

MODRR0_SCI1RR = 1; // serial port

  DDRS_DDRS2 = 0;

  DDRS_DDRS3 = 1;

  SCI1BD  = SCI_BAUDRATE;

  SCI1CR2_TE = 1;

  SCI1CR2_RE = 1;

 

in freemaster_cfg.h

#define FMSTR_SCI_BASE     0x0710

 

 

void main(void)
{
  initCPMU();
  initGPIO();
  initTIM();
  initPMF();
  initPTU();
  initADC();
  initSCI();
  initGDU();
  initInt();

  FMSTR_Init();

  EnableInterrupts;

  AppInit();
  AdcCalibration();

  for(;;)
  {
    FMSTR_Poll();
   
    AppStateMachine[appState]();

    CheckFaults();
  }
}

 

Anyone can help me?

Outcomes