Bita Sobhani

Please help me in port D configuration

Discussion created by Bita Sobhani on Oct 6, 2008
Latest reply on Oct 8, 2008 by Tom Paden
Hi all
I am using Freescale HCS08 MCU.
I want to configure port D as input. I wrote the followong code:

  //TPM1SC=0x00;
  //TPM2SC=0x00;
  
  PTDDD = 0x00; // set all pins as input
  PTDPE = 0x00;
  PTDSE = 0x00;

The problem is that in this case that port D is configured as input, no internal timer can work, also no wireless communication can occur (AF_DataRequest does not work). This problem also exists if the fist two lines are not comment.
Please help me
THANKS

Outcomes