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 Manchester Encoding

Other Parts Discussed in Thread: TMS570LC4357

Hello ,

I have To implement Manchester Encoding of 20KHz Using N2HET in TMS570LC4357.

I need Clarifications on below points:

1) Is There a method or Instruction  to check HET  pin Status  in HET Program (HET Assembler Code).

2) Is it possible to set/clear the  HET  pin  HET Program(HET Assembler Code) .

3) How we can Assign the Data Field of HET Instrcution to a variable, So that it can be changed during Run time from Application code.

  • Hi Rajasekaran,

    I have forwarded your post to one of our HET experts who should get back with you shortly. In the mean time, you may want to check these posts to see if they are helpful:

    e2e.ti.com/.../888663

    e2e.ti.com/.../1063521
  • Hi Rajasekaran,

    1) Is There a method or Instruction  to check HET  pin Status  in HET Program (HET Assembler Code).

    The BR instruction is able to branch on the state of a pin.

    2) Is it possible to set/clear the  HET  pin  HET Program(HET Assembler Code) .

    Yes, the SHIFT instruction is one that I've used for this purpose.  You can shift data into/out of a pin with this.

    3) How we can Assign the Data Field of HET Instrcution to a variable, So that it can be changed during Run time from Application code.

    The HET assembler produces a header file that gives you structure declarations matching your HET assembler program.
    You can use this header to access the program, control, and data fields of a a particular het instruction (indexed by the LABEL you use in the HET assembler program) from your C program that runs on the ARM CPU.

  • Hello Anthony F. Seely,

    Thanks For The Information you have Provided,

    I would like to Know Detailed Explanation on the SHFT  instruction,Especially the Smode Field.

    I need Explanation for the RED marked Field, As far as what I understood is it will Shift the Data Field of The instruction from  MSB to LSB on Pin x

    what does the /0 means ???

    Part of my code is below

    L03   SHFT { next=L04,smode=OL0,cond=UNC,pin=2,reg=A,data=0x1A6A6A0}

    if i give pin =0 its shifting out the data Correctly from the Data Field.

    But if i change the pin no to Some other pin ex : pin=2, its not shifting out the Data field.

    if i can get the Explanation for the whole Table it would of great help for me.

  • Hi Rajasekaran,

    I think you are looking at the right info and understanding it correctly. You might check that you have the IO pin register (DIR bit) set correctly - if you have the pin configured as an input you won't see data shifted out on the pin.

    Generally - the Psuedo-Code (detailed description of the execution of each instruction) and the HET-IDE (to experiment w. execution and study results) are the best ways to understand the HET. It can be a 'hidden gem' if you take the time to get to know it. [Edit: and you are doing well - so keep going and I think you'll be pleased w. the end result!]