Oscilloscopes needed? - Page 1
Forum section: electronics / beginners

author: zerorisers
author_rank: Regular Contributor
timestamp: September 23, 2015, 01:32:09 pm
content: Hey guys zerorisers here, I have been attempting to program an MSP430 using only Texas Instruments samples. But I have been wanting to make sure I had the pin-out of my comport correct. I am horrible at reading pin-outs and getting everything correct, it took me three tries and Im still not sure.(Massive ADD) is there any kind of measurements I can do to make sure I have the pin-out correct? or do I just have to connect everything up in hopes I have it correct?(I own a multi-meter, ummmm... Yea that's the only piece of test equipment I own.)

author: LA7SJA
author_rank: Regular Contributor
timestamp: September 23, 2015, 02:47:45 pm
content: Not to much information, I don't think anyone would even try to help you before they understand what you are trying to do with what hardware. I do not understand the term 'Texas Instruments samples', is this a sample board, chip or development board or?Johan-Fredrik

author: zerorisers
author_rank: Regular Contributor
timestamp: September 23, 2015, 03:32:14 pm
content: Quote from: LA7SJA on September 23, 2015, 02:47:45 pm"Texas Instruments samples" is a term for chips that TI will give out for free to students. MAX-232, SN60400, and TPS60400QDBVRQ1 are chipsI have ordered from TI in order to program the MSP430 off of a COM port. My main question is how do I make sure that I have the pin-out of the COM port correct, as the main port is just pin headers on the motherboard I have brought over to the RS-232 connector.

author: Orange
author_rank: Frequent Contributor
timestamp: September 23, 2015, 03:36:02 pm
content: Why do you post this in testequipment, with a silly Oscilloscopes title ?

author: zerorisers
author_rank: Regular Contributor
timestamp: September 23, 2015, 03:40:30 pm
content: Quote from: Orange on September 23, 2015, 03:36:02 pmTo see wether or not I would need an oscilliscope to do this. I have software on my computer to pumpdata out of the COM port so I may be able to see the data output with an oscilliscope (if I had one) and was wondering if there was any way I could test this without one, or if there is a particular bandwidth oscilloscope that I may need.

author: krivx
author_rank: Frequent Contributor
timestamp: September 23, 2015, 03:45:59 pm
content: I find the best way to avoid wiring errors is to draw a diagram on paper.

author: zerorisers
author_rank: Regular Contributor
timestamp: September 23, 2015, 03:54:54 pm
content: Quote from: krivx on September 23, 2015, 03:45:59 pmIt is already put together and I have burned myself 5 different times trying to do so. (nothing to hold it still so i usually use my knees to hold stuff like my soldering iron.) I am hoping not to do that again.I have had to make do a custom wiring job that I will take pictures of later today, as right now I am in school.

author: Performa01
author_rank: Super Contributor
timestamp: September 23, 2015, 04:02:49 pm
content: Pretty much any electronics project will benefit from an oscilloscope for analysis & debugging purposes.As you're mentioning a COM port, a serial protocol analyzing function (for UART) would be helpful. Many scopes and all logic analyzers can do this. For scopes it's usually an option at additional cost. An USB logic analyzer would be the cheapest solution, and pretty handy for digital stuff anyway, but you might still want a scope on top of that, once you're starting real projects with the MSP430.There are also mixed signal scopes (MSO) that combine analog and digital channels, hence can act as a substitute for a logic analyzer to a certain degree. But as I stated before, if a scope supports serial decoding, it will do it on the analog channels as well, so the mixed signal option isn't really necessary if you only want to check an UART or TWI bus every now and then.

author: zerorisers
author_rank: Regular Contributor
timestamp: September 23, 2015, 04:05:33 pm
content: Quote from: Performa01 on September 23, 2015, 04:02:49 pmAlright well I guess I will start looking on craigslist, and hope I can find something under $50 to start with.

author: Howardlong
author_rank: Super Contributor
timestamp: September 23, 2015, 04:10:44 pm
content: I used to debug this kind of stuff with an LED+resistor, watching for a change in brightness when transmitting characters. A multimeter can be used too, measure the voltage and see if it dips when you continually transmit characters.These days, yes, I'd use a scope, because it's set up and ready to go on the bench, but I developed and debugged far more complex things with just an LED and analogue multimeter for many years, the trick is learning for yourself what can be expected and achieved with such simple tools.

author: Performa01
author_rank: Super Contributor
timestamp: September 23, 2015, 04:20:05 pm
content: Yes, for just monitoring if _something_ is going on, you can probe the RXD/TXD lines with the DMM in ACV mode - provided, the meter has sufficient bandwidth, which would be a problem with cheap DMMs.One more thing - do you try to interface the MCU directly to the COM port of a PC? I just want to make sure you are aware that the UART interface on the MCU is TTL, whereas the COM port on a PC is RS232. Even though the standard COM ports on a PC usually are TTL compatible to a certain degree, the voltage level will probably be too high for a MCU, especially if it runs on less than 5V rails. The usual solution would be an RS232 transceiver like MAX232 or one if its low voltage derivatives, but if you count on the TTL compatibility of the COM port, you would need at least some protection circuit to limit the voltage on the MCU port pins. Also serial ports on extension cards and USB to RS232 adaptors tend to _not_ have the before mentioned TTL compatibility.

author: zerorisers
author_rank: Regular Contributor
timestamp: September 23, 2015, 04:29:49 pm
content: Quote from: Performa01 on September 23, 2015, 04:20:05 pmI will be using a MAX232 for this application (couldnt find it in a DIP format for some odd reason... no chip I try to get from TI seems to have any DIP format and is all surface mount with pins really close together.) so I want to check everything before I plug it in as it was a pain to put together. But I will try the LED method, and hope that works to check the few pins I need.

author: LA7SJA
author_rank: Regular Contributor
timestamp: September 23, 2015, 05:58:52 pm
content: If you just want to monitor/check 3.3v/5V ttl "RS232" you could use thishttp://dangerousprototypes.com/docs/Bus_Pirate, mine came fromhttp://www.seeedstudio.com/depot/Bus-Pirate-v36-universal-serial-interface-p-609.htmland I was so happy with it that I got thishttp://www.seeedstudio.com/depot/Bus-Pirate-v36-acrylic-case-v1-DP6037-p-1229.htmlthis was my main embedded debuging tool for a very long time.Johan-Fredrik

author: jlmoon
author_rank: Unknown
timestamp: September 23, 2015, 06:21:45 pm
content: Quote from: Orange on September 23, 2015, 03:36:02 pm"TestEquipment"? I'm confused. Last time I checked this guy posted in the 'Beginners' section. Which he obviously is.

author: GreyWoolfe
author_rank: Unknown
timestamp: September 23, 2015, 06:58:21 pm
content: Quote from: zerorisers on September 23, 2015, 04:05:33 pmNot sure how many channels or how much bandwidth you need, but I got one of these to play with:http://www.ebay.com/itm/New-Set-USB-Logic-Analyzer-Device-USB-Cable-24MHz-8CH-24MHz-for-ARM-FPGA-/291457642276?hash=item43dc3aaf24It works with the Saleae software.

author: alsetalokin4017
author_rank: Super Contributor
timestamp: September 23, 2015, 07:42:13 pm
content: Didn't the OP just ask for the pinout of the COM port? I think that it might take more than a few posts here for him to sort out the pinouts by probing with a multimeter, an LED or even an oscilloscope.....Would it be out of place to suggest that he simply google "COM port pinout" and look at the images displayed?But does his computer even have a proper serial port connector? Nowadays pretty much everything is done over USB, isn't it?Somehow I doubt that working with SMDs on one's lap with a soldering iron between the knees is going to work out too well. And 50 dollars isn't going to buy much of an oscilloscope, when a pair of barely usable probes will cost 25 dollars or more.

author: SkyMaster
author_rank: Frequent Contributor
timestamp: September 24, 2015, 03:51:33 am
content: Quote from: zerorisers on September 23, 2015, 03:40:30 pmIn the early '90s, I was programming 68hc11 without having access to an oscilloscope in my home lab. I did a lot with only a DMM and a homemade Power Supply.So no, you do not need an oscilloscope in order to figure out how to upload the code to a microcontroller.

author: zerorisers
author_rank: Regular Contributor
timestamp: September 24, 2015, 02:04:45 pm
content: Quote from: alsetalokin4017 on September 23, 2015, 07:42:13 pmIt has the port directly on the motherboard, I am using no USB/serial converters. But no time when I googled the pin-out did I find a picture in a more 3D esk style. That will help a lot. Using the LED method I know there is a constant signal on pin 3 even when I am not sending anything.That one picture does help quite a bit as just some dots in an arrangement doesn't tell me what direction it is facing, and I get confused easy.(I can somehow troubleshoot the video on a FLIR board but I cant do this, Its the simple things that trouble me)So if I where to get an oscilloscope ( I have used higher end ones from keysight through some seminars) where would be the place to find one cheap with serial decoding?

author: smbaker
author_rank: Regular Contributor
timestamp: September 24, 2015, 03:42:14 pm
content: Quote from: zerorisers on September 24, 2015, 02:04:45 pmHave you considered setting the baud rate to something really low, like 300 baud? That might give you a better shot at visually verifying which pin has the transmit data on it.Another thing I'd check is to make sure that you're sending on the right serial port. Your motherboard could have unconnected serial port headers and you could be inadvertently talking to one of those instead of the port you think you are. Some programming libraries number parts starting at 0, some number them starting at 1. That's happened to me before, when I've wasted time debugging a circuit only to realize I'm not talking to the right port.Also, you could consider building a logic probe (before I had a scope, I had a DIY logic probe built out of some commodity logic (probably a hex inverter) and a LED and a resistor) and poking around the logic side of the serial converter of the device you're interfacing to.Quote from: zerorisers on September 24, 2015, 02:04:45 pmDepends on what you mean by 'cheap'. I have a Rigol DS1054Z on order, which seems like a phenomenal value, like the DS1052E I had before that. I've used a scope to diagnose digital circuits before, to sanity-check that I had something connected right, and I've never needed serial decoding -- I just needed to see that there was pulses where I thought pulses should be.

author: Howardlong
author_rank: Super Contributor
timestamp: September 24, 2015, 03:57:30 pm
content: Quote from: zerorisers on September 24, 2015, 02:04:45 pmYou need to either switch the LED around and/or notice a difference in brightness when sending a continual stream, or be able to notice some tiny pulses, when sending odd characters from the keyboard. I'd drop your baudrate down to 9600 or so to at least you stand a chance when trying to "see" odd characters sent from your keyboard. It's not hard, just having some experience of doing it for five minutes will be enough.Quote"Cheap": depends on how long your piece of string is, and how much you're willing to compromise. What is your definition of cheap?

author: alsetalokin4017
author_rank: Super Contributor
timestamp: September 24, 2015, 08:54:14 pm
content: If you give the manufacturer and part number of the motherboard, it might be possible to look it up and find the actual connector pinout from data on the internet.To see an LED flashing visually it is going to have to flash at less than 30 Hz.

author: Howardlong
author_rank: Super Contributor
timestamp: September 24, 2015, 09:02:32 pm
content: Quote from: alsetalokin4017 on September 24, 2015, 08:54:14 pmNope, 9600 is reasonably visible one character at a time, but that has to be from off to on, not on to off. Try it.Edit: these were common currency2015 years ago (before reliable USB).