Phil King, and it's 8-Bit Redux Microcontroller Hacking. There's a few things I just need to say up front. I apologize if my demeanor is a little strange. My laptop sucks in more ways than I can possibly relate, so I'm actually going to be working off the same screen you're looking at. If this seems a little odd, I apologize. But to give you an idea of what's going on, who am I? I'm Phil King, and specifically I'm a hardware engineer right now who does a lot of embedded systems development. Specifically, I'm working on IR wireless networking at a place called NetSchools. I've also been a game developer and a hardware enthusiast for at least 10 years now, and hopefully what you're going to get out of this is some of the fun that I've had with 8-bit system development. Who are you? To be getting anything particularly useful out of this, I sort of tried to develop a profile. You know the basics of electronics and electronic logic. This is why I ended up in the Uber Hexer track, just a prerequisite that you are at least familiar with some of the basic terms. You know how to code, preferably in assembly language, for reasons I'm going to get to in a little more detail later. You believe that 1K is actually useful space. It is surprising how much you can do in 1K. It's surprising how few people do it anymore. But as I'll get into the architecture of some specific examples, 1K is usually enough to do almost anything you want to do with an 8-bit embedded controller. Presumably you've built more software than hardware, which is hopefully why you're here to get something out of my talk. And you know you could do this stuff if you could just get started. And that's what I'm primarily hoping to do, is direct you to get yourself set up. You have a small development environment, a lab, so you can play with this stuff. Basically I'll cover what are microcontrollers, how to set up your lab, how to get some parts once you know what you want to be developing, some basic rules of thumb for building and debugging, an example project, which I will just give a cursory overview of, and the traditional inspirational message that has to go at every talk. Things I won't be covering. You will not see a lot of architectural specific details. Anything that comes off a datasheet, you can look up yourself, and you don't need me reciting. There are literally thousands of different variations of microcontrollers, and what you specifically need is going to depend on your application. I also will avoid religious arguments, which are usually tightly coupled to datasheet details. I'm not going to tell you how to write code. Presumably you know that. I'm not going to tell you how to solder. I'm not going to tell you how to tell an elm from an app. If you aren't familiar with the terminology, don't give up, but I would encourage you to get some basic electronics texts, and just find out, just learn the vocabulary. I won't tell you how to use NoScope, and I won't tell you how to hack cell phones. Oh, sorry. These are from a different talk. Okay. Thank you. Sorry about that. So what do you find in a microcontroller? The one thing that unifies them is, of course, the microprocessor core. The original 8-bit microprocessors that we're all familiar with, the Z80, the 6502, and so on, were self-contained devices that had an address and data bus, and basically were unified architecture processors that could do general purpose computing. Microcontrollers have taken those cores, or later variants of them, and embedded them on the same die with other resources. Specifically, what usually denotes a microcontroller is that you will have some onboard memory. And I know that it could be ROM, Flash, EEPROM, something that's interesting is that some of the devices that are one-time programmable, which is to say they can only be programmed once, are actually erasable devices. They just haven't been put in a package that you can erase. Another thing you will find on microcontrollers is they generally don't have an address and data bus. They have programmable I.O. ports where you set port directions, you can twiddle the I.O. pins, but all of the specific bus interactions are taking place inside the device. And then there's a library of peripherals that you'll find stuck on the most microcontrollers. The most common are UARTs, A to D, and D to A converters. So that you can do small, completely self-contained solutions. In fact, a lot of the smaller parts have an RC oscillator built into them so that you don't even need to clock them externally. You can actually set a bit when you're programming it to clock itself, usually at some nominal slower rate, but it becomes a self-contained device where you literally just add power and it twiddles the I.O.s to do your bidding. Thank you. And why is this useful? You can create really cool, tiny little systems. It's really compelling when you have an 8-bit DIP package that's doing something that you told it to do. It's nice to create cool software projects, but there's something particularly gratifying about hardware. Ubiquity. One of my favorite comments on this was in a 1976 small computing conference at MIT, they were talking about how computers were going to become ubiquitous, but of course there is a logical extension beyond which this will not go. For example, it's not like you need a microprocessor in every doorknob. If you've checked your door at the hotel here, there is in fact now a microprocessor in every doorknob. Low cost. Economies of scale are driving the cost of 8-bit microcontrollers into the floor, and it's great because you can buy individual parts for one to two bucks. Even the high-performance, high-end 8-bit microcontrollers are seldom more than 10, and in large quantities you will find that they replace random logic efficiently, because some of the parts I've seen in super high production quantities are as low as 40 cents a piece. You get surprisingly high performance. CMOS can go really fast even if you're only shuffling 8-bits at a time. There's a company called Scenics, for example, that makes a 100 MHz 8-bit microcontroller. And then simply, scalability. There is a huge design space you get to play in. What do you not get? You don't get lots of memory. As I was saying, 1K of code space is a usable and fairly typical amount. This isn't to say you can't get a lot of memory. You can buy microcontrollers that have 128K of code space on them, but unless you're doing something that really needs to be moving, that really needs that large an image, you're probably missing part of the point. And so I encourage you to know your code. Beware of compiler assumptions, and then recursion versus the too-deep stack. One of the nice things about playing with the microcontrollers is you get to know about what's going on at the meta level. In the AVR microcontroller, which is one that I'm using right now, the lower end versions have a separate, it's called a Harvard architecture, so you have a separate code and data space, and the two don't meet. And they've actually implemented the stack as a third separate hardware data space. It's only three elements deep. If you try to recurse with only a three-deep stack, you're going to be in trouble. And then finally, like I said, you don't have typically a complex memory interface. Some microcontrollers have only a programmed IO port. If you want to get something in and out of an external memory, you actually twiddle the address and data lines manually. There are some microcontrollers that let you assign some of the ports to be a memory interface, but even in that case, they make assumptions. For example, they own the memory. In even the old 6502, you had a memory-ready indicator so that you could hold off memory accesses, which would allow you to have a DRAM subsystem or something that's slow. You could have a memory that you don't have complete control over. You could make the assumption that it's the center of the universe. Okay, so you want to set up your lab. What are you going to need? What are you going to want? You're going to want a 128-channel logic analyzer, a 4-channel 2GHz oscilloscope, a full system ice, and a universal device programmer. After you've laid out your $38,000, what do you really need? You need a digital multimeter. You can spend a lot of money on a digital multimeter. You don't have to. This is a RadioShack special. It does 90% of everything you will ever need. It's normally, I think, like $22. I got it on sale for $16. It's accurate to 5%. It tells you what voltages are. All it does is extend your senses to be able to tell, are two points electrically connected together? Is there a voltage across two points? It does most of what you need out of a $100 fluke scope. A logic probe. A logic probe is just an LED on a stick that tells you the state of a pin. The reason it's useful is that you can stick an LED on a signal, figure out what the state of it is, but you're loading it. You can stick a driver in an LED on a signal and find out what the state of it is, but you can only tell as fast as you can see. Logic probes will generally be able to detect transient events. For example, if something is turning on for one millisecond every second, you're not going to see that. A logic probe will. It's just a little chunk of logic hooked up to an LED. It's typically $15 for a cheap one. Again, you can spend a lot more, but I got a cheap $15 logic probe that does pretty much everything I need. A microcontroller starter kit is what you're going to use to develop and test your code. I've got an example of one here. Let me show you what the hardware looks like. Unfortunately, I did not take any pictures of this to get it set up on the slides. But it is a remarkably simple little board. You've got a couple of serial ports going into it. You've got some LEDs and buttons. You've got some headers so you can plug it into the outside world if you want to. And then all you do is you download your code from your development environment. Which brings me to the development environment. I say a PC probably running Windows even knowing that that will get me stoned with this audience. There are lots of good development tools that will run under Linux. And there's more coming every day. Or will run under all sorts of alternate operating systems. The good ones. One of them is though that the manufacturers are selling to the commercial market and the commercial market is still pushing the Windows development tools. So double boot your machine and bring up Windows every time you need to actually use their IDE and then throw it away when you're done. Other useful stuff you'll probably want to have around. A breadboard. You can spend 20 bucks and a breadboard is just a matrix of plug points that you can drop chips into and it gives you a way of wiring things together quickly. A power supply. The great thing about this particular development board is that it's really forgiving on what you can put into them as power. They've got a regulator on here so if you feed it anywhere from 6 to 15 volts AC or DC of any polarity it's happy. It fixes it for you. An oscilloscope. I jokingly mentioned the 2 gigahertz 4 channel oscilloscope as something you want but don't need. An oscilloscope is a useful thing and you can get them fairly cheaply or you can build your own. A static analyzer just lets you look at multiple channels. The only reason that's particularly useful is if you've got multiple data signals and you want to see what they're doing relative to one another you need to be able to capture them all at the same time. There's a ton of debugging you can do by inferring. By just knowing what has to be going on because that's the way you built it but occasionally things don't work the way you built them. As an aside I am used to doing this talk to a group of about 15 people at a time and it's generally a much more interactive thing which is why I'm sort of going off in all directions at once and why I'm trying desperately to cling to my slides because they are my touchstone with reality. The data books Data books you can get from manufacturers can be useful but for the most part they are out of date the day they roll off the press. The web is your friend and application engineers are your friends. They will provide you the information you need to know and I would encourage you to go ahead and call up the manufacturers and order printed copies of things like the instruction set because you need to know this stuff but for specifics about parts pull down the datasheet because you'll find out that datasheets often refer to the D and F version of this part after they fixed all the preliminary bugs. And then share and enjoy you will find a vast amount of interesting cool stuff about what people are doing online. So when you're trying to get your parts first thing to keep in mind the manufacturer's job is to sell you parts. They can be very helpful but call your thing, whatever you're building, a product. They build products. If you call up and say, hi, I'm building this thing they will hand you off to a person who handles evolving accounts or developing accounts which means you get shunted off into a backwater and they don't really take you seriously. They won't take you seriously anyway but you can mitigate that damage. Project realistic volumes which is to say don't tell them you're going to be producing two and a half billion of your project but I'm going to be doing one to five thousand this year. That leaves open that of course the volumes will be ramping up. Engineering samples are a great thing. Generally if you can try not to talk to humans. My favorite example of this is the Maxim website allows you to get Maxim's integrated circuits I believe up to eight or ten devices completely off a form on their website you never have to talk to a person. You will talk to a lot of representatives. The manufacturers don't generally want to interact with the customers whether they're design engineers or just people calling for general information. So they keep the layer of the representatives the manufacturers' representatives between you and them. They usually have pointers to these on their website maintain a rolodex. These guys' only job is to know your name and to try to get you what you need as long as they believe that your product will be producing two and a half billion units sometime in a few years. And then finally know what you want. I point this out. It seemed obvious to me that there are a lot of different versions of every part. If you call up and say, Hi, I want an Atmel AVR microcontroller you've just narrowed it down to about 140 parts. If you say I want an Atmel AT901200 you've narrowed it down to a family of about ten. But you have to specify everything. So if you don't specify something they will often provide you parts which they pick at random from whatever they have on hand. Just be aware of how the part numbering scheme works and try to present complete information. And then finally buy what you must. There are a lot of good sources for small quantity parts. Digikey and JDR microdevices are two of my favorites. So once you've got your parts together and you've put your lab together and you've got your development board and you're building, how are you actually going to wire whatever your prototype thing is? Breadboards are good, as I mentioned earlier, for wiring things up quickly for doing small projects. Breadboards, as I said, are a matrix of interconnect where you're just plugging boards and you're doing small things. If you are trying to do anything at 10 gigahertz I'm sorry, at even 10 megahertz you will find that you have signal integrity problems. Protoboard and wire wrap is where you take a piece of perfboard and you stick sockets in it and you wire wrap them together. It's surprisingly old and surprisingly good technology. A wire wrap board will be good for up to a 10 megahertz application typically. And then finally I mentioned the joy and agony of surface mount devices. As form factor has gotten smaller on virtually everything, surface mount is often the only form factor a lot of parts are available in. And the only way you can really use a surface mount device is to solder it down or at least solder wires onto it. It's a real pain in the butt and I would encourage you to look into surface mount breakout boards. They're just boards that have a surface mount set of pads that you can stick a part onto and then bring wires out from. It's useful because it means that you can then run things at much higher speeds and finally if you're actually building a system with a few parts, you might want to consider doing your own printed circuit board. That's sort of beyond the scope of this overview but there's a lot of good tools for doing simple board layout and you can actually fabricate them by hand. Debugging your hardware. The single greatest problem is trying to figure out what part of your system is broken. Since you're working in both hardware and software try to develop software modules that allow you to test the hardware first and keep everything modular. Avoid early feature creep. It's a standard obvious thing that everyone forgets but get it working then get it cool. Design for testability. Put some mechanisms in your hardware and in your firmware to allow you to probe different sections of the thing. And then the hierarchy of failure. This is what is most likely to break. You. You are uniformly the single largest cause of failure. Second. Tools. Yes, tools are sometimes broken. Sometimes the compiler doesn't produce real code. Sometimes the assembler is broken. But it was probably you. And finally, sometimes the hardware is broken. But it might have been the tools but it was probably you. And then I tried to come up with a list of the basic rules of thumb that come out of more years of doing this than I can actually admit. Pay attention to current drive capacity. If you run a two horsepower motor off a logic level signal you will discover that it doesn't work. Buttons bounce. When you press a button you as a human working in the millisecond time domain see a transition from off to on. In the megahertz domain that your microcontroller may be sampling this thing it sees off, on, off, on, off off, on, off, off, on, off, on. There are simple ways to fix this but just be aware that what you think is going on is not necessarily what's really going on. Let's talk about added capacitor. The truth is that higher speed parts draw more and more current. Every time you have a switching event you have a high current draw. And that means that all of the leads coming from your power supply are getting drained down. Basically you have to provide localized power for all of your parts. When in doubt, stick a capacitor between power and ground which brings me to the next one sometimes polarity does matter. Laughter If you stick a polarized capacitor between power and ground make sure you get it right because the smell of burning tantalum is really awful. And if you're holding it when you plug it in live it will explode in your fingers and it's not very pleasant. If it's hot, turn it off. There are exceptions to this. If you're building a system where you know you've got to have a heat sink on your regulator then you can expect it to get warm. If it is emitting light it is probably getting too hot. Laughter Try to understand the switching levels of the parts you're using. It used to be that logic was inherently 0 volts is low 5 volts is high the switching threshold is 2 volts anything above 2 volts is high anything below 0.8 is low this is TTL 5 volt. Those assumptions no longer hold because CMOS switching levels may or may not be used. A lot of the CMOS parts use TTL switching levels but just be aware of it. 5 volt vs. 3.3 Logic has been slowly migrating to 3.3 volts It's very possible to build an entire 3.3 volt system now It's very possible to build lower voltage systems. All of this stuff works at 5 volts. One of the nice things about a lot of the microcontrollers is they'll work at any voltage you feed them. Some of the pick parts, for example will work at anything between I believe 7.5 and 2.5 something like this and the great thing about that is you don't even have to hook it up to a power regulator you just run the battery into it and the battery will drop off and maybe it will slow down and eventually fail but you can get away with a wide voltage input. Pay attention to timing. I'm not even going to justify that with an explanation. And don't let inputs float. If you have an input to a system floating just tag it to a power supply or at least put a pull-up or pull-down resistor on it if you've got a signal that's just sitting there floating along it may resolve to a non-logical value or it may resolve to a case where some parts of the circuit some parts of the system think it's high some parts of the system think it's low and you end up with a really nice high current path between your voltage source and ground and that ties back into if it gets hot, turn it off. And then a corollary to don't leave inputs floating that a friend of mine pointed out just as I was going over my slides this morning is make sure that you are actually applying power because CMOS devices can actually occasionally sort of work by powering themselves through their own inputs. A particularly nasty bug to chase down because it's really bizarre behavior but basically make sure you actually apply power to the parts because it may still work and you won't know why if it acts flaky. An example project that I wanted to frame this in was I saw a thing on Slashdot about a really cool little logging keyboard and I thought, that is a great microcontroller project I believe they called it Ghostboard something like this but it's very few IOs you've got a serial keyboard stream going in and going out and then I wanted to be able to log whatever was going through there so you've got slow serial flash memory you can get some really large serial flash devices they're not terribly fast to program but the great thing is you can power this whole mess of just a few parts off the keyboard port you can sniff incoming keystrokes it can act as its own keyboard and it has some concept of time and the idea was that you would have this device that would be logging keystrokes as they come through and perhaps inserting keystrokes if I wanted it to and there's all sorts of great applications for this some of which are even ethical and finally the inspirational message like any project the hard part of this is getting started hopefully this is giving you some really broad overview idea of how to get started the design space you get to play in is huge there's an infinite number of things you can build and a blinking LED is an amazingly satisfying thing to recap, microcontrollers different development opportunity and it's a lot of fun to both learn and tinker with this stuff and if you want to get an AVR development kit and this is why I was a little aghast at the size of the audience I have five of these things and so I'm going to use this as a chance to extract feedback from anyone who wants a chance to get one of these if you could write down a name or handle what I should change about this talk because I'm hoping to do more presentations like this and if you liked anything about the talk tell me that and tell me a project you'd like to do with your kit and then in about an hour five people can pick them up at the bellhop desk and they'll have your name or handle written on them I hope that some of you are inspired this, like I said is a complete AVR development kit it's got all of the software it's got an integrated development environment that allows you to do assembly development and it includes one instance of the AT90S1200 part which is 1K of code space 64 bytes of RAM and 15 IOs and it can self-clock itself at 1MHz and then for Q&A question number zero what is with the jacket since I get a lot of questions about this I had to include this this is my artwork I made these up last year I'm actually selling them this year so I'm hawking them they're 50 bucks, this is how I pay for my trip and my amusement these things have generated in the last year and if you want to contact me you can reach me at pking at pkscientific.com questions? yes? ok a lot of my projects lately have been trying to build control goo between a PC with an arbitrary set of ports, for example a serial port and external devices and so mostly really low speed stuff where I'm just parsing simple commands on a serial port and then based on that controlling an external device like a small robotic arm and junk like that what else have I done recently there's an infinite amount of fun to be had with DTMF decoders and I won't elaborate on that and then of course most of my actual time lately has been sucked up with my job which is building a protocol control engine for an infrared wireless networking system which also uses an 8-bit microcontroller oh that's the other thing I wanted to point out I tend to emphasize the low end of the spectrum on these parts there's a lot of really cool 8-pin parts where you've got 6 IOs power and ground and you can do some cool stuff with that if you really want to you can get 64-pin 8-bit micros you can get microcontrollers that have much more IOs address data bus and also I've emphasized the low end of the microcontroller spectrum that you can get much higher performance processor cores there are 64-bit microprocessor cores embedded in control systems obviously they pay more but you can do more with them yes I have seen them I cannot think of any specific yeah if you go to EDNmag.com which is EDN magazine they have a lot of I believe it's EDN or EE times that does an annual microcontroller roundup where they present a summary of all of the parts pardon okay Hattachi SH okay okay he suggests the Hattachi which also supports you said supports the okay the new toolset yes sure okay I've managed to talk much faster than I usually do as I often do when I'm nervous in front of a large group so let's use the laptop for something useful okay again I apologize one of the things that yeah nevermind there it is this is the latest version of the AVR development studio it's a fairly nice integrated development environment and uh and this is a remarkably trivial example but it shows you the whole design flow I created a 9 byte program which let me expand everything here ... ... Umm basically it's this is just a little load some data in read in the set of buttons on the AVR microcontroller board and output it to the LEDs so I use buttons to turn on LEDs by way of a microprocessor umm yeah yeah there's some unnecessary steps in there anyway um Do you have specific questions about the development environment, or...? Oh, okay, there's a whole good subtopic. C development environments. There are some good C cross-compilers, which will give you the ability to do fairly tight code. I tend to not use them, simply because I like to have really low-level control over my code, but I'm also fairly paranoid about that. The truth is, if you set up the tools correctly, you can do it without shooting yourself in the foot. The problem is that the C compiler's primary reason in life is to optimize the code in ways that you don't necessarily understand, otherwise you'd be doing it by hand, and to hide things in the background, so it's really easy to end up with code being fluffed up or shuffled around in such a way that you end up with a much larger image than you were intending. That said, there are a lot of good C development environments, and in fact, I believe there are a lot of... of the GNU modules for various microcontrollers. Yeah. Yeah, yeah, GCC. Is there a GCC for the AVR? Okay, great, I apologize. So, yeah, if you look around, you will find some of these tools. A lot of the third-party C development tools are also available in various demo forms for free. And one of the nice things about the AVR development kit is it also includes a simulator. Unfortunately, I haven't set up the simulation environment to demonstrate this, but it lets you do step-by-step simulation of your code. The caveat about that is you're, of course, working in a simulated environment where you don't have the benefit of your external hardware, so you have to assume that you now know what the stuff you've glommed onto the microcontroller is doing. Yes? Yes. Yes. Yes. Yes. Yes. The question was, what's a good place to find out information about the formats of the various binary files to strip out the headers and other information so you get just the code you need for your microcontroller? Unfortunately, I'll have to say, I don't know. It's fairly context-dependent. I mean, the specific file formats you mentioned, ELF, are... I'm assuming well-documented, but I do not know specifically where you would get the how-to-reduce-it-for-a-microcontroller version. You can use the option of not being able to strip it out. So one of the three main tools is how to be able to strip out the extra stuff and completely fix it in the binary. Yes? What is the cost of the ADR process, which is one point a year? Yes. Small quantities, I believe the specific part I'm using here, which is a 20-pin DIP, is about two and a half bucks. So good for small projects. Yes? Are you using the ADR commercially, and if so, are you able to get any of them right now? Am I using the ADR commercially, and if so, am I able to get any of them right now? This is another good question. Ironically, you can get engineering samples. You can't actually buy most of them right now. This leads into an aside about the electronics industry that's fairly hideous. Things that you would think are uniformly available and infinitely cheap are actually on allocation. Allocation is the process by which they tell you, sure, we can get you that part in 58 weeks. Right now, I have a project that is in development that may use an AVR, although I'm early enough that I'm seriously concerned about the fact that the lead times are huge. Any other questions? Oh, sorry. Yes? I have a quick question. First? First question, do you need a ROM burner to get the code into the processor? No, it actually comes with the starter kit. One of the nice things about this particular starter kit is you've got a serial port, and the development environment will generate a binary file or several different formats of binary file, and then there's program code in the development environment that allows you to just directly dump it into here. In this case, it's a flash microcontroller, so once it's programmed, and you can cycle the contents about 1,000 times before you start to stress the flash cells. Oh, buying microcontrollers from Motorola over the web? I'm not familiar with that. I have used some of the Motorola family in the past. They're very good parts. A lot of them are derived from architectures that you are probably already familiar with. The 6800 series and so on. Am I that nervous? Thank you. No, there's no reason to avoid them. I'm actually quite fond of the 68HC11 family, which is a great 8-bit part, and there's no reason not to buy them over the web. One of the... This starts to get into the datasheet details, but there are a lot of good features. The 68HC11 series in particular has a lot of different onboard peripherals available right now. And so if you're looking for a rich feature set, that is a good way to go. Yes? He asks, what are good books on interfacing to external peripherals such as stepper motors, IR systems, and so on? I used to have a few books that I recommended, although, as you pointed out, the things get out of date really quickly because especially state of the art in high performance, high current switching transistors, for example, has come a long ways in just the last few years. So where you used to have to go through gyrations and perhaps actually have several stages of drivers to drive even small motors, you can now do it with monolithic devices. What I actually encourage you to do is, I encourage people to do is just surf data sheets. Generally, find application notes that describe what you're trying to do and find data sheets to make sure that the specifications fit. Yes? What's a good way to surf for this information? I, unfortunately, don't have a good sort of unified solution. I'm a web minimalist. I just go to Google and give it a few search terms and see what pops up. Surprisingly, often you will hit manufacturer's pages or if you include a search term of application note, that filters out a lot of the crap. Any other questions? Yes? Are the microcontrollers provided with assemblers or do manufacturers tend to write a unified assembler that works for all of the... the microcontrollers in their family? The question is... That's strange. Are the microcontrollers provided, or are the assemblers provided with the microcontroller? Yeah, what do you mean by that initial assembler? That particular microcontroller? Generally, the assemblers are divided by family because what'll happen is within a particular microcontroller family, the instruction set architecture will be approximately the same. There'll be some instructions that aren't supported because, for example, that addressing mode doesn't exist in the hardware. But for the most part, the manufacturer will generally have a baseline assembler that they provide. For example, in this system, you have to specify which of the AVR family you're using so that it knows if you're trying to set up the stack pointer and it doesn't have a stack pointer, it will tell you you shouldn't be doing that. The cross-assembler and cross-compiler tools, such as the GNU tools, are... are available for a vast number of parts, and those are maintained independently. Some of the manufacturers are actually going over to things like the GNU toolset as their baseline toolset. For the most part, everyone still has some third-party or in-house developed assembler they like. Any other questions? Yes? How to pick out an oscilloscope on eBay. How to pick out an oscilloscope on eBay. It depends on exactly what you're trying to do with it. The most useful thing an oscilloscope lets you see is signal versus time. The second most useful thing, if you have a two-channel scope, is seeing two signals versus each other. If you're trying to pick out a good, cheap, used oscilloscope and you're doing microcontroller systems, you probably don't need a very fast one. A bandwidth of a few tens of megahertz is going to give you anything you would want to see in terms of intentional signals. I say intentional signals because the caveat is if you've got noise in a system that's, for example, glitching during a switch, you may have very short-duration spikes and you would want more bandwidth on your oscilloscope to find that. Yeah? Are there kits that you can use your computer as the oscilloscope? Are there kits to use your computer as the oscilloscope? Absolutely. A lot of the high-end oscilloscopes now are basically just a Windows box stuck onto a chunk of hardware that's the oscilloscope. You can go the other direction, and get a sampling card that you stick into your PC. At the very low end, you can actually make an oscilloscope out of a good sound card. You can just feed that as an audio input and sample it, and it will show you the waveform, but again, you're fairly bandwidth limited there. Yes? I — could you repeat the name? I know what you're talking about, and I can't think of the name. Fred Martin the Handyboard? Okay. Is that the 68HC11 based one? Okay, yeah. That is a great development board because that provides the microcontroller. It's very similar to this sort of thing in that it provides, a breakout of the signals and a way to hook things up and I believe in circuit programming although I'm not sure you would have to search unfortunately I don't have a pointer to that okay Fred Martin handy board web search any other questions okay I'm gonna call it quits then I will be around for a few more minutes over here if you want to drop by your commentary and and tell me if you want an AVR development kit and thank you very much for