Go Back   Home > Forums > Source & Line > Digital Source
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

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
Reply
 
Thread Tools Search this Thread
Old 28th April 2005, 12:11 PM   #1
mlihl is offline mlihl  United Kingdom
diyAudio Member
 
Join Date: Sep 2004
Location: Everywhere
Question PGA2310 Atmega16 + Bascom

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
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
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?

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

Page generated in 0.05803 seconds (67.46% PHP - 32.54% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio