You really DO need to use an oscilloscope - you're blind without one! Chris ----- Original Message ----- From: "rad0" To: Sent: Monday, December 23, 2002 2:41 AM Subject: [ot]: oscilloscope questions / measuring a pulse width question > more stupid questions probably... > > I want to measure the width of a pulse. All I have is a volt meter, and > I think you need an oscilloscope for this. But I think you can do this with > a stamp and the pulsein command? And that's what I want to do. > > Now this is for a stepper controller program, or its output. > > So any way, what is an oscilloscope really? Isn't it just a voltmeter that > measures a sample over a sweep time period, and displays its out put on > a graph of time versus magnitude? > > Second, my output to be measured, comes from a program where a pin > is simply turned on for a time then turned off, this is a square wave on an > oscilloscope, no? > > now when using the pulsin command, > > pulsin pin, state, variable > > variable -- has a unit(a min value) associated with what ever pin you are > using, and a max > pulse width value. I think I understand this, it will wait 'upto' this max > value for a > pulse, and measure it if it gets one, and store its value in variable as the > number > corresponding to the number of pulse units it counted? Correct? > > it stores a zero if there is no pulse > > question,-- what happens if the pulse is faster than the minimum unit for > the stamp > you are using, does it register as a 'variable = 1' or is this a zero also? > > > lastly, can you safely hook up the parallel output pin, this is my output to > be measured, > directly into the stamp pin to read it with pulsin, or do you need a > resister or anything > else.... > > thanks for any help or info > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads