Initializing the PAD port

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Initializing the PAD port

Jump to solution
2,187 Views
Franky_TJ_
Contributor I
Hi,  i'm having trouble initializing the PAD  port  im trying to set PAD07,06,14 and 13 as outputs using the DDR1AD0_DDR1AD06 register, there are no error messages when i compile the proyect but it never does it. 
any help will be very apreciated 
thank you. 
Labels (1)
Tags (1)
0 Kudos
1 Solution
635 Views
CrasyCat
Specialist III
Hello
I would recommend that you submit a service request with our support department around that.
 
Make sure to specify which version of CodeWarrior you are using and to attach a sample project reproducing the trouble.
 
CrasyCat

View solution in original post

0 Kudos
3 Replies
634 Views
CrasyCat
Specialist III

Hello

Which processor are you targeting (HC08, EPPC, ...)?
Can I see the actual source code?

Did you define your port register as volatile?

CrasyCat

0 Kudos
634 Views
Franky_TJ_
Contributor I
Yes all are as volatile..here is the source code. The AD0 port works fine, but the AD1 is the one with the problem
the Micro I'm Using MC9s12xdp512v2
unsigned char RTSCTS(unsigned char port)
{
DDR1AD0 = 0;         
DDR1AD0_DDR1AD02 = 0; //INPUT PAD02 [93]  CTS3
DDR1AD0_DDR1AD03 = 0; //INPUT PAD03 [95]  CTS2
DDR1AD0_DDR1AD04 = 0; //INPUT PAD04 [97]  CTS1
DDR1AD0_DDR1AD05 = 0; //INPUT PAD05 [99]  CTS0
DDR1AD0_DDR1AD06 = 1; //OUTPUT PAD06 [101]  RTS2
DDR1AD0_DDR1AD07 = 1; //OUTPUT PAD07 [103]  RTS0
//CONFIGURE AD1 PAD08~PAD23
            // PIN  PIN   PIN   PIN
          //    DIR  NAME  NUMBER DESIGNATION
ATD1DIEN1 = 0x00;
ATD1DIEN0 = 0x00;         
DDR1AD1_DDR1AD19  = 0; //INPUT PAD09 [92]  CD3
DDR1AD1_DDR1AD110 = 0; //INPUT PAD10 [94]  CD2
DDR1AD1_DDR1AD111 = 0; //INPUT PAD11 [96]  CD1
DDR1AD1_DDR1AD112 = 0; //INPUT PAD12 [98]  CD0
DDR1AD1_DDR1AD113 = 1; //OUTPUT PAD13 [100] RTS3
DDR1AD1_DDR1AD114 = 1; //OUTPUT PAD14 [102] RTS1
 
 
  //PT1AD0_PT1AD07  RTS0 -->75C06 --> RTS1
  //PT1AD1_PT1AD114  RTS1 -->75C06 --> RTS2
  //PT1AD0_PT1AD06  RTS2 -->75C06 --> RTS3
  //PT1AD1_PT1AD113  RTS3 -->75C06 --> RTS4
}

Message Edited by Franky_TJ_ on 2006-07-12 05:55 PM

Message Edited by Franky_TJ_ on 2006-07-12 06:17 PM

0 Kudos
636 Views
CrasyCat
Specialist III
Hello
I would recommend that you submit a service request with our support department around that.
 
Make sure to specify which version of CodeWarrior you are using and to attach a sample project reproducing the trouble.
 
CrasyCat
0 Kudos