Electronics > Beginners

Beginner Components?

<< < (13/19) > >>

JacobEdward:

--- Quote from: Simon on February 24, 2015, 09:22:02 pm ---Actually no, you have continually asked the same questions despite being given answers because they were not the answers you wanted. Like any other member my patience has a limit.

--- End quote ---

If you could copy / paste the answer to the question of if it's possible to connect an external ARM chip to a microcontroller and use the other chip as a 50MHtz signal generator (if you want to think of it that way), that would be great.

Zero999:

--- Quote from: JacobEdward on February 24, 2015, 08:24:49 pm ---
--- Quote from: Simon on February 24, 2015, 08:11:16 pm ---
--- Quote from: JacobEdward on February 24, 2015, 08:07:48 pm ---
--- Quote from: Simon on February 24, 2015, 08:05:57 pm ---Your going about it the wrong way, there are numerous factors that make up an inductor: inductance, max current, self resonant frequency, resistance and I'm sure more, you can't just buy a few parts and expect to plug them into a circuit, design your circuit, work out what inductor you need and then get it.

--- End quote ---

I'm sure, but I'm still going to verify it empirically before I start memorizing crap out of a book... now if you know of a cheap part I can use to experiment with, that would be great.


--- End quote ---

Any part will do then, just grab something and experiment with it, say 100 uH.

We still don't know what signals your trying to produce, if you want 50MHz 50% duty then maybe but if your doing PWM then there is no straight answer. You insist on taking the easy route to program and that gets you no control over your hardware. You can use an 8MHz MCU to control a motor at 10'000 rpm........ you need to learn about the MCU hardware, MCU's are not computers, you can't relay on a virtually limitless processing resource.

--- End quote ---

Could you explain the difference between PWM and 50MHz with a 50% duty cycle?

It's definitely not the easy route to program, it's just I've already invested the time to learn a programming language and I'm not interested in learning another language when I already have a microcontroller that I know how to program... sorry if people don't like that it's possible to do this in languages other than C or assembly, but my microcontroller is fully capable of doing anything any other microcontroller is capable of doing apart from generating a 50Htz signal... which is why I'm asking this question, but after about 5 times I still haven't got a straight forward response...

--- End quote ---
JavaScript is a perfectly reasonable way to get into MCUs. Many other people here have started programming MCUs in other languages than C or assembly. BASIC is another common language which is supported by MCUs (remember using that Simon?). At some point you'll probably discover something you can't do in JavaScript and will need to learn C though.

Hz is a unit of frequency, which is the repetition rate. The period is the length of time it takes for a waveform to repeat itself and is equal to 1/frequency.

Duty cycle is how long the square wave is high vs how long it's low. A square wave with a frequency of 1Hz and a duty cycle of 50% will be high for half second and low for half a second.  A square wave with a frequency of 1Hz and a duty cycle of 25% will be high for 0.25s and low for 0.75s. In both cases the period will be 1 second.

Simon:
The correct answer is that you don't have a clue what your doing, if one arm chip running on java can't do it why should any other ? It's not about processing capacity. Have you read the chips datasheet, do you know at what frequency you can clock the counters and what resolution of PWM you want and more importantly what resolution of PWM you need to set.

Max frequency = clock frequency / resolution of PWM in bits

So say you have 8MHz clock with no pre-scaler and you want 8 bits of resolution or 256 PWM levels that means your maximum PWM output is 31.25 KHz

Do you understand how MCU counters and PWM output pins work ?

Simon:

--- Quote from: Hero999 on February 24, 2015, 09:39:07 pm ---
--- Quote from: JacobEdward on February 24, 2015, 08:24:49 pm ---
--- Quote from: Simon on February 24, 2015, 08:11:16 pm ---
--- Quote from: JacobEdward on February 24, 2015, 08:07:48 pm ---
--- Quote from: Simon on February 24, 2015, 08:05:57 pm ---Your going about it the wrong way, there are numerous factors that make up an inductor: inductance, max current, self resonant frequency, resistance and I'm sure more, you can't just buy a few parts and expect to plug them into a circuit, design your circuit, work out what inductor you need and then get it.

--- End quote ---

I'm sure, but I'm still going to verify it empirically before I start memorizing crap out of a book... now if you know of a cheap part I can use to experiment with, that would be great.


--- End quote ---

Any part will do then, just grab something and experiment with it, say 100 uH.

We still don't know what signals your trying to produce, if you want 50MHz 50% duty then maybe but if your doing PWM then there is no straight answer. You insist on taking the easy route to program and that gets you no control over your hardware. You can use an 8MHz MCU to control a motor at 10'000 rpm........ you need to learn about the MCU hardware, MCU's are not computers, you can't relay on a virtually limitless processing resource.

--- End quote ---

Could you explain the difference between PWM and 50MHz with a 50% duty cycle?

It's definitely not the easy route to program, it's just I've already invested the time to learn a programming language and I'm not interested in learning another language when I already have a microcontroller that I know how to program... sorry if people don't like that it's possible to do this in languages other than C or assembly, but my microcontroller is fully capable of doing anything any other microcontroller is capable of doing apart from generating a 50Htz signal... which is why I'm asking this question, but after about 5 times I still haven't got a straight forward response...

--- End quote ---
JavaScript is a perfectly reasonable way to get into MCUs. Many other people here have started programming MCUs in other languages than C or assembly. BASIC is another common language which is supported by MCUs (remember using that Simon?). At some point you'll probably discover something you can't do in JavaScript and will need to learn C though.

Hz is a unit of frequency, which is the repetition rate. The period is the length of time it takes for a waveform to repeat itself and is equal to 1/frequency.

Duty cycle is how long the square wave is high vs how long it's low. A square wave with a frequency of 1Hz and a duty cycle of 50% will be high for half second and low for half a second.  A square wave with a frequency of 1Hz and a duty cycle of 25% will be high for 0.25s and low for 0.75s. In both cases the period will be 1 second.

--- End quote ---

except someone seems to think he can work in the abstract layer of a language without any hardware understanding of the MCU hence the types of questions. The same would be valid for someone with C programming skills on a PC expecting to use an MCU with no appreciation for the hardware platform and thinking that does not matter and welcome to the arduino which is where i started in C but soon needing to have more control and understanding of the hardware I moved to native C. sure I've used basic, and how long did that last ? as long as it took me to find out that the IDE I was using was not much good and there was very little support for basic outside of that particular software i used. How much support is there for java on MCU's ?

Zero999:

--- Quote from: JacobEdward on February 24, 2015, 09:37:58 pm ---
--- Quote from: Simon on February 24, 2015, 09:22:02 pm ---Actually no, you have continually asked the same questions despite being given answers because they were not the answers you wanted. Like any other member my patience has a limit.

--- End quote ---

If you could copy / paste the answer to the question of if it's possible to connect an external ARM chip to a microcontroller and use the other chip as a 50MHtz signal generator (if you want to think of it that way), that would be great.

--- End quote ---
There's no simple answer to that question because you haven't provided enough information.

What do you mean by 50MHz signal?

Is it a sine wave, triange wave or squarewave?

The answer is yes, it is possible to connect another IC to a microcontroller and use it to generate a signal.
http://www.analog.com/media/en/technical-documentation/data-sheets/AD9851.pdf
http://www.analog.com/media/en/technical-documentation/data-sheets/AD9835.pdf

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod