Mark Welo

I am wondering if it's possible to setup the TPM to simpl...

Discussion created by Mark Welo on Jun 24, 2008
Latest reply on Jun 27, 2008 by bigmac
I am wondering if it's possible to setup the TPM to simply use the timer function without any pin control for multiple channels.  So if I set TPM1C0SC to 0x40, I think I am enabling the timer channel 0 interrupt, but disabling the pin control.  But it appears the interrupt never occurs.  I can only get the general overflow function to work:
 
  TPM1MOD   = 0x3fff; // Modulo value
  TPM1C0V   = 0;         // Channel interrupt will happen when counter matches
  TPM1C0SC  = 0x40; // Enable channel interrupt, but don't affect I/O
  TPM1SC    = 0x17;    // Overflow interrupt disabled, using bus rate clock, prescaler = 128
Is that just impossible?
 
Thanks,
Mark

Outcomes