Other Parts Discussed in Thread: MOTORWARE
Hello Gurus,
I am using the SCI loop back mode to collect information through SCI using teraterm. I am using both Gpio 28 and 29. I am getting the data correctly.
What I was wondering is that once I am done with the input of data I want to turn off the SCI interface and use the gpio 29 as a general purpose.
I do the following :
1. receive data from sci, write to flash.
2. set Gpio 29 back to general purpose
GPIO_setMode(obj->gpioHandle,GPIO_Number_29,GPIO_29_Mode_GeneralPurpose);
GPIO_setLow(obj->gpioHandle,GPIO_Number_29);
GPIO_setDirection(obj->gpioHandle,GPIO_Number_29,GPIO_Direction_Output);
3. pull Gpio High.
I am able to pull the gpio high and low, but I can still see on my teraterm that I am getting some transmission. So, I tried to do the following after setting the Gpio back to general purpose:
SCI_disable(mySci);
SCI_disableTx(mySci);
SCI_disableRx(mySci);
SCI_disableTxInt(mySci);
SCI_disableRxInt(mySci);
But I achieve no success from this. So, my question is how do I completely turn off SCi from for my device?
Regards,
Rajan Joshi