Re: TPU3: alternate PTA and DIO
"trailrunner23" <[email protected]> Sun, 10 Dec 2006 19:29:59 -0000
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi Steve, I'm assuming you are not using the C API functions available from Freescale. Whenever you call a channel init function via that API, such as tpu_dio_init_input_immed() or tpu_pta_init(), the first step is to call tpu_disable(), and the comments contain this warning: WARNING: The channel must be stopped before it is reconfigured. The function disables the channel but if it is currently being serviced it would continue. If you're not using that API, you should look at it to see if there is a step or requirement you are missing. Joe --- In [email protected], <StevenASchroeder@...> wrote: > > I am using PTA to measure a signal's period. No problem. If there is > not a transition within X ms I need to check if it is high or low. I am > trying to switch, in that case, to the DIO input function. All I get > for PIN_LEVEL is 0x0000. (My DIO input works fine by itself.) > > Is there some magic to switching functions? I set CP=0 and HSR=0 before > setting up the DIO. > > Steve >