|
How about write a polyphonic waveform generator using PWM. Square waves are easy, and you can approximate triangle, sawtooth and sine pretty efficiently using Bresenham line/circle algorithms. I've been planning to do something like this for a while but you could probably beat me to it!
|
# ¿ Nov 24, 2012 20:13 |
|
|
# ¿ Apr 30, 2024 08:17 |
|
Has anyone had any success with the USARTs on the STM32F05xxx? I'm trying to use my LaunchPad as a passthrough to USB, but I'm not sure if it's working or not. The TX pin will light up an LED when it's active, but connecting through puTTY doesn't show my test sequence. Don't know if it's the STM32 or the LaunchPad. Maybe I'll just get one of those USB<->UART cables that are $3 on eBay.
|
# ¿ Nov 30, 2012 04:31 |
|
movax posted:Do you have Tx->Rx set up properly? Should be crossed over, double-check the pin-names vs. what they actually are. Some people label their pins Tx and it's actually a receiver buffer where you hook up the external Rx line to it. I literally just got it working. The example code I borrowed from was testing for some flag to be set, I figured it was never getting set, so I took out the test and now it just happily spits out characters. I'll have to watch out for that in the future though! So fwiw, the LaunchPad (MSP-EXP430G2) can be used as a UART->USB converter if there's no chip installed. Now I just need to learn how to actually use the USART for more than just sending a test string.
|
# ¿ Nov 30, 2012 07:42 |
|
Maybe this one will have better documentation than the STM32F0-DISCOVERY. Of course the pins are ganged so you can't stick it in a normal breadboard. Looks like it'll take a bit more work out of the box.
|
# ¿ Nov 30, 2012 21:16 |
|
You can do the same thing with ripple counters as long as you're driving common cathode displays. I made a display for my LaunchPad using 74LS393s, then immediately forgot about it once I got an HD44780 LCD. It only needed 2 wires though (increment, reset) and some patience.
|
# ¿ Dec 3, 2012 08:11 |
|
Martytoof posted:I just realized TI sends out free samples of chips and such, so I picked up an MSP430 chip just to say I've played with one. Don't forget to buy a LaunchPad for less than five freaking dollars shipped so you can program it, also it comes with two of the value line chips. I'm guessing you might have some kind of programmer already though. Also be careful because a lot of the lowest-cost MSP430s just have a wimpy serial interface that only does SPI and I2C, so make sure it has UART/USCI if that's important to you.
|
# ¿ Dec 5, 2012 04:18 |
|
Arcsech posted:It's made (and therefore presumably documented by) Texas Instruments. If you think TI documentation is sparse you should check out ST's microcontroller docs. I had a much harder time figuring out STM32F0 versus MSP430 stuff.
|
# ¿ Jun 4, 2013 23:12 |
|
Delta-Wye posted:Their MSP430 stuff is good, and I've found their general IC stuff is okay. Their DSP and ARM documentation is not as nice in my experience. Ok, maybe this is just a common theme with ARM µC documentation. I'll have to see how the STM8 documentation measures up.
|
# ¿ Jun 4, 2013 23:49 |
|
|
# ¿ Apr 30, 2024 08:17 |
|
Pollyanna posted:Sounds interesting, but my Google Fu is failing me - I'm not sure what toolchain I should use, or how to write the files and everything. Seems like there's a lot of one-off options out there for OSX but no commonly agreed-upon answer, especially for something that seems relatively basic like assembly programming. A newbie's guide would be really helpful, especially if it's OSX-specific! I might also hunt down a book or something for some guidance... I'm at work right now so I can't reference much, but hit me up later and I'll try to find some of the info I used when I was hacking on the Nintendo DS Hint, arm assembly is really niche and there aren't really any in depth guides. I learned a lot by disassembling homebrew demos
|
# ¿ Jun 2, 2017 20:31 |