diyAudio

diyAudio (http://www.diyaudio.com/forums/)
-   Parts (http://www.diyaudio.com/forums/parts/)
-   -   digital pots (http://www.diyaudio.com/forums/parts/33015-digital-pots.html)

xplod1236 27th April 2004 01:18 AM

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.

till 27th April 2004 01:23 AM

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, ...

xplod1236 27th April 2004 01:45 AM

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. :)

till 27th April 2004 02:01 AM

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...

xplod1236 27th April 2004 02:34 AM

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.

till 27th April 2004 08:50 AM

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.


All times are GMT. The time now is 02:37 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