Functionality of GPT1 Timer 2!!

Hello to all group members,

I am currently working on my M.Sc thesis, i.e. to design and test of sensors and actuators of a mobile robot. I have interfaced these sensors to Infinion's C167-LM (16-bit) microcontroller. I want to use Port3.7 as an output, but this port also has an alternate function (Timer 2 Count Input). In my application, T2 is used to count the time between up Interrupt to down Interrupt of encoder pulses, and then calcultaes the velocity of the robot. My question is, if i use P3.7 as an output pin, will it effect the fuctionality of Timer T2 in above mentioned application.

Note: The ecoders are not connected to Port3.7 but to Port2 of C167 and fast external Interrupts are generated for each rising positive edge.

Your prompt reply will be highly appreciated.

Thanks in advance!!

Reply to
technik
Loading thread data ...

T2 Timer Mode is not affected by configuring P3.7 as an output.

Sauli

Reply to
Sauli Porttila

Thanks alot Ian and Sauli, i really appreciate your help and "PROMPT" reply.

Regards,

Asad.

Reply to
technik

No. The alternate function is just that - alternate. if you do not delect that function then the port pin acts as a regular port pin

Ian

--
Ian Bell
Reply to
Ian Bell

technik said

Although you've already gotten two replies that answered your question, I can add that I have some existing products that are going to suddenly have serious problems if Timer 2 interferes with using P3.7 as a general purpose I/O pin. :-)

Casey

Reply to
Casey

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.