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