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.

RM42L432: HET setting

Part Number: RM42L432
Other Parts Discussed in Thread: HALCOGEN

Dear team,

My customer is using RM42L432.Please check the following informations.


1 What is the lowest LOOP time that can be configured when RM42L432 configures the HET module with HALCOgen. ? What is the highest PWM frequency?

2 The PWM can be configured to a frequency of 1M when he configured the LOOP time to 160ns, . But at this time, the Edge capture interrupt cannot be triggered.

The Edge capture interrupt can be used normally Only when my dad’s LOOP time is configured to 320ns.But the PWM frequency cannot be configured above 1M. 

Please help.

  • Hello Susan,

    The maximum HCK for RM42Lx is 100MHz. 

    1. Theoretically, the minimum loop period (LRP) is 10ns. HR clock = VCLK2/hr=80MHz if hr=1. LR clock = HR clock/lr = 100MHz if lr=1. Since the longest path through an NeHET program must be completed within the loop resolution clock (LRP). Otherwise, the program will execute unpredictably because some instructions will not executed each time through the loop.

         ts=hr*lr is the time slots (cycles) available for instruction execution per LRP. 

    Generating a simple PWM uses 2~3 instruction, this means ts=4 is fine to execute 2 instructions (cnt, and ecmp). LRP=hr*lr*VCLK2 period = 4*VCLK2 period = 40ns

    The maximum PWM frequency: 12.5MHz (period = 2*LRP=80ns).

    2. As I said,  the longest path through an NeHET program must be completed within the loop resolution clock (LRP). Otherwise, the program will execute unpredictably because some instructions will not executed each time through the loop.

    If LRP=160ns, ts=16. How many instructions in your code for PWM and capture? If your code takes more than 16 cycles, some code will not be executed.

        

  • thank you for your reply

    But I can't  generat  any PWM when the  LR clock is 100MHz.、50MHz。Until  LR clock less than 25MHZ can  generat PWM。

  • It is not possible for RM41 NHET to generate a 100MHz or 50MHz PWM signal.