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.

[PIC] Send controll word to AD9850 MikroC

Status
Not open for further replies.

anishpsla

Member level 2
Joined
Dec 15, 2013
Messages
44
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
402
How to send 40bit control word - parallel mode - to AD9850 using PIC16F877 and MikroC. I complete the code till calculating the control word. I have no idea in how to send the control word to AD9850.
 

How is the DDS connected to the PIC? I wire mine through the SPI bus. You would then send the 5 bytes using the SPI module.
 
AD9850 have SPI bus ? I am using PORT B to send the control word in 5 iteration. But how to send it ?
 
Last edited:

It is SPI device and you can use software SPI. Just make a function with a loop which sends a byte, 1 bit at a time. Use this function to send as many bytes you need.

Mention how data is sent..i.e., whether MSB is sent first or LSB.
 
But the datasheet have no information about SPI interface. Did you have sample circuit/Code, if so please post it. It will really help me.
 

You can use parallel load or serial load. Parallel load requires 8 lines to transfer data and serial load method requires 1 pin of MCU to connect to pin 25 of DDS chip. Use serial load method. MSB is sent first. send bit like 39, 39, .....1, 0. For serial load you only need 3 pins of MCU.
 
OK, I already developed the circuit you described. Now I need Mikro C program sample for the same.
 

A lot of codes are available for AD9850 at epudn.com. Search for it and try to port it to mikroC.
 
Nothing find on that site only getting apache default page.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top