Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 01, 2024, 05:25:37 05:25


Login with username, password and session length


Pages: [1]
Print
Author Topic: 2 Phase Sine Generator with pic16F877  (Read 6516 times)
0 Members and 1 Guest are viewing this topic.
sombre
Guest
« on: May 16, 2006, 11:24:30 11:24 »

hello everybody,
Did someone have experience in 2 Phase Sine Generator with pic16F877
please help!!!! (any book, any datasheet, any url in relation with the topic, or any program)?
Logged
ares
Guest
« Reply #1 on: May 18, 2006, 06:54:15 18:54 »

ne icin yapmayı düşÃ¼nüyorsun koltet motoru mu calıştıracaksın....!!!!!!
Logged
sombre
Guest
« Reply #2 on: May 22, 2006, 04:20:32 16:20 »

Don't understand what you mean!!
Can you speak english?:confused:
Logged
evc
Guest
« Reply #3 on: May 23, 2006, 02:54:46 14:54 »

If you want somebody to help ya, please give some more info! What is the frequency, what is the phase  offset between two sine waves you have to produce, did they have to be synchronous or not and so on ...
Logged
sombre
Guest
« Reply #4 on: May 24, 2006, 08:31:44 08:31 »

Quote from: evc
If you want somebody to help ya, please give some more info! What is the frequency, what is the phase  offset between two sine waves you have to produce, did they have to be synchronous or not and so on ...


The frequency are : 1HZ, 10HZ, 100Hz, 1KHz, 10KHZ, 100KHZ
I should have the possibility to change frequency in my program, and generate the signal after theses changes.
The two sine waves should have the same frequency, but not the same phase (a difference of Pi/2)
I hope it's enough clear
thanks by advance
Logged
evc
Guest
« Reply #5 on: May 25, 2006, 06:44:45 06:44 »

16F877 @20Mhz -> 200ns per cycle. If you want to perform 100kHz you will have only 10,  max 14 points for period. If its enough for you, then make a table and perform table read upon interrupt on timer. To achieve two sine waves, fastest way is to make table for two periods of the sine wave, and when read it, for seccond output to use offset of Pi/2. Any way you will have to use parallel output (there is no machine time for serial) and R-2R matrix. Another posibility is to use something like AD9832.
Logged
sombre
Guest
« Reply #6 on: May 28, 2006, 02:18:35 14:18 »

thank you very much evc!
But the problem is; how to do to estabilish those tables, is there any mathematic relation that provide the values of the tables?
10x by advance
Logged
sombre
Guest
« Reply #7 on: May 28, 2006, 05:57:44 17:57 »

i forget to mention that i use 16f877 20MHz also

thanks again!
Logged
sombre
Guest
« Reply #8 on: May 29, 2006, 04:18:33 16:18 »

ok! now i've made the two tables, but i've only 1KHz as mximum frequency!
please help!
Logged
evc
Guest
« Reply #9 on: May 30, 2006, 06:24:17 06:24 »

To acheive maximum frequency you must write the module which outputs the table contents on DAC in assembler! Flowchart something like this:
Interrupt on timer -> increment table pointer -> read table -> put the result on PORTD (for example).
Logged
sombre
Guest
« Reply #10 on: May 30, 2006, 08:19:16 08:19 »

thnaks evc i very appreciate!
I use basic proton ide.
i use the PWM to generate the sine wave. (i change the duty...)
any help to have more than 1KHZ?
Logged
sombre
Guest
« Reply #11 on: June 08, 2006, 09:23:41 09:23 »

Thank you guys problem solved!
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC