一乐电子

一乐电子百科

 找回密码
 请使用微信账号登录和注册会员

QQ登录

只需一步,快速开始

快捷登录

手机号码,快捷登录

搜索
查看: 4670|回复: 6
收起左侧

原版M328晶体管测试仪1.10部分功能测试

[复制链接]
发表于 2014-5-29 09:06 | 显示全部楼层 |阅读模式
本帖最后由 zhqsoft 于 2014-5-29 09:08 编辑

2.JPG
硬件连接 TP1 to GND,TP2 out。---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
Signal generation
The di erent signal generation modes are only available with a ATmega328 processor. You must also
enable the dialog function with the Make le option WITH MENU. The menu is calLED by a long key
press. The available functions are shown in the second row of the LCD. You can select the shown
function by a long key press. The next function in automatically shown after 5 seconds or after a
short key press.
6.1 Frequency Generation
The frequency generation is started, if you select the "f-Generator" function by a long key press.
The frequency output is done with the 680
resistor at measurement port TP2. The measurement
port TP1 is switched to GND. The frequencies are build with the 16 bit counter from the CPU clock
frequency (8 MHz or 16 MHz). Currently a list of prede ned frequencies (2 MHz down to 1 Hz) can
be selected with short key press. If you hold the key pressed for a long time, you can return to the
dialog function and select the same or another function.输出频率信号,TP1 to GND,TP2 out。
7.JPG
8.JPG
9.JPG
10.JPG
11.JPG
12.JPG
13.JPG
14.JPG
15.JPG

---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

6.2 Puls width generation
The Puls Width generator is started, if you select the "10-Bit PWM" function by a long key press.
The frequency output is done with the 680
resistor at measurement port TP2. The measurement
port TP1 is switched to GND. The frequency of the output signal is always the CPU clock divided
by 1024. This gives a result of 7812:5Hz for the 8 MHz CPU clock. Only the positive pulse width
can be changed by a key press. With a short key press you can increase the positive puls width up to
99% in 1% increments. With a longer key press you can increase the pulse width in 10% increments.
The pulse width reaches a value above 99% 100 is subtract from the result. The pulse width 0%
generates a very small positive puls width.


占空比输出。同样的硬件连接方法。
3.JPG

4.JPG

5.JPG

6.JPG



---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------




With the dialog part of the ATmega328 you can also select a frequency generator, which supports
currently a selection of frequencies from 1Hz up to 2MHz. The output of the 5V signal is done with
a 680
resistor to test port TP2. You can use the GND signal from the minus pin of the zener diode
extension or the test port TP1. The test port TP3 is connected to GND with a 680
resistor.
For using the with the dialog selectable frequency measurement is a little hardware extension
necessary. The input pin PD4 (T0/PCINT20) of the ATmega is used for the frequency measurement.
The same pin is also used for the connection of the LCD. With normal layout, the PD4 pin is
connected to the LCD-RS signal, with the strip grid design it is connected to LCD-D4. For both
signals the PD4 pin can be switched to input as long as no output to the LCD is required. The LCD
respect the input value only, if the LCD-E signal is switched to GND. For driving the input pin from
external clock source at least one serial resistor of 270
should be used. Better you should use the
circuit of gure 2.4 . The voltage at the PD4 pin (LCD-RS or LCD-D4) should be adjusted to 2:4V
without the assembled ATmega or during frequency measurement of the ATmega, to get the best
sensivity for the input frequency signal. The LCD should always be installed for adjusting, because
the pull up resistor of the LCD change the voltage.

频率测试。没看懂第一段话也没试过。测试过按照下图直接在板子上焊接。可以测量2MHz以内频率。觉得没多大用。或者谁能改动下程频率分频之后计算。
1.JPG


---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------



发表于 2014-5-29 09:18 | 显示全部楼层
频率产生部分很好用,我自己搭建的电路用频率计测量基本上很精确,但频率测量部分一直未通过,先总装好用着,整个仪器除了频率测量外功能全部实现了。
升压部分我用分立元件搭建的,能实现从5V升压到40V,很稳定,总共用了13个元件,用三极管加LC组成振荡器,然后二倍压升压到40V。
发表于 2014-5-29 12:37 | 显示全部楼层
sodohe 发表于 2014-5-29 09:18
频率产生部分很好用,我自己搭建的电路用频率计测量基本上很精确,但频率测量部分一直未通过,先总装好用着 ...

频率测量照楼上的图做,非常容易的
发表于 2014-11-25 22:46 | 显示全部楼层
请教楼主一个问题,我也是按照官方的电路和程序,做的M328晶体管测试。可是上电之后,LCD1602的背景一直在闪烁,LED也是一直的闪烁,屏幕上没有任何字符。请问一下这个是什么原因呢?百思不得其解,恳请楼主指教!!
发表于 2014-11-26 22:45 | 显示全部楼层
forget 发表于 2014-11-25 22:46
请教楼主一个问题,我也是按照官方的电路和程序,做的M328晶体管测试。可是上电之后,LCD1602的背景一直在 ...

1、检查电路是不是都焊对了
2、检查单片机的程序和熔丝是不是烧对了
发表于 2015-1-8 09:44 | 显示全部楼层
强悍   
发表于 2015-1-31 20:38 | 显示全部楼层
LZ那有电路图,没事自己也组一个玩下!

本版积分规则

QQ|一淘宝店|手机版|商店|电子DIY套件|一乐电子 ( 粤ICP备09076165号 ) 公安备案粤公网安备 44522102000183号

GMT+8, 2024-4-20 19:09 , Processed in 0.066688 second(s), 34 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表