Other Parts Discussed in Thread: MOTORWARE, C2000WARE
I am trying to interface to the DRV8301-69m SCI B. I located a document named Hardware Abstraction Layer (HAL) Module of Motorware from TI and the section 6.7 illustrates how to add SCI/UART functionality to a Motorware project. My motor does not have an encoder so I have used the CAP1 and CAP2 GPIO pins that are present in the external connector on the eval board. I have set up the GPIO to point at these for the Rx and Tx of SCI-B. I have made the modifications per the article and in 6.7.9 it shows how to use a simple polling to receive data. That works as it is shown. However I want to use the port in interrupt mode so I followed the next steps starting in 6.7.10. The code compiles and it looks like I have it matching. I referred back to 6.7.9 where it put
if(SCI_rxDataReady(halHandle->sciBHandle))
{ while(SCI_rxDataReady(halHandle->sciBHandle) == 0);
dataRx = SCI_getDataNonBlocking(halHandle->sciBHandle, &success);
success = SCI_putDataNonBlocking(halHandle->sciBHandle, dataRx);
}
for polling. I removed this code and tried to run the lab (BTW I am using Lab 5b as the basis). It runs fine except the interrupt is never raised and therefore does not receive the incoming data.
Can someone help me determine what I am missing by following this example? How/where can I look to see what is failing. I know the external source for serial input is working since the polling mode works and I am using the same setup.
Thanks in advance.