|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| 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 |
|
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
diyAudio Member
Join Date: Sep 2004
Location: Everywhere
|
Hi,
I'm working on Bascom code to control a PGA2310, via an Atmega16, however my code cannot get it to work! According to TI, I have to clock data at the rising edge of SCLK. How do I implement this in Bascom? Does anyone have a piece of code to show me how this works? Here's mine: Totalvol = &H1111 Output_pga_cs = 0 Waitms 10 Output_pga_sclk = High Shiftout Output_pga_sdi , Output_pga_sclk , Totalvol , 0 , Null , 1000 Waitms 10 Output_pga_cs = 1 This was taken from a previous post. The aliases correspond to outputs (PortA). HIGH and LOW are constants (1=HIGH) Configuration: PortA.0 = CS PortA.1 = MUTE PortA.2 = ZCEN PortA.3 = SDI PortA.4 = SCLK The analog side was set up properly, however the scope shows no reaction when I feed data into the PGA2310. A simple 2-3 line code example would probably help me a lot. Thank you guys! Mike |
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PGA2310 & NE5532 get hot? | sergiusz | Digital Source | 10 | 20th December 2005 12:32 PM |
| PGA2310 and Bascom and ATMega8535 | simingx | Digital Source | 14 | 29th April 2005 02:50 PM |
| PGA2310 v PGA4311 | daArry | Digital Source | 1 | 12th April 2005 07:52 AM |
| my own pga2310 pre-amp :) | veteran | Digital Source | 22 | 31st August 2004 05:02 PM |
| CPLD vs. uC for PGA2310 | ajm8372 | Solid State | 6 | 20th January 2004 10:40 PM |
| New To Site? | Need Help? |
| Page generated in 0.05803 seconds (67.46% PHP - 32.54% MySQL) with 10 queries |