ozgur pektas

SCI TX Interrupt Problem

Discussion created by ozgur pektas on Jul 29, 2009
Latest reply on Jul 29, 2009 by David Payne

Hi everybody;

 

I'm in trouble with tx interrupt.

although i wrote codes below it's not working

 

 


__interrupt void isrVscitx(void){  if(SCIS1_TC){// wait to Transmission Complete flag   txCount++;   if(txCount>10){        //to transmit 10 bytes   txCount=0;  txON=0;        //TX hardware enable pin low  SCIC2_TCIE=0;  //TX interrupt disable } else{  SCID = sendBuffer[rxCount]; }  }}

 

 The problem is:

  Even TXInterrupt is off it branches to interrupt again and again.

  If i use debugger step by step code enters txCount control block but if i set a breakpotint to

txCount=0;

line it never enters to breakpoint.

 

It's so meaningles.


Outcomes