Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Dac spi code for amc7812

Status
Not open for further replies.

ragi

Junior Member level 3
Joined
Nov 18, 2015
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
251
Hello everyone,

I want to generate a sine wave signal from AMC7812 DAC 24bit device. I am giving inputs to dac through spi code. To wake this device up "6B 7F FE" code must be sent and further data serially. I am able to write only one time to 24 bit register of DAC. That is device is up when I send first 24bit , but it is not responding for 2nd bit frame ( Currently I am trying to send only two 24bit data frame).

I am using pic18f24k22 controller as master to send inputs to DAC using spi protocol.

Can any one tell how to solve this problem???

Please find the attached code written to send two 24bit data frame using pic spi.

View attachment spi_master_dac.txt

Thank you in advance
 

Hi,

what do you mean with: "but it is not responding for 2nd bit frame "?

Please give a detailed error description.


Kaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top