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.

RM57L843: Access het port pins in het processor code

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Tool/software:

Hi,

Is there an HET instruction to read the input I/O register for all the HET pins within in that specific HET processor code? I know we can read I/O register of all het pins from main processor code but my requirement is to access from het processor code. Is it possible by any chance?

Thanks,

Ravi

  • Hello,

    Our expert for this topic is out of office today, please expect a reply early next week, thanks.

    Best Regards,

    Ralph Jacobi

  • Hi Ravi Teja,

    No, i don't think it will be possible through HET code. I mean there is no instructions that can directly provide the pin status.

    I can suggest you one method, i never tried but it should work:

    Try to configure both rising and falling edge interrupts for single input for example in below case it is HET1[01]:

    Now ECNT instructions will create either rising edge or falling edge interrupts based on applied input.

    Once the interrupt gets generated then it will call the "edgeNotification" function with edge number as second argumen.

    That means we will get 0 in second argument if we receive rising edge on the HET1[01] and similarly we will get 1 in the second argument if we receive falling edge on the HET1[01].

    That means if we receive raising edge interrupt means assume your pin status as logic-1 and similarly if you receive falling edge interrupt means assume your input status as logic-0.

    HALCoGen supports up to 8 edge interrupts, so that means you can use this method for 4 inputs (because each pin requires two edge interrupts).

    --
    Thanks & regards,
    Jagadish.