Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 23rd September 2008, 08:25 PM   #1
Default Upload to my pc

HI I want to send some data from my z80 micro pc to my home pc. I want to save this on my A: drive floppy. Can I do it? What is the command from ms-dos to save on A: drive? I'm sending the data via an 8251 USART to serial port. Appreciate any help.
resystor is offline  
Old 23rd September 2008, 08:34 PM   #2
Default

What software are you running on the PC?, just set that software to save to the A: drive.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 24th September 2008, 05:42 PM   #3
Default

no software is running. just port to port communication. I need to know the HEX code that will run the A: drive and save
resystor is offline  
Old 24th September 2008, 05:45 PM   #4
Default

hi,

You must have some comms software running.

Is all you have the DOS prompt?

Do you plan enter the hex code in using Debug.?

EDIT: At least get a Basic language, free GWBasic

http://www.codepedia.com/1/gwbasic

or

http://www.freewebs.com/qbasicsite/index.htm
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 24th September 2008 at 05:54 PM.
ericgibbs is offline  
Old 25th September 2008, 01:52 AM   #5
Default

If it's a dos machine then you could do "copy com1 a:\filename.txt". I can't remember how to terminate the transmission. I think it may be terminated when a ctrl-z is received.

Mike.
Pommie is online now  
Old 25th September 2008, 09:07 AM   #6
Default

Quote:
Originally Posted by Pommie View Post
If it's a dos machine then you could do "copy com1 a:\filename.txt". I can't remember how to terminate the transmission. I think it may be terminated when a ctrl-z is received.

Mike.
I think you're probably correct, but don't you have to set up the parameters for COM1 first?.

Far easier to use a terminal program, and you should be able to download plenty of free examples.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 25th September 2008, 09:37 AM   #7
Default

You can see the settings for com1 by doing "MODE COM1" and change it by doing "MODE COM1: baud=9600 parity=N data=8 stop=1" - without the quotes.

Note that this is only good for text files. You couldn't use this method to transfer a terminal program.

One day this may be the only way someone might get an old text file of a floppy.

Mike.
Pommie is online now  
Old 25th September 2008, 09:44 AM   #8
Default

Quote:
Originally Posted by Pommie View Post
You can see the settings for com1 by doing "MODE COM1" and change it by doing "MODE COM1: baud=9600 parity=N data=8 stop=1" - without the quotes.

Note that this is only good for text files. You couldn't use this method to transfer a terminal program.

One day this may be the only way someone might get an old text file of a floppy.

Mike.
hi Mike,
I cannot understand why he dosnt use a free copy of GW or QB basic.?

It would give him all the port and disk control he needs.?
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 25th September 2008, 10:01 AM   #9
Default

Quote:
Originally Posted by Pommie View Post
You can see the settings for com1 by doing "MODE COM1" and change it by doing "MODE COM1: baud=9600 parity=N data=8 stop=1" - without the quotes.
Man, this takes you back!
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 25th September 2008, 10:10 AM   #10
Default

Quote:
Originally Posted by Nigel Goodwin View Post
Man, this takes you back!
More like showing our age.

Mike.
Pommie is online now  
Old 25th September 2008, 10:12 AM   #11
Default

Quote:
Originally Posted by ericgibbs View Post
hi Mike,
I cannot understand why he dosnt use a free copy of GW or QB basic.?

It would give him all the port and disk control he needs.?
He may be trying to get a copy of GW or QB on the machine and only has a dos disk. Unfortunately, the above wont work as it's only good for text files.

Mike.
Pommie is online now  
Old 25th September 2008, 10:21 AM   #12
Default

Quote:
Originally Posted by Pommie View Post
He may be trying to get a copy of GW or QB on the machine and only has a dos disk. Unfortunately, the above wont work as it's only good for text files.

Mike.
He could use the assembler in debug to produce a com file.

He has asked for the 'hex' file for the comms.!
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 25th September 2008, 11:18 AM   #13
Default

Quote:
Originally Posted by Pommie View Post
You can see the settings for com1 by doing "MODE COM1" and change it by doing "MODE COM1: baud=9600 parity=N data=8 stop=1" - without the quotes.

Note that this is only good for text files. You couldn't use this method to transfer a terminal program.

One day this may be the only way someone might get an old text file of a floppy.

Mike.
That frightens me. Lately I've been noticing that computers don't have floppy drives any more, and I *really* need to get my floppies out of storage and use one of my old machines to try to save as much as I can.

Back to the topic: I thought the OP was asking how to send a file to the PC from the Z80 and cause it to be saved to the a: drive, without any comms software running on the PC. I am aware of no way to do that; there must be some software running on the PC to accept the connection, read the data, and write it out to the disc.

I could be missing something though.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 25th September 2008, 12:09 PM   #14
Default

Quote:
Originally Posted by Torben View Post
That frightens me. Lately I've been noticing that computers don't have floppy drives any more, and I *really* need to get my floppies out of storage and use one of my old machines to try to save as much as I can.
It might be worth you buying a USB floppy drive, common practice for laptop owners for many years.

Quote:

Back to the topic: I thought the OP was asking how to send a file to the PC from the Z80 and cause it to be saved to the a: drive, without any comms software running on the PC. I am aware of no way to do that; there must be some software running on the PC to accept the connection, read the data, and write it out to the disc.
As Pommie says, you can use DOS/BIOS commands to spool text from the serial port to a file - but you can't do it with binary files.

But all you need is a simple DOS terminal program, they used to be provided with all modems, and I'm sure there are loads you can download for free.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 25th September 2008, 03:42 PM   #15
Default

Quote:
Originally Posted by Torben View Post
That frightens me. Lately I've been noticing that computers don't have floppy drives any more, and I *really* need to get my floppies out of storage and use one of my old machines to try to save as much as I can.
Don't be frightened. Every mainboard still comes with a floppy connector. I regularly build machines (for other people) without floppy drives. I have a drive on the shelf with cable that I plug in and run hanging out the side temporarily for whenever I need a floppy in a machine. When done, unplug, change the BIOS setting back and put the side cover back on. 99% of users do not need a floppy drive, but I do occasionally.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Reply

Tags
upload

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Can't Upload Attachments Gayan Soyza Feedback/Comments 38 23rd July 2008 09:51 PM
Can't upload files. Pommie Feedback/Comments 2 22nd May 2008 03:56 PM
Free upload site for schematics? Lac General Electronics Chat 7 24th June 2004 03:25 PM
Upload Help Needed. captainkirksdog General Electronics Chat 3 29th January 2004 09:08 AM



All times are GMT. The time now is 03:26 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker