AnsweredAssumed Answered

zmvl128 vs zmvl31 SCI

Question asked by Fabian Sonnleitner on Jun 13, 2016
Latest reply on Jun 16, 2016 by Radek Sestak

Hello,

 

does anybody know why the sci code i wrote on a zmvl128 does not work on the zmvl31?

 

the zmvl128 sends the corresponding value.

the zmvl31 wont send or receive anything


 

 

void  HwAb_InitSci(void)

{

MODRR = 0x00; // LIN Routing

SCI0BD = 0x00D9;

SCI0CR2 = 0x2c // Receiver full interrupt, tx enable, rx enable

 

}

 

 

void HwAb_SciTransmit(uint8 value)

 

{

while(!SCI0SR1_TDRE);                //wait for transmit data register empty flag

SCI0DRL = value;                  //send

}

 

 

Thanks

PS: yes, i changed the header file

Outcomes