some explanation needed

Status
Not open for further replies.

Madbunny1

Member level 2
Joined
May 22, 2017
Messages
49
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
380
Hi,

I am using TLE9879QXA40 Infineon microcontroller https://www.infineon.com/dgdl/Infin...N.pdf?fileId=5546d4625a888733015a89d10a283f20

with the Commutation Output pattern which I made is not able to run the Motor but just activating the MOSFET's.
Can anyone explain what the Problem is?

Code:
#if (BCHALL_OFFSET_60DEGREE_EN == 0) 
  { 
    (uint16)Ccu6_SetPtns(0, 0, 0x00), /* Hall pattern=0, forward direction (error) */
    (uint16)Ccu6_SetPtns(1, 3, 0x31), /* Hall pattern=1, forward direction */
    (uint16)Ccu6_SetPtns(2, 6, 0x07), /* Hall pattern=2, forward direction */
    (uint16)Ccu6_SetPtns(3, 2, 0x34), /* Hall pattern=3, forward direction */
    (uint16)Ccu6_SetPtns(4, 5, 0x1C), /* Hall pattern=4, forward direction */
    (uint16)Ccu6_SetPtns(5, 1, 0x0D), /* Hall pattern=5, forward direction */
    (uint16)Ccu6_SetPtns(6, 4, 0x13), /* Hall pattern=6, forward direction */
    (uint16)Ccu6_SetPtns(0, 0, 0x00), /* Hall pattern=7, forward direction (error) */
    (uint16)Ccu6_SetPtns(0, 0, 0x00), /* Hall pattern=0, reverse direction (error) */
    (uint16)Ccu6_SetPtns(1, 5, 0x13), /* Hall pattern=1, reverse direction */
    (uint16)Ccu6_SetPtns(2, 3, 0x0D), /* Hall pattern=2, reverse direction */
    (uint16)Ccu6_SetPtns(3, 1, 0x1C), /* Hall pattern=3, reverse direction */
    (uint16)Ccu6_SetPtns(4, 6, 0x34), /* Hall pattern=4, reverse direction */
    (uint16)Ccu6_SetPtns(5, 4, 0x07), /* Hall pattern=5, reverse direction */
    (uint16)Ccu6_SetPtns(6, 2, 0x31), /* Hall pattern=6, reverse direction */
    (uint16)Ccu6_SetPtns(0, 0, 0x00)  /* Hall pattern=7, reverse direction (error) */
  },
#else /* (BCHALL_OFFSET_60DEGREE_EN == 1) */
  { 
    (uint16)Ccu6_SetPtns(0, 0, 0x00), /* Hall pattern=0, forward direction (error) */
    (uint16)Ccu6_SetPtns(5, 4, 0x38), /* Hall pattern=1, forward direction */
    (uint16)Ccu6_SetPtns(3, 1, 0x0E), /* Hall pattern=2, forward direction */
    (uint16)Ccu6_SetPtns(1, 5, 0x32), /* Hall pattern=3, forward direction */
    (uint16)Ccu6_SetPtns(6, 2, 0x23), /* Hall pattern=4, forward direction */
    (uint16)Ccu6_SetPtns(4, 6, 0x0B), /* Hall pattern=5, forward direction */
    (uint16)Ccu6_SetPtns(2, 3, 0x2C), /* Hall pattern=6, forward direction */
    (uint16)Ccu6_SetPtns(0, 0, 0x00), /* Hall pattern=7, forward direction (error) */
    (uint16)Ccu6_SetPtns(0, 0, 0x00), /* Hall pattern=0, reverse direction (error) */
    (uint16)Ccu6_SetPtns(3, 2, 0x0B), /* Hall pattern=1, reverse direction */
    (uint16)Ccu6_SetPtns(6, 4, 0x32), /* Hall pattern=2, reverse direction */
    (uint16)Ccu6_SetPtns(2, 6, 0x38), /* Hall pattern=3, reverse direction */
    (uint16)Ccu6_SetPtns(5, 1, 0x2C), /* Hall pattern=4, reverse direction */
    (uint16)Ccu6_SetPtns(1, 3, 0x23), /* Hall pattern=5, reverse direction */
    (uint16)Ccu6_SetPtns(4, 5, 0x0E), /* Hall pattern=6, reverse direction */
    (uint16)Ccu6_SetPtns(0, 0, 0x00)  /* Hall pattern=7, reverse direction (error) */
  },
#endif /* (BCHALL_OFFSET_60DEGREE_EN == 1) */

  /* T12Moden - T12 modulation enable patterns 
   * Table value = 0x80(MCMEN) + pattern for T12MODEN
   * Pattern = COUT62*32 + CC62*16 + COUT61*8 + CC61*4 + COUT60*2 + CC60 */
#if (BCHALL_OFFSET_60DEGREE_EN == 0) 
  {
    (uint8)(0x00),        /* Hall pattern=0, forward direction (error) */
    (uint8)(0x80 + 0x30), /* Hall pattern=1, forward direction */
    (uint8)(0x80 + 0x03), /* Hall pattern=2, forward direction */
    (uint8)(0x80 + 0x33), /* Hall pattern=3, forward direction */
    (uint8)(0x80 + 0x0C), /* Hall pattern=4, forward direction */
    (uint8)(0x80 + 0x3C), /* Hall pattern=5, forward direction */
    (uint8)(0x80 + 0x0F), /* Hall pattern=6, forward direction */
    (uint8)(0x00),        /* Hall pattern=7, forward direction (error) */
    (uint8)(0x00),        /* Hall pattern=0, reverse direction (error) */
    (uint8)(0x80 + 0x03), /* Hall pattern=1, reverse direction */
    (uint8)(0x80 + 0x0C), /* Hall pattern=2, reverse direction */
    (uint8)(0x80 + 0x0F), /* Hall pattern=3, reverse direction */
    (uint8)(0x80 + 0x30), /* Hall pattern=4, reverse direction */
    (uint8)(0x80 + 0x33), /* Hall pattern=5, reverse direction */
    (uint8)(0x80 + 0x3C), /* Hall pattern=6, reverse direction */
    (uint8)(0x00)         /* Hall pattern=7, reverse direction (error) */
  },
#else /* (BCHALL_OFFSET_60DEGREE_EN == 1) */
  {
    (uint8)(0x00),        /* Hall pattern=0, forward direction (error) */
    (uint8)(0x80 + 0x3C), /* Hall pattern=1, forward direction */
    (uint8)(0x80 + 0x33), /* Hall pattern=2, forward direction */
    (uint8)(0x80 + 0x30), /* Hall pattern=3, forward direction */
    (uint8)(0x80 + 0x0F), /* Hall pattern=4, forward direction */
    (uint8)(0x80 + 0x0C), /* Hall pattern=5, forward direction */
    (uint8)(0x80 + 0x03), /* Hall pattern=6, forward direction */
    (uint8)(0x00),        /* Hall pattern=7, forward direction (error) */
    (uint8)(0x00),        /* Hall pattern=0, reverse direction (error) */
    (uint8)(0x80 + 0x33), /* Hall pattern=1, reverse direction */
    (uint8)(0x80 + 0x0F), /* Hall pattern=2, reverse direction */
    (uint8)(0x80 + 0x03), /* Hall pattern=3, reverse direction */
    (uint8)(0x80 + 0x3C), /* Hall pattern=4, reverse direction */
    (uint8)(0x80 + 0x30), /* Hall pattern=5, reverse direction */
    (uint8)(0x80 + 0x0C), /* Hall pattern=6, reverse direction */
    (uint8)(0x00)         /* Hall pattern=7, reverse direction (error) */
  },
#endif /* (BCHALL_OFFSET_60DEGREE_EN == 1) */
Thanks
 

Hi,

Your headline is not descriptive.
Next time please use a more problem related headline, to enable other forum user to find your thread according it's headline.

is not able to run the Motor
This is not descriptive, too.
* what did you expect?
* how did you try to achieve this
* what happens instead?
* what did you do to debug the problem
* what are the debug results?

Klaus
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…