Digital potentiometer & Bascom - diyAudio
Go Back   Home > Forums > Amplifiers > Chip Amps

Chip Amps Amplifiers based on integrated circuits

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 23rd May 2011, 09:42 AM   #1
axhan is offline axhan  Belgium
diyAudio Member
 
Join Date: May 2011
Default Digital potentiometer & Bascom

Hello,

I am working on a simple volume control with a digital potentiometer using a PGA2310PA, an ATMEGA48 and Bascom (SPI communication). My problem is very simple, I can't get anything from the PGA2310. I've tried all the combinations with config SPI (phase = 0/1, polarity High/Low, ...), but nothing came out.

Config Spi = Hard , Interrupt = On , Data Order = Msb , Master = Yes , Polarity = Low , Phase = 0 , Clockrate = 4 , Noss = 0

I'm sending the volume as following :

Vol = 224
Reset Cs
Waitms 1
Spiout Vol , 1
Spiout Vol , 1
Waitms 1
Set Cs

I don't understand why it doesn't work.
Would someone have examples how to use a PGA2310PA with bascom ?

That would be great !

Thanks

A
  Reply With Quote
Old 26th May 2011, 06:46 PM   #2
diyAudio Member
 
Join Date: May 2008
Mute pin?
__________________
If you've always done it like that, then it's probably wrong. (Henry Ford)
  Reply With Quote
Old 3rd June 2011, 06:45 PM   #3
diyAudio Member
 
jash2008's Avatar
 
Join Date: Sep 2008
Location: MP
Quote:
Originally Posted by axhan View Post
Hello,

I am working on a simple volume control with a digital potentiometer using a PGA2310PA, an ATMEGA48 and Bascom (SPI communication). My problem is very simple, I can't get anything from the PGA2310. I've tried all the combinations with config SPI (phase = 0/1, polarity High/Low, ...), but nothing came out.

Config Spi = Hard , Interrupt = On , Data Order = Msb , Master = Yes , Polarity = Low , Phase = 0 , Clockrate = 4 , Noss = 0

I'm sending the volume as following :

Vol = 224
Reset Cs
Waitms 1
Spiout Vol , 1
Spiout Vol , 1
Waitms 1
Set Cs

I don't understand why it doesn't work.
Would someone have examples how to use a PGA2310PA with bascom ?

That would be great !

Thanks

A
hi,
i am also working on the same topic. would you please share the connection of atmega with pga.

may be i could help further.

thanks
  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
INA 103 and digital potentiometer usul27 Analogue Source 4 12th May 2011 10:50 AM
Digital potentiometer with readout Peter Roodzant Solid State 8 23rd November 2008 03:45 PM
Digital Potentiometer hernanstafe Parts 1 24th April 2007 03:36 AM
digital potentiometer/trimmer ? ZERS Parts 3 31st January 2005 04:37 PM
Digital potentiometer as volume control Bricolo Solid State 15 29th January 2003 09:32 PM


New To Site? Need Help?

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