infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 2 of 2

Thread: XMC 4500 POSIF for 9 Hall Sensors in one Motor

  1. #1
    New Member New Member bertoncelj is on a distinguished road
    Join Date
    Oct 2018

    XMC 4500 POSIF for 9 Hall Sensors in one Motor

    I have a BLDC motor, that have inside 9 Hall Sensors. For now logic driven it is to every 50micro there is a interrupt which read all hall sensors and gets it pattern. Now I am trying to implement
    POSIF for Hall Sensors, that will read all 9 Hall Sensors and return pattern. For now I have huge problem to understand how can I read all 9, when one modul can read only 3.
    Also I try to understand Multi Channel Unit in Hall-Sensor Mode and how to implement it. Is Multi Channel even a solution to this problem? Can someone help me how to approach this problem
    with POSIF module? In my processor XMC4500 I have 3 POSIF modules? Should I use all 3, because I have 9 Hall Sensors? Can this modules communicate between each other?

  2. #2
    New Member New Member
    Infineon Employee
    Infineon Employee
    Eric is on a distinguished road
    Join Date
    Mar 2013
    Hello Bertoncelj,

    The XMC4500 provides 2 POSIF interfaces.
    Each Interface has 6 Input lines where 3 can be used simultaneously.
    So the POSIF interface is designed for up to 3 Hall inputs.
    I assume you require 9 HALL inputs for a very precise control at low speed or to compensate machanical:electrical rotation.

    If the Hall-Event should trigger an IRQ there are some options:
    The POSIF is designed to minimize the CPU load. It could be an option to still use the POSIF but reconfigure every 1/3 of rotation.
    Or only connect 3 Halls and use the POSIF while high Speed.
    The ERU allows up to 8 Pins to generate an interrupt simultaneously. So also here ~every Rotation a reconfiguration is required.
    Another option would be to pull for the input But this will create a lot of CPU load.

    In general the POSIF comparing the Input on 3 Pins against 2 target configurations. One "current" and one "next" and generate an "correct" interrupt if the "next" pattern macht the Input.
    And a "wrong" Interrupt if not. (+ Autoupdate the registers). The Multichannel is generally a hardware gating of the CCU slice. This will reduce the time between hall event and new PWM pattern.

    You can find more information about the POSIF in the Reference Manual and the Application Note AP32289 Position Interface (POSIF).
    Additionally you can find examples in the AP32289 Position Interface (POSIF) Example zip. All this you can find at
    Another source of information are the DAVE APPs (e.g. Pin_Interrupt)

    Depending on the Application the high CPU load for polling could also be outsourced by using a XMC1000 MCU.

    Best Regards
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread

Tags for this Thread


All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.

Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.