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.

RM46L852: N2HET1 and I2C port assignment

Part Number: RM46L852


hi All,
I want to use N2HET all the channels(Input capture) except I2C.
        N2HET1[27]=I2C_SDA
        N2HET1[29]=I2C_SCL
HET program is working sepearately.
I2C program is working seperately.
After doing the integration HET program and I2C program.
Due to port assignment overlapping. I am not able to test the combined functionality(HET + I2C).
What are the registers needs to be taken care? Kindly provide your valuable feedback.
Thank you.

Regards,
S.Saravanakumar

  • Hello,

    1. RM46 has one I2C module, so you can use this I2C module instead of NHET emulated I2C. N2HET1[27] is pinmuxed with I2C SDA, and N2HET1[29] is muxed with I2C_SCL.

    2. You can use N2HET to emulate I2C if you need 2nd I2C in your application. RM46 has 2 N2HET modules, so you can use N2HET1 for signal capture, and use N2HET2 for I2C. It is a challenge to combine two programs into one N2HET RAM, because you have to adjust the LRP to meet the requirments for both programs.

  • Hi All,

    I am using available I2C module in RM46. This  I2C pin is shared with N2HET_27 and N2HET29.  I have configured this pin for I2C.

    Apart from this 2 pins all other pins are used as N2HET input .In single program i need to configure both N2HET and I2C functionality. Manually, i need to modify thr HETREG1DIR and other pins. My question towards the register handling. I never emulating N2HET as I2C port.

    Regards

    S.Saravanakumar

  • If you don't use N2HET1[27] and N2HET1[29] in your N2HET code, executing N2HET code should not affect I2C. 

  • Hi All,

    Currently, N2HET1 code is affecting the I2C code.

    My question, by means of invoking the OR functionality with certain registers, we can eliminate this problem.

    I want to know that, which are the registers needs to be taken care.

    Regards

    S.Saravanakumar

  • Hello,

    What does "OR functionality" mean? This issue is caused by your code or your configuration. 

  • hi All,
    Below are the example,
    //HET
    yyyDIR = 0x00000050

    //I2C
    yyyDIR = 0x00000100

    yyyDIR = yyyDIR | 0x00000100

    yyyDIR = 0x00000150

    Since, the common registers port assignment needs to be taken care inorder to avoid the port violation.
    Then,we can use use HET1 as well as I2C. Currently, i am not aware, which are the common registers needs to be taken care.
    Kindly give your valuable feedback.
    Thank you.

    Regards,
    S.Saravanakumar

  • Hi all,

    We have resolved this problem after doing the correct settings in pin mux tab of HALCO GEN for HET and I2C

    Regards,

    S.Saravanakumar