AnsweredAssumed Answered

MKE16F512VLH16 FTM no PWM on some pins?

Question asked by Andrew Kroll on May 8, 2019
Latest reply on May 12, 2019 by Andrew Kroll

I have PWM working for most of the pins on the MKE16F512VLH16 on a custom board with my custom software with the exception of the following failures:

 

pin 19 alt2 PTB4 FTM0_CH4

FTM0_C4SC (*(volatile uint32_t *)0x4003802C)

FTM0_C4V (*(volatile uint32_t *)0x40038030)

pin 18 alt2 PTB5 FTM0_CH5

FTM0_C5SC (*(volatile uint32_t *)0x40038034)

FTM0_C5V (*(volatile uint32_t *)0x40038038)

pin 17 alt2 PTE8 FTM0_CH6

FTM0_C6SC (*(volatile uint32_t *)0x4003803C)

FTM0_C6V (*(volatile uint32_t *)0x40038040)


pin 57 alt2 PTA11 FTM1_CH5

FTM1_C5SC (*(volatile uint32_t *)0x40039034)

FTM1_C5V (*(volatile uint32_t *)0x40039038)

pin 56 alt2 PTA12 FTM1_CH6

FTM1_C6SC (*(volatile uint32_t *)0x4003903C)

FTM1_C6V (*(volatile uint32_t *)0x40039040)
pin 55 alt2 PTA13 FTM1_CH7

FTM1_C7SC (*(volatile uint32_t *)0x40039044)

FTM1_C7V (*(volatile uint32_t *)0x40039048)


pin 4 alt4 PTE10 FTM2_CH4

FTM2_C4SC (*(volatile uint32_t *)0x4003A02C)

FTM2_C4V (*(volatile uint32_t *)0x4003A030)

pin 3 alt4 PTE11 FTM2_CH5

FTM2_C5SC (*(volatile uint32_t *)0x4003A034)

FTM2_C5V (*(volatile uint32_t *)0x4003A038)

 

pin 46 alt2 PTD2 FTM3_CH4

FTM3_C4SC (*(volatile uint32_t *)0x4002602C)

FTM3_C4V (*(volatile uint32_t *)0x40026030)
pin 54 alt4 PTE2 FTM3_CH6

FTM3_C6SC (*(volatile uint32_t *)0x40026040)

FTM3_C6V (*(volatile uint32_t *)0x40026044)

pin 53 alt4 PTE6 FTM3_CH7

FTM3_C7SC (*(volatile uint32_t *)0x40026044)

FTM3_C7V (*(volatile uint32_t *)0x40026048)

 

To which I have the following question:

Is there something extra that I am missing here, or is the reference manual incorrect?

Using the pins as GPIO work totally fine, and I have triple checked the memory I/O location definitions, as shown above.

The eratta doesn't mention any problems.

Outcomes