This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with GP1CON initialization

This is with regards to ADuC7026.I need to set the GP1CON register twice in my program. The first time, I need to configure GP1CON for Sin and Sout (GP1CON = 0x011). The second time, I need to configure it to read clock and data (GP1CON = 0x00). After the second initialization, I just read junk data on the hyperterminal. When I removed the function that has the second initialization, I can read the data correctly on the hyperterminal. I even tried setting the GP1CON back to 0x011 after the function call. Is there any specific method to perform this initialzation?
Thank you

0