serial control interface programing - diyAudio
Go Back   Home > Forums > Source & Line > Digital Source

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 11th February 2003, 07:06 PM   #1
diyAudio Member
 
Join Date: Aug 2002
Location: France
Default serial control interface programing

Hi,

I want to program the on-chip mode registers of pcm1738 (audio format setting). I guess from the eval board data sheet that this could be done via printer port (rs232 or parallele port ?) for tests purpose.
I search software to do this ? could some one help me ?
And what device could I use for programing the serial interface via PIC or other similar chip (that could be easily programed via PC link) ?

bye
  Reply With Quote
Old 11th February 2003, 07:19 PM   #2
diyAudio Member
 
jackinnj's Avatar
 
Join Date: Apr 2002
Location: Llanddewi Brefi, NJ
Default do you have GBasic, basica, qbasic ?

there are a lot of versions of DOS-based Basic freeware on the web. if you have an older computer (Win 95 OS or earlier) it's probably there anyway. you can start with the basic commands to poke the parallel port -- called "bit banging".

there are also a number of freeware demos of using the parallel port to talk to the outside world -- just be very careful when making the connections when using a computer with a built in parallel interface. for this reason it's a good idea to use a parallel port adapter card which fits into one of the slots on the machine.

take a look at this paper by Dr. Peter Anderson at Morgan State (Dr. Anderson has done a lot of interesting stuff with microcontrollers).

http://et.nmsu.edu/~etti/fall96/comp...r/printer.html

the newer versions of Windows make it difficult to directly engage the parallel port.

i prefer serial -- but you will need a chip like the MAX232 (or similar from Sipex) to convert the RS232 levels to TTL levels (and back again.)

email me separately if you need more help.
  Reply With Quote
Old 11th February 2003, 08:30 PM   #3
diyAudio Member
 
Join Date: Aug 2002
Location: France
Jackinnj,

thank you for your reply, I use win xp and as you say it would be difficult to engage directly the // port (Hal interface programming I suppose). I will look if I find something written in VB.
I will read the article of Dr. Peter Anderson and refresh my knowledge about // interface and how to program it. I cannot mail you separately I have not your email @.

By
Mermoz
  Reply With Quote
Old 11th February 2003, 10:01 PM   #4
diyAudio Member
 
jackinnj's Avatar
 
Join Date: Apr 2002
Location: Llanddewi Brefi, NJ
Default if you can do VB

you can probably find the DLL's in freeware which allow you direct access to the parallel port. For the serial port you will have to use a shift register.

Do a google search for Richard Grier -- he did a book called "The Visual Basic Programmers Guide to Serial Communications" -- its from the pre Win2k era, however. Also, plug into the newsgroup: microsoft.public.vb.controls

the development board for the TI part is $399 -- but includes the software.
  Reply With Quote
Old 12th February 2003, 06:40 AM   #5
diyAudio Member
 
Join Date: Aug 2002
Location: France
Yes the board is 399 $ from TI, but I want to build my own board and I have got samples from TI. I will use VB (maybe some dll or ocx)
  Reply With Quote
Old 12th February 2003, 12:49 PM   #6
diyAudio Member
 
jackinnj's Avatar
 
Join Date: Apr 2002
Location: Llanddewi Brefi, NJ
Default you'll only know when you try

for a quick and dirty you can use an inexpensive device like the Basic Stamp II -- you don't need a programmer and the software is free. Since you are bitbanging 3 or 4 bits at a time you just set a nibble (1/2 byte) for any 4 output pins. The phrase below writes to the bottom 4 bits:

d_out var NIBL

and then use a FOR NEXT loop to write a 4 bit word as <em>d_out </em>as many times as you need. The controls of the device operate separately from the system clock.

the chips like the Stamp, BX24, AVR Sprint, Atom etc make life very easy since you can reprogram on the fly. For $49 you will find them to be one of the most useful tools in your shop. You can incorporate it as the heart of a digital relay control (see thread) for attenuation, control inputs etc.
  Reply With Quote
Old 12th February 2003, 06:06 PM   #7
diyAudio Member
 
Join Date: Aug 2002
Location: France
I have found at my local shop a device comparable to the Stamp i.e. C-Control with Motorola 68HC05B6 microcontroller for 51 Euro and software is free to. I will start with it. // io PCI card cost approx. 25 Euro. The C-control can operate as stand-alone unit and bulk units without RS232 and other glue cost approx. 25 Euro. Thank you for your advises
Bye
  Reply With Quote
Old 15th February 2003, 02:11 PM   #8
weissi is offline weissi  Europe
diyAudio Member
 
weissi's Avatar
 
Join Date: Sep 2002
Location: Austria
search google for a programm called "parallel.exe"......forgott where i found it.....

try this little prog! it looks good to me, but i have never tried it with my pcm1738.....no board yet.....
__________________
regards / servus
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i need InfraRed / RF Remote Control Relay(serial decoder?) Morbid Digital Source 0 18th September 2004 10:06 PM
Remote Control User Interface chipslvsv Pass Labs 3 27th June 2004 07:50 AM
Serial to I2C using MSP stud Digital Source 2 17th May 2004 10:55 AM
use serial data A'af Digital Source 2 16th January 2002 07:50 PM


New To Site? Need Help?

All times are GMT. The time now is 07:04 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2