2006-05-30 08:13 PM
2006-05-17 03:38 AM
Hello,
I want to use the P1.13 P1.14 P1.15 like port and not for the HDLC : an equipment is connected to the str through this pins. on P1.13 I have a clock (GPIO_IN_TRI_TLL + interrupt) on P1.14 receive data (GPIO_IN_TRI_TLL) on P1.15 sending data (GPIO_OUT_PP) if I'm using P0.11 instead of P1.14 everything is working If I'm using P1.14 it's not working I'm wondering if there is no specific initialization for P1.14 because it is connected to a PLL?(HRXD to DPLL for HDLC) Thanks2006-05-30 08:13 PM
here is the software for the case it works :
GPIO_Config(GPIO0,0x0800,GPIO_IN_TRI_TTL);//P0.11 data RX on this pin GPIO_Config(GPIO1,0x8000,GPIO_OUT_PP);//P1.15 data TX GPIO_Config(GPIO1,0x2000,GPIO_IN_TRI_TTL);//P1.13 clock + interrupt XTI_LineModeConfig(XTI_Line7,XTI_FallingEdge); XTI_LineConfig(XTI_Line7,ENABLE); XTI_ModeConfig(XTI_Interrupt,ENABLE); EIC_IRQCOnfig(ENABLE); it : XTI_IRQHandler(void) { _interrupt_line=XTI_InterruptLineValue(); switch(_interrupt_line) { case XTI_Line7 : _data[i++]=GPIO_BitRead(GPIO0,11); break; ... } } In this case I'm receiving 256 bits from the equipment. Now with the pin P1.14 : instead of GPIO_Config(GPIO0,0x0800,GPIO_IN_TRI_TTL);//P0.11 data RX there is GPIO_Config(GPIO1,0x4000,GPIO_IN_TRI_TTL);//P114data RX and instead of this _data[i++]=GPIO_BitRead(GPIO0,11); there is _data[i++]=GPIO_BitRead(GPIO1,14); And in this case I'm only receiving 192 bits from the equipment, like the P1.14 is interferring on the clock P1.13 and the 192 bits are completely not good. Is P1.14 is modifying P1.13? Is P1.14 is not good defined?