Hi,
I am trying to receive data from the SCI1 on TMS570LC43. I generated the code using Halcogen setting:
1- SCI1 Driver
2- VIM channel 13
3- The SCI port as follows:
4- Interrupts as follows:
A portion of my code:
void main(void)
{
/* USER CODE BEGIN (3) */
_enable_IRQ();
 
  sciInit();
sciEnableNotification(UART, SCI_RX_INT);
while(1){
sciReceive(UART, 1, (u8 *)&RX_DATA);
}
}
RX_DATA will be the content of my received data which for now is just one byte. In the final application will be a telegram with a specific protocol format.
At each received byte I would like an interrupt to be generated and consequently the function:
void sciNotification(sciBASE_t *sci, unsigned flags)
to be called. The sciNotification will contain a state machine that allows me to control what to do with each received byte.
Currently The sciNotification is never called.
How to solve this? What am I missing?
Thank you in advance.
Regards.
Gabriele
 
				 
		 
					 
                           
				