diyAudio

diyAudio (http://www.diyaudio.com/forums/)
-   Chip Amps (http://www.diyaudio.com/forums/chip-amps/)
-   -   Digital potentiometer & Bascom (http://www.diyaudio.com/forums/chip-amps/189506-digital-potentiometer-bascom.html)

axhan 23rd May 2011 09:42 AM

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

pacificblue 26th May 2011 06:46 PM

Mute pin?

jash2008 3rd June 2011 06:45 PM

Quote:

Originally Posted by axhan (Post 2580924)
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


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