Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 7th April 2004, 04:43 AM   (permalink)
Default Need a example using 74LS164 connect to PC RS232

Hi, my friends. I found the IC 74LS164 can be used for serial to parallel shift. I want to use this IC connect to PC's serial port (RS232/DB9) and control 8 LED on or off. I want to use INT 14H to send the data. Does any friend can give a example how to make this circuit work?
kingsz1 is offline  
Old 7th April 2004, 09:31 AM   (permalink)
Default Re: Need a example using 74LS164 connect to PC RS232

Quote:
Originally Posted by kingsz1
Hi, my friends. I found the IC 74LS164 can be used for serial to parallel shift. I want to use this IC connect to PC's serial port (RS232/DB9) and control 8 LED on or off. I want to use INT 14H to send the data. Does any friend can give a example how to make this circuit work?
It's not a good choice, a PC serial port usually sends out at least a 10 bit data word (including one start bit and one stop bit) - you could use an old UART chip to do it, or a PIC makes it even easier - one of my tutorials does exactly what you want!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 7th April 2004, 11:08 PM   (permalink)
Default

Perhaps a better choice is to use the PC's parallel port? Hm, now I'm wondering if it's possible to control one data pin. I mean, if you send data to 0x378, the controller will probably send them in parallel.

The PC's RS232 serial port follows a protocol so you must make your external device RS232 compliant.
discrete is offline  
Old 7th April 2004, 11:20 PM   (permalink)
Default

Why not just use the parallell port??

The parallell port have 8 output (5v) and 5 input (5v) and 4 pins(5v) you self can decide if you want them as in or out!

!!!!!!The maximum curent is something like 1-2mA!!!!!!!!

THERE ARE NO PROTECTIONS ON THE PARALLELL-PORT. TRY TO USE A LED AND THE PORT WILL BE BROKEN!!!

The easiest way is to use a opto-switch between the port and the led!!

I use qbasic to control the port and it works perfectly!
radialspel is offline  
Old 8th April 2004, 02:12 AM   (permalink)
Default

Thank you all.
Actually I want to understand the bit control in serial port.
kingsz1 is offline  
Old 8th April 2004, 07:05 AM   (permalink)
Default

Quote:
Originally Posted by kingsz1
Thank you all.
Actually I want to understand the bit control in serial port.
What do you actually mean by that?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 8th April 2004, 11:06 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
What do you actually mean by that?.
Thank you, Nigel.
I want to know how INT 14H effect the serial bit/bits, and how to apply INT 14H for control purpose.
And also most devices connect to computer using serial single, I really want to know how a serial single (e.g. RS232) transfer and recieve.

Thank you. Have a nice "Good Friday".
kingsz1 is offline  
Old 9th April 2004, 01:06 AM   (permalink)
Default

Quote:
Originally Posted by kingsz1
Quote:
Originally Posted by Nigel Goodwin
What do you actually mean by that?.
Thank you, Nigel.
I want to know how INT 14H effect the serial bit/bits, and how to apply INT 14H for control purpose.
And also most devices connect to computer using serial single, I really want to know how a serial single (e.g. RS232) transfer and recieve.
Are you working in DOS?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 9th April 2004, 09:57 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
Are you working in DOS?.
Yes, Nigel. My work and exercise most under DOS. So I want to use Interrupt for control programming .
kingsz1 is offline  
Old 9th April 2004, 10:46 AM   (permalink)
Default

Quote:
Originally Posted by kingsz1
Quote:
Originally Posted by Nigel Goodwin
Are you working in DOS?.
Yes, Nigel. My work and exercise most under DOS. So I want to use Interrupt for control programming .
It's been a LONGGGGGG! time since I used DOS, but I did write my own Turbo Pascal routines (as a Unit) which I used for many years for all sorts of RS232 interfacing.

As far as I can remember you basically load your data byte into the UART and call an INT routine, it's quite simple to do. The most complicated part is probably the setting up of the port in the first place.

There's nothing much to know about the external interface, the byte you load in the UART is simple sent out (high bit first), preceeded by the specified start bits, and followed by the specified stop bits.

My PIC RS232 tutorial shows you what the diagram looks like.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:59 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker