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.

N2HET

Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN

Hi,

I create five serial port through N2HET. But I have problem about RX pin. Firstly I define tx and rx pin.

For Example : 

TX_1 PIN     22

RX_1 PIN    23

TX_2 PIN    24

TX_3 PIN    25

And then When my program started, TX pins  work but RX  pin  is not work. And Then I change Pin number,

New pin number is below : 

TX_1 PIN      22

RX_1 PIN     24

TX_2 PIN      23

TX_3 PIN      25

After that, My program worked without problem. Also I  assigned  HRSH, AND and XOR registers   with 0 .

Why   did this program is not work in first status ?  

  • Hans,

    If that's all you changed then probably your pin 23 is set as an output because it worked as a TX pin but not as an RX pin.

    I'd check the pin direction register of the N2HET to make sure input/output aligns w. your use as RX/TX.

     

  • Hi ,

    I configured pin direction correctly. Problem is not  this. There is another problem. İf I try this code İn TMS570ls3137 PGE, it work but when I try this code in TMS570ls3137 HDK , not work.. Same code but it is not work in both. (PGE and HDK) in TMS570ls3137 Tx pin works, but RX pin not work..

  • I try something else, if I configure pin as in below

    TX_1 PIN      23

    RX_1 PIN       24

    TX_2 PIN     25

    TX_3 PIN   26 

    in this configuration, İt is worked. 

    At the same time 

    I configure Hetreg1 -> XOR = 0, HRSH = 0  AND = 0 , 

    when ı look at the halcogen , 22. and  23. pin are releated to each other.  Probably I forgot  something.  What can I do ? Thank you for helping..

     

  • Hans, The relationship you see in halcogen between even pin (N) and odd pin (N+1) is for the pairing in XOR, AND, HR SHARING modes but you have these turned off so it's not relevant.  (And I don't think you *want* them turned on anyway based on the use case you describe).

    If N2HET1[23] is misbehaving as an RX input, I suspect it's an input multiplexing issue.   We only have a signals like this on the device, but some signals can be driven from two different pins.   So probably the wrong pin is selected to drive N2HET1[23]. 

    See Table 4-1 in SPNU499b (Page 228).  There are some extra muxing bits there that need to be checked.

     

  • Thank you so much for helping.I solved my problem..