Go Back   Home > Forums > Design & Build > Parts

Parts Where to get, and how to make the best bits. PCB's, caps, transformers, 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 27th April 2004, 01:18 AM   #1
diyAudio Member
 
xplod1236's Avatar
 
Join Date: Dec 2003
Location: On the couch
Send a message via AIM to xplod1236
Angry digital pots

I'm looking for digital pots for audio volume control (32 position)that are easy to control with a pic. I have read about the serial control protocols, but I'm looking for something that is easier to control using a pic. I'm also looking for digital switches, which can be used to select the input; also controllable with a pic. Any suggestions are appreciated.
  Reply With Quote
Old 27th April 2004, 01:23 AM   #2
Banned
 
Join Date: Apr 2002
Location: Germany, Clausthal
switches http://www.maxim-ic.com/SwitchMux.cfm

digital pots http://para.maxim-ic.com/compare.asp...,114379,114380

serial protokoll _is_ easy

some more steps you get with a PGA2310, ready working with pic it woul look like: http://home.tu-clausthal.de/~tpa/PGA/index.html

also a useing the search butto on this board will show loads of information for digital pot, PGA2310, ...
  Reply With Quote
Old 27th April 2004, 01:45 AM   #3
diyAudio Member
 
xplod1236's Avatar
 
Join Date: Dec 2003
Location: On the couch
Send a message via AIM to xplod1236
I did a search on the PGA2310, and I thought that maybe there was something easier to control, so that's why I asked. I'll get some PGA2310s and I'll try to figure out the serial interface. Thanks for the reply.
  Reply With Quote
Old 27th April 2004, 02:01 AM   #4
Banned
 
Join Date: Apr 2002
Location: Germany, Clausthal
What language do you use, what pic do you want to use?

In assembler its straight forward:

PGA_WR
BCF SCLK


BCF CS_PGA ; Chip select
CALL WAIT10
BTFSC volume,7
BSF SDI
BTFSS volume,7
BCF SDI

BSF SCLK ;Bit1
BCF SCLK

BTFSC volume,6
BSF SDI
BTFSS volume,6
BCF SDI

BSF SCLK ;Bit2

........



BSF SCLK ;Bit15

BCF SCLK
BTFSC volume,0
BSF SDI
BTFSS volume,0
BCF SDI

BSF SCLK ;Bit16

BCF SCLK
CALL WAIT10
BCF SDI
CALL WAIT10
BSF CS_PGA ; Chipdeselcet

RETURN

of corse you can also make it nice and pretty with a loop...
  Reply With Quote
Old 27th April 2004, 02:34 AM   #5
diyAudio Member
 
xplod1236's Avatar
 
Join Date: Dec 2003
Location: On the couch
Send a message via AIM to xplod1236
I'm gonna try to use C. I dont know assembly, but I think I can figure out C. As for the pic, I was thinking about the 16f887a.
  Reply With Quote
Old 27th April 2004, 08:50 AM   #6
Banned
 
Join Date: Apr 2002
Location: Germany, Clausthal
We (Pieter and me) have this http://home.tu-clausthal.de/~tpa/space/IM002696b.jpg
device running, but firmware is made is assembly. To me it looks there is not much difference between assembly and high level languages on a MC, as most time you need to server hardware of the chip. Advantage is you are not involved in any compiler license and may distribute assembly code and binary free as you want on the net. Also a compiler is limited or does cost money. An assembler is not limited and for free.

Its also with 16F877A, i will put some information on it on my homepage in short time.
  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
Help needed with digital pots poodina Digital Line Level 0 30th March 2009 08:25 AM
Digital Pots Dynsdale Tubes / Valves 5 14th September 2005 04:02 AM
FS: heatsinks and OPA549 +opamps/digital pots needtubes Swap Meet 0 8th September 2004 07:26 PM
Digital Pots in 5.1 System abid_rehan Chip Amps 25 20th April 2004 08:07 AM
PCB For Digital Pots? PHilgeman Parts 0 23rd December 2003 12:50 PM


New To Site? Need Help?

All times are GMT. The time now is 11:16 AM.


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