Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a microcontroller connected to serial comports PIN 2 only. my problem is what command i used in c++/c#/vb to read data in PIN2. can anybody programmer help or software developer help regarding my problems. i am beginner of the said above programming laguage. thanks in advance.
Posted
Updated 26-Oct-10 22:45pm
v2
Comments
DaveAuld 25-Oct-10 8:06am    
Well it would help if you pick a language of choice? they are all different!

Actually I am Confused with your Question .., Keep Side about Programming Languages.., You are telling only PIN2 is Connected. what i understood is that 9 pin connector(comport) the PIN2(Rx-Data Receive) is connected. only.., if PIN3(Tx-Data Transmit) is not connected how you send the command to the controller..,

Go through the below link for PIN Connector table
http://www.dataip.co.uk/Reference/Serial9DPinOut.ph[^]
 
Share this answer
 
I am very thankful to your response. i think it is a device not a microcontroller. This device is what we called coins slot/acceptor, they have 4 wires, the 1st & 2nd wire is 12volts & ground which i am directly connect to the pc power supply, the 3rd one is not important to me and the 4th wire i put it to the pin2 comports.

the 4th wire i notice are giving increase of volts when there is coins drop to the slot/acceptor, which i see in multitester.

this time, i plan to build a software which trigger by this device connected to pin2 comports and link to my program.

like example... countdown timer,
instead i am going to input data for my countdown timer this time the device is only the one to input data.

i hope other programmers those who have knowledge in comports programming will give me idea what command i am use in vb or c++ or c#.

thank you and more power.
 
Share this answer
 
So.., You want to read signal for every coin drops into the device..,

Go through the below link for Serial Port Data receive event.

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.datareceived.aspx[^]
 
Share this answer
 
thank you very much for the link... i'll try that one....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900