Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

parallel/serial interface

Status
Not open for further replies.

syeda amna

Full Member level 4
Joined
Jun 1, 2010
Messages
224
Helped
24
Reputation
48
Reaction score
23
Trophy points
1,308
Location
Pakistan
Activity points
2,549
hi

i m working on home automation project using ATMEGA16L. the output of the controller is connected to 8 different devices. now i want to monitor the whole system on PC. such that which devices are on?? for how long the devics are on.
for this i want to interface through computer, which interfacing will be better or suitable for this? which software is better??

plzzzz help me
 

farhada

Advanced Member level 2
Joined
Oct 1, 2004
Messages
589
Helped
84
Reputation
168
Reaction score
30
Trophy points
1,308
Location
Nice, France
Activity points
5,027
Most modern PCs don't have a parallell port, so if I was you, I would use a serial interface which is easier to come cross in the modern world.
 

syeda amna

Full Member level 4
Joined
Jun 1, 2010
Messages
224
Helped
24
Reputation
48
Reaction score
23
Trophy points
1,308
Location
Pakistan
Activity points
2,549
thank you, would you like to tell me about is VB6 is better for serial interface. i come across a lot of difficulties during interfacing and still not unable to achieve my task.
 

farhada

Advanced Member level 2
Joined
Oct 1, 2004
Messages
589
Helped
84
Reputation
168
Reaction score
30
Trophy points
1,308
Location
Nice, France
Activity points
5,027
Sorry, I am not a programmer and have never used VB (refuse to touch Microsoft products for development).
 

lockman_akim

Advanced Member level 1
Joined
Jul 12, 2010
Messages
467
Helped
76
Reputation
152
Reaction score
68
Trophy points
1,308
Location
Malaysia
Activity points
3,537
i use vb 2008 for my serial communication project..actually the software will sent the ascii code..so u should program the micro c to reflect with the ascii..for example your vb sent character "a" and the ascii value = 49(if i am rite):

(i use BASIC for my PIC program)

dim datain as byte

start:

datain = hserin 'receive the data to variable data in
if datain = 49 then PORTB.0 = 1 'turn on portb.0
else
PORTB.0 = 0 'let the portb.0 off when data not equal to 49
end if

goto start
 

adeel.sid

Advanced Member level 4
Joined
Feb 15, 2008
Messages
108
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
1,958
I would like to Tx/Rx data thru serial port thru C programming.
Need guidance
Thanx
 

AdvaRes

Advanced Member level 4
Joined
Feb 14, 2008
Messages
1,166
Helped
113
Reputation
220
Reaction score
50
Trophy points
1,328
Location
At home
Activity points
7,444

srizbf

Advanced Member level 5
Joined
Apr 3, 2010
Messages
1,995
Helped
417
Reputation
840
Reaction score
328
Trophy points
1,363
Activity points
10,985
adeel.sid wrote:
I would like to Tx/Rx data thru serial port thru C programming.
Need guidance ....

hello adeel.sid ,
an rs232 library is available for windows and other platform usage at:
http://github.com/ynezz/librs232

it has both c and lua codes.

hope you can utilise it for your requirement.
 

adeel.sid

Advanced Member level 4
Joined
Feb 15, 2008
Messages
108
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
1,958
Hello Sriz.. & Adva..
I want to send and loop back the Tx data to Rx line of RS232 thru C code (for understanding C-interface wd 232 as my first program of interfacing thru C)

Regards
Adeel
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top