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.

HRCNFG register offset value in OMAP-eHRPWM module ?

Other Parts Discussed in Thread: OMAP-L138

 I am trying to implement the high resolution capabilities of eHRPWM module. The offset value of the HRCNFG  register is given as 0x1020 in the eHRPWM user guide (See page.No 15,120).

                               http://focus.ti.com/lit/ug/sprufl3b/sprufl3b.pdf

It appears  to be wrongly printed since  the HRPWM  register  mapping  ranges only from  0x000 to 0xfff  as specified  in the omap user guide.

what is the actual offset value?

  • The user guide has the eHRPWM module as a contiguous block using the memory location of both eHRPWM and HRPWM, so the range is 0x0000 to 0x1FFF. 

    For example, from the OMAP-L138 datasheet, it has...

    • eHRPWM0 starting address is 0x01F0 0000
    • HRPWM0 starting address is 0x1F0 1000

    To reference the HRCNFG register, you can either

    • Offset 0x1020 from the eHRPWM0 starting address, or
    • Offset 0x20 from the HRPWM0 starting address

    They will both point to the same address location, 0x01F0 1020

    --Christina