On the surface, your algorithm makes sense for what you're doing.
As for help writing the code, if you need help with that you need to work on
the specific language you're having problems with. I think the purpose of
this group is to work out processor specific issues, not general programming
ones.
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of huiyangdoh
Sent: Sunday, December 09, 2007 6:25 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Re: 4X DAC Design using Atmega16 and AD7528 IC
I have come out with the exact schematic and algorithm for DAC
program using AD7528. Assume you connect to the following:
1. 8 x bit Data input you can connect to all of Atmega Port D,
2. For CS, DAC A/B & WRITE, you can connect to Port C [pin 0, 1,
2] respectively,
For algorithm,
1. Set All of Port D to output mode, and
2, Port C [0,1,2] also to output mode and set to high.
3. To Write data ,
- Write 8 output data to Port D,
- Select DAC A/D, by write 1 bit data to Port C1,
- Bring CS pin to low by write '0' to Port C0,
- Bring WRITE pin to low by write '0' to Port C2.
after that you bring the WRITE & CS pin to high by
Write '1' to Port C2, and write '1' to Port 0.
Any idea on the actual code?
--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@...> wrote:
>
> At 08:18 PM 9/12/2007, you wrote:
> >11 ports lines of Atmega16 where PortC0-PortC7
> >would be input to the 8-bit parallel AD7528 chip
>
> If you can avoid the use of portc2-portc5 for the chip,
> then you will have the JTAG port available for debugging
> or programming without too much messing around.
>
>
> Regards
>
> John Samperi
>
> ********************************************************
> Ampertronics Pty. Ltd.
> 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
> Tel. (02) 9674-6495 Fax (02) 9674-8745
> Email: john@...
> Website http://www.ampertronics.com.au
> *Electronic Design * Custom Products * Contract Assembly
> ********************************************************
>
Yahoo! Groups Links
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.0/1180 - Release Date: 12/10/2007
2:51 PMMessage
RE: [AVR-Chat] Re: 4X DAC Design using Atmega16 and AD7528 IC
2007-12-10 by Philippe Habib
Attachments
- No local attachments were found for this message.