View previous topic :: View next topic |
Author |
Message |
jodank
Joined: 22 Apr 2014 Posts: 49
|
Posted: Thu Apr 06, 2017 11:38 pm Post subject: How to make a frequency sweeper? |
|
|
Hi!
I need some help to do this project:
I need to make a frequency sweeper with 5V square wave output duty cycle 50%,
effective frequency range from 50kHz to 50Hz .
Can I do this with the tone function or should I use a timer or what would be the best solution?
I would use some Attiny2313 or 85 maybe I think I have on stock.
Some example code would be great for start.
Thanks in advice.
My best regards.
(BASCOM-AVR version : 2.0.7.5 , Latest : 2.0.7.8 ) |
|
Back to top |
|
|
wieczus
Joined: 11 Apr 2006 Posts: 18
|
Posted: Fri Apr 07, 2017 7:49 pm Post subject: |
|
|
Hello,
Are you trying to develop a TMS 374 based ECU unlocker?
Thomas |
|
Back to top |
|
|
jodank
Joined: 22 Apr 2014 Posts: 49
|
Posted: Fri Apr 07, 2017 9:09 pm Post subject: |
|
|
Hi Thomas!
Yes, but I will integrate some other function too to that tool and the major problem is
this sweeping stuff.
Thanks for any advice. |
|
Back to top |
|
|
JC
Joined: 15 Dec 2007 Posts: 584 Location: Cleveland, OH
|
Posted: Sat Apr 08, 2017 2:33 am Post subject: |
|
|
No where near enough information.
How fast does the sweep take?
1 Sec, 10 Sec, 0.1 Sec?
Does it sweep once, or repeat?
Does it wrap around, or sweep up, then down, then up...?
How precise must the 50% duty cycle be?
+/- 1%, +/- 1 uSec, etc?
How large an the frequency steps be?
1 Hz? 10 Hz, 10% of current frequency?
Can there be discontinuities in the signal when the frequency changes?
Lots of questions!
Clearly more info is needed.
JC |
|
Back to top |
|
|
wieczus
Joined: 11 Apr 2006 Posts: 18
|
Posted: Sat Apr 08, 2017 11:00 am Post subject: |
|
|
jodank wrote: | Hi Thomas!
Yes, but I will integrate some other function too to that tool and the major problem is
this sweeping stuff.
Thanks for any advice. |
Email me priv. Will try to help you.
Thomas |
|
Back to top |
|
|
jodank
Joined: 22 Apr 2014 Posts: 49
|
Posted: Sat Apr 08, 2017 3:20 pm Post subject: |
|
|
[quote="wieczus"] jodank wrote: |
Email me priv. Will try to help you.
Thomas |
Sorry but "Private messaging has been disabled on this board."
I can not contact you pm. |
|
Back to top |
|
|
jodank
Joined: 22 Apr 2014 Posts: 49
|
Posted: Sat Apr 08, 2017 3:35 pm Post subject: |
|
|
JC wrote: | No where near enough information.
Lots of questions!
Clearly more info is needed.
JC |
Quote: |
How fast does the sweep take?
1 Sec, 10 Sec, 0.1 Sec? |
- the sweep takes around 90sec
Quote: | Does it sweep once, or repeat?
Does it wrap around, or sweep up, then down, then up...? |
- sweeps onece
- sweeps down from lets say 10KHz to 100Hz
Quote: | How precise must the 50% duty cycle be?
+/- 1%, +/- 1 uSec, etc? |
- must not be precise, maybe +/- 5%
Quote: | How large an the frequency steps be?
1 Hz? 10 Hz, 10% of current frequency? |
- lets say 10Hz/steps
Quote: | Can there be discontinuities in the signal when the frequency changes? |
- no discontinuity allowed. |
|
Back to top |
|
|
|