theone_in_themoon
Junior Member level 3

- Joined
- Oct 20, 2003
- Messages
- 28
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Lahore Pakistan
- Activity points
- 323
Hi
Im using ATMEL 89C2051 uC. I have used it before but i have come up with a unique problem.
i.e. When i need to communicate serially with PC through RS-232... it requires that i do NOT initialize the ports with 0x00. [Initializing with 0xFF works somtimes].
However if i do not initialize the ports (so that i can do serial comm.) then the uC does not read the value at the pins [By sbit ].
Its either the serial communication OR Reading Pin values ........... but i need to have both these tasks performed.
Can anyone suggest or guide me with wat might i be doing wrong ???
Thankyou
P.S. Please Do reply ... i really need help
Im using ATMEL 89C2051 uC. I have used it before but i have come up with a unique problem.
i.e. When i need to communicate serially with PC through RS-232... it requires that i do NOT initialize the ports with 0x00. [Initializing with 0xFF works somtimes].
However if i do not initialize the ports (so that i can do serial comm.) then the uC does not read the value at the pins [By sbit ].
Its either the serial communication OR Reading Pin values ........... but i need to have both these tasks performed.
Can anyone suggest or guide me with wat might i be doing wrong ???
Thankyou
P.S. Please Do reply ... i really need help