--===============1838302458== I dont know whats wrong but I did set Handshake to none and Dtrenable to true or false but it will not work.. although I can set RTS to tell when a complete data was sent and cts when complete data is received to start reading the buffer. as somehow also the datareceive event is not being called even when setting the receive thereshold to 1byte... I look at the state of the pin by attaching a multimeter to pin5 DTR and pin6 Ground... "Ruben Jönsson" wrote in message news:456A9D0C.7910.27426A@ruben.pp.sbbs.se... Hi, You can set the DTR however you like in .Net 2.0. Use the DtrEnable property of the SerialPort class. Perhaps You also have to set handshake to Handshake.None. / Ruben > thanks You are correct.. Unfortunately I donthave control over this in c# > as I > was intending to use the other pins other than handshaking. and as of now > this > is not doable in .Net 2.0.. the problem is not on the PIC side but rather > on > programming limitations in the PC side.. I'm sure there are better guys > out > there who have solved or came in contact with this kind of problem.. > thanks.. > > "Jan-Erik Söderholm" wrote in message > news:45683B20.6090801@telia.com... > I would expect the standard Windows drives to set/clear the > handshaking pins according to whatever the RS232 standard says. > > Jan-Erik. > > Genome skrev: > > thanks.. > > I just found out by searching the net for long that the serialport puts > > the > > dtr line to off +3volts to tell the device at the other end that it is > > ready. I thought it was the the otherway around On -3volts or it may be > > different on other computers so I thought if If I just bit test It might > > not > > work always.. As Im using C# to do serialport on the PC side and have no > > direct access to the DTR pin.. I cant set or clear the pin using C# on > > the PC > > side, the computer seems to automaticaly set dtr to low when I attempt > > to open > > the port.. thanks.. > > > > "Jan-Erik Söderholm" wrote in message > > news:45682868.60503@telia.com... > >> Genome skrev: > >> > >>> Hello, > >>> From the Max232 datasheet, from one of the shematics page17. I see > >>> that > >>> R1in(pin13) and R2in(pin8) are pulled to ground via a 5kohm resistor.. > >>> when > >>> the max232 chip is not hooked to the serialport the partnered pins > >>> R2out and > >>> R1out are defaulted to On +5volt state.. I need this pin to to default > >>> low > >>> 0volts.. Is there a hardware approach to do this or should I just > >>> invert the > >>> inputs via software when querying for pin values when needed. thanks. > >> What is the actual problem you are trying to solve ? > >> What is the problem with having the pins high as default ? > >> What will change besides selecting BTFSC or BTFSSS ? > >> > >> Jan-Erik. > >> > >> -- > >> 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 > > > > ============================== Ruben Jönsson AB Liros Electronic Box 9124, 200 39 Malmö, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se ============================== -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --===============1838302458== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --===============1838302458==--