This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS3137 HTU Overloading

Other Parts Discussed in Thread: TMS570LS3137

Hi Folks,

I am working on N2HET of TMS570LS3137.

N2HET instructions are written to detect a rising or falling edge and subsequently raise an HTU request.

If a rising edge is detected then 0x5 is written into a location of  the N2HET RAM otherwise for a falling edge 0x7 is written into the same location of the N2HET RAM. 

An HTU request is raised subsequently to transfer the Data written in the N2HET RAM to the main memory.

This is working fine. However the HTU transfers the data only once i.e. upon the occurrence of the first event. Any subsequent requests raised by the N2HET is not serviced by the HTU.

The Buffer Full interrupt Flag is being set and HTU is ignoring any new requests from the N2HET.

Can Somebody help me understand why the HTU is getting overloaded with a single request coming from the N2HET.

Regards,

Ru

  • Ru,

    "If a rising edge is detected then 0x5 is written into a location of  the N2HET RAM otherwise for a falling edge 0x7 is written into the same location of the N2HET RAM. " How do you change the NHET RAM content? Is HTU request generated after the NHET RAM write?

    I am attaching a code snip illustrating How to set HTU for transferring from NHET RAM to CPU RAM continuously. The HTU control packet RAM should initialized after reset.

    5381.htu_test_buff.c

    Thanks and regards,

    Zhaohong