Go Down

Topic: Arduino Due Timer PWM Frequency change (Read 603 times) previous topic - next topic

Magician

@ Magician, thank you for your interest in my problem

For 6 DAC, it takes 3 Arduino Due, each card will manage

Question 1
1) How to control the DAC through direct management of ports and increasing the frequency to 1MHz without distorting the output voltage before I amplified by an operational amplifier?

Question 2
2a) Do you have feedback on the use of pin 34 (PWML0) and pin35 (PWMH0) taken as an example http://forum.arduino.cc/index.php?topic=325585.0
2b) Direct management of digital ports with delayMicroseconds (1) between Does the risk inversions generate for a moment during the 2 signals forward and backward together?
I wouldn't use more than one DUE, communication/synchronization  overhead would makes simple project over complex.

Put analog multiplexer at the arduino DAC output, and you will get as many DAC as you wish, with slower sampling rate, of course.

You may find an example of code to drive DAC at 1.6MHz here:http://forum.arduino.cc/index.php?topic=224672.0

I have no answer for second question, post another thread to get response from more knowledgeable people .

Tfou57

#16
Sep 15, 2016, 06:25 pm Last Edit: Sep 16, 2016, 12:42 am by Tfou57
@Magician

I wouldn't use more than one DUE, communication/synchronization  overhead would makes simple project over complex.

Put analog multiplexer at the arduino DAC output, and you will get as many DAC as you wish, with slower sampling rate, of course.
Multiplexer a DAC is similar to the multiplexing of other outputs?
Multiplexer un DAC est  similaire au multiplexage des autres sorties ?

Front of multiplex, my goal is to order already 2 DAC 12 bits with a sampling frequency that is important but reasonable to not create distortion of the signal output DAC0 and DAC1

Avant de multiplexer, mon but est de commander déjà 2 DAC 12 bits avec une fréquence d'échantillonnage importante mais raisonnable pour pas créer de distorsion du signal en sortie DAC0 et DAC1

Quote
You may find an example of code to drive DAC at 1.6MHz here:http://forum.arduino.cc/index.php?topic=224672.0
I admit, I looked at your example and "Glupps"... "I did not understand are work despite research...


I think that this example is for the creation of a sinusoidal signal.

In my use I would have a continuous signal of:
*    0.544V to a value of 0
*    1.65V for a value of 2048
*   2.75v to a value of 4095

J'avoue, j'ai regardé votre exemple et « Glupps … » je n'ai pas compris sont fonctionnent malgré des recherches…

Je pense que cet exemple concerne la création d'un signal sinusoïdal.
Dans mon utilisation j'aurais un signal continu de :
*   0,544V pour une valeur de 0
*   1,65v pour une valeur de 2048
*   2.75v pour une valeur de 4095


In my research I found this link that manages the DAC with direct access to the registers of the DAC

http://forum.arduino.cc/index.php?topic=198758.0

J'ai trouvé dans mes recherches ce lien qui gère les DAC avec un accès direct aux registres de la DAC

Question 1 :
Can you help me to increase this chunk of code in order to increase its sampling frequency while remaining in 12bits?
Question 2 :
Please also tell me how to get other frequencies if the signal a distortions as a result of verification to the oscilloscope.
Thanks for all the information you can give me!

Question 1 :
Pouvez-vous m'aider à augmenter ce bout de code afin d'augmenter sa fréquence d'échantillonnage tout en restant en 12bits ?
Question 2 :
Merci de m'indiquer également comment obtenir d'autres fréquences si le signal a des distorsions à la suite de vérification à l'oscilloscope.
Merci pour toutes les informations que vous prouvez m'apporter !



Magician


Tfou57

#18
Sep 15, 2016, 10:21 pm Last Edit: Sep 15, 2016, 11:14 pm by Tfou57
Q1. No.
Q1. No.
Where is the difficulty?
Will help to learn?
Do you have a suitable code I could study ?
Thank you

Magician

#19
Sep 16, 2016, 12:08 am Last Edit: Sep 16, 2016, 12:09 am by Magician
My analytical mind says, it's a waste of time to try to help you.  You are too far from the required level  for completing such project. Start from the beginning, like everyone does, blinking led. No offence mean.

Tfou57

My analytical mind says, it's a waste of time to try to help you.  You are too far from the required level  for completing such project. Start from the beginning, like everyone does, blinking led. No offence mean.
Too bad!

Thank you!

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy