This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CAPCOM6 PWM erzeugen???

Hallo, jemand da der sich mit dem Infineon XC167 und dessen CAPCOM6 auskennt? Ich möchte ein PWM Signal erzeugen. In den Regs siehts gut aus aber an den Pins kommt noch nichts an.
-

Parents
  • Hi Martin,

    you must configure the output pins of the port (alternate functions).

    E.g.

    ///  -----------------------------------------------------------------------
      ///  Configuration of the used CCU6 Channel Port Pins:
      ///  -----------------------------------------------------------------------
      ///  - P1L.0 is used for CAPCOM6 output (CC60)
      ///  - P1L.1 is used for CAPCOM6 output (COUT60)
    
      ALTSEL0P1L    |=  0x0003;      // select alternate output function
      P1L   = (P1L   & ~(uword)0x0003) | 0x0003;    //set data register
      DP1L  = (DP1L  & ~(uword)0x0003) | 0x0003;    //set direction register
    

    That should be all.

    Stefan

Reply
  • Hi Martin,

    you must configure the output pins of the port (alternate functions).

    E.g.

    ///  -----------------------------------------------------------------------
      ///  Configuration of the used CCU6 Channel Port Pins:
      ///  -----------------------------------------------------------------------
      ///  - P1L.0 is used for CAPCOM6 output (CC60)
      ///  - P1L.1 is used for CAPCOM6 output (COUT60)
    
      ALTSEL0P1L    |=  0x0003;      // select alternate output function
      P1L   = (P1L   & ~(uword)0x0003) | 0x0003;    //set data register
      DP1L  = (DP1L  & ~(uword)0x0003) | 0x0003;    //set direction register
    

    That should be all.

    Stefan

Children
No data