高级会员
 
主题
帖子
积分3994
阅读权限30
注册时间2008-12-10
最后登录1970-1-1
在线时间 小时
|
最近对示波器感兴趣,搜索到一篇文章,好像不是很复杂,但是MCU比较特殊,作者说明可以按原理改PIC或AVR的MCU,不知道版主有没有兴趣弄一下,我几乎是电子盲,只能做做翻译的工作了。
http://elm-chan.org/works/wcs/report_e.html
Pocket-Sized Digital Oscilloscope Adapter
This is a portable oscilloscope adapter that it can be held in breast pocket. Its operation is only sampling and sending to host PC. The most of functions of the oscilloscope are processed by host PC. Therefore, oscilloscope adapter can be simplified.
When build it
This oscilloscope adapter using a TMP47P242VN 4bit microcontroller for acquisition control. But it is difficult to obtain and to programm personaly, so that I recommend to replace the microcontroller with any other microcontroller, such as PIC and AVR, when you want to follow this project. The details of the acquisition controller is as follows.
Communication format between host PC and oscilloscope adapter is N81 (no parity, 8 data bits, one stop bit). Data transfer rate between oscilloscope adapter and host PC is 115.2kbps. This is the minimun required transfer rate for real-time transmission of sampLED data of 10ksa/sec. And command transfer speed of from host PC to oscilloscope adapter is 9.6kbps.
The acquisition controller will enter state of command waiting after power-up. One byte of command value range is from 0x50 to 0x5F, any other value will be ignored. The controller outputs lower four bits to P01-P03, wait for one milisecond, and enter to sampling state (sampling loop). In sampling state, anything data is raceived from host PC, acquisition controller will return to command waiting state. Host PC must send a 0x00 before sending any command.
When above protocol is satisfied, control program will be able to use without any patches. But remaking the controll program as windows based application will better than DOS based application. |
|