I found out what happen i have turn on port D as a parallel port so it over write the DDRD WebSite : http://soonlee.agreatserver.com ----- Original Message ----- From: "Soon Lee" To: "Microcontroller discussion list - Public." Sent: Saturday, March 05, 2005 1:30 PM Subject: [PIC] Strange things on POrt D > Hi all i am having some problem here hope some one can help me on this > > I have written a program o recieve command from the rs232 to change the > reg > on the 18F > > The REG is access by indirect addressing > > attach is the main code > > the odd this is that when i write 255 to DDRD and then some thing to PORT > D > the port become a output!!! then i read back the DDRD value it is still > 255 > what can be wrong > > The odd this is that there is no problem when i use it on portB. > > what can be wrong can some one enlighten me? > > -------------------------------------------------------------------------------- > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist