JavaScript does not exactly sound like a microcontroller language.
Javascript is a turing complete language, what that means is there is nothing that any other language can do that Javascript cannot do (it just so happens that Javascript is directly built into the major browsers, can script a server, create offline apps, mobile apps, microcontrollers, etc.)
I don't know what JavaScript entails as I barely understand C myself however I'm pretty sure you could do some stuff in C.
The hassle of learning a whole new language when I already know a language is not worth the effort (especially if there are potential compensations for an increase in Htz). Imagine deciding to learn Japanese or Hungarian because it might save you one or two (relatively insignificant compared to everything that needs to be done) extra steps in filing some business document... it would be different if you'd move to that part of the world, but if you're just going to be doing the same thing you would have been doing anyways... just go with the extra step
The other thing I think you are missing is that any microcontroller will produce a square wave output where as usually you are controlling a motor with a sine wave. What is usually done is to approximate the sine wave with a varying duty square wave so that the average voltage of the PWM output represents the average sine wave voltages that you would otherwise supply the motor. This is why your variable frequency drives are not cheap, they are not necessarily simple.
Wouldn't it just be easier to programmatically control when some other voltage source will turn on and off that would be producing the proper signal for the motor? Either way, thanks for that tip, didn't realize there was this difference in wave forms... Also, is this true for DC motors or is it just for AC motors being controlled by a digital device? How is this approximation usually done? Is that just code within the micro or are there components that interpret the correct variations?
The other thing is if you are using the PWM capability of your microcontroller once this is set up through whichever language you choose it should run very efficiently as it is a separate hardware peripheral on the microcontroller chip so I'm not sure how the programming language is affecting its top frequency. A bloated programming language may mean that it takes you longer to alter the PWM duty but the frequency should be achievable.
Changing the frequency isn't a problem, but it's definitely not capable of getting up to that 72Mhtz like it claims it can, which is why I keep asking about it being possible to control another chip that does nothing but create these incredibly high frequencies... is that possible?
An operational amplifier or carry out any amount of operations as the name suggests on an analogue signal. You can use it to multiply or divide a signal or add signals together. Obviously the operational amplifier needs a power supply, the input impedance of an operational amplifier is theoretically infinite in reality it is still so high that you won't have to worry about it if you are controlling it from a microcontroller. Operational amplifiers are not usually designed to provide high current output they are mainly voltage amplifiers although there are many power amplifier chips which are essentially powerful operational amplifiers. But having said that they may not have the current capability you are looking for.
I'm not too familiar with impedence so I'll be reading that wikipedia tonight, but I know you said they're not suppose to provide current, but aren't you indirectly providing current when you provide Voltage... doesn't one come from the other through ohm's law?
If you are looking to use a H bridge then you probably don't need an operational amplifier. You will need for MOSFETs to end channel and 2 P channel MOSFETs.
I have a bunch of bipolar transistors in the mail and according to their datasheet, they're able to
Collector–Emitter Voltage VCEO 40 Vdc
Collector–Base Voltage VCBO 60 Vdc
Emitter–Base Voltage VEBO 6.0 Vdc
which seems like it would be more than enough for any DC motor I'm going to get my hands on any time soon, right?