Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

sine wave generator using 8051

Status
Not open for further replies.

eeHassan

Member level 2
Joined
Jan 28, 2011
Messages
52
Helped
0
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Lahore, Pakistan
Activity points
1,615
hey,
I want to generate a sine wave of 50HZ from microcontroller 89c51. Tell me the simplest circuit for it or any DAC that can do the operation easily
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071
I have used a MCP41010 single-channel digital potentiometer for generating sine waves up to 3KHz
MCP41010

it has an SPI interface so is easy to interface. Probably simpler and cheaper than a DAC ?
 

eeHassan

Member level 2
Joined
Jan 28, 2011
Messages
52
Helped
0
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Lahore, Pakistan
Activity points
1,615
yes but more simply......i prefer such a device by which i simply put 1 on a pin of my MC and it starts giving 50HZ sine....and when the pin is 0...it stops.....
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071
I think you will find all the signal generator chips cost more than the MCP41010 digital potentiometer which costs underr £2 for one off in the UK.
Perhaps have a look for simple circuit you could build - but it may still cost more than the digital pot.

try a search for PWM sine wave generation - never used it myself but people tell me it works
Pulse-width modulation - Wikipedia, the free encyclopedia
 

eeHassan

Member level 2
Joined
Jan 28, 2011
Messages
52
Helped
0
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Lahore, Pakistan
Activity points
1,615
okay MCP is the best method.........now how can i use it to generate a sine wave of 50HZ???can u give me the ckt?
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071
I have not used 8051 devices for years but an example circuit for a PIC16 taken from Microchip application note AN746
http://ww1.microchip.com/downloads/en/AppNotes/00746a.pdf

is attached.
the MCP41010 uses SPI so should be easy to interface, you have 3 lines clock, SI serial data in and CS chip select. If you search the forum you will probably find examples of 8051 and SPI devices plus code.
 

Attachments


Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top