Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 229602

Forum Post: LAUNCHXL-F280049C: C2000ware clear overflow RXFFIO RXFFINT RXFFOVF flag patches

$
0
0
Part Number: LAUNCHXL-F280049C Other Parts Discussed in Thread: C2000WARE Tool/software: Issue of C2000Ware call fails clear RXFIFFO RXOVF and RXINT flags. Oddly the Hexadecimal codes below seem to work where symbols did not. The HWREGH patch below actually works to clear RXOVF and RXFFINT flags. Though remain curious why the C2000Ware clear overflow call function fails to clear these flags landed on a mission to make it work or else. Note group clear ACK seemingly allows RXFFINT flag to be cleared as it only existed near bottom RXFIFO ISR. Noted x49c TRM instructs Group ACK placement near bottom of functions. Not sure if GroupClearACK would help C2000ware [SCI_clearOverflowStatus(SCIB_BASE)], though perhaps. Any comments welcome and use patch RXFFINT and TXFFINT ISR respectively to capture RXFFOVF after RXFFINT was cleared and perhaps after ClearACKgroup asserted. /* Check SCIFFRX register FIFO has overflowed */ //if(SCI_getOverflowStatus(SCIB_BASE)) if((HWREGH(SCIB_BASE + SCI_O_FFRX) & SCI_FFRX_RXFFOVF) == SCI_FFRX_RXFFOVF) { // Acknowledge interrupt from PIE group 9 Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP9); /* Clear Rx overflow status */ //SCI_clearOverflowStatus(SCIB_BASE); /* Check SCIFFRX register FIFO has overflowed */ if(HWREGH(SCIB_BASE + SCI_O_FFRX) == 0xB0A6) { /* Clear the RXFIFO OVF flag bit */ HWREGH(SCIB_BASE + SCI_O_FFRX) |= 0x68A6; /* Allow RXFIFO flag bit to reset 2ms */ DEVICE_DELAY_US(2000); /* Clear RXFIFO RXINT flag bit */ HWREGH(SCIB_BASE + SCI_O_FFRX) |= 0x2066; } }

Viewing all articles
Browse latest Browse all 229602

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>