电子元器件原材料
采购信息平台

手机洽洽

扫一扫下载客户端
随时随地,生意尽握手中

正的逻辑探针电路,Logic Probe Plus

来源:<a href='http://bbs.hqew.com/viewthread.php?tid=164589' target='_blank'>jiaoyouhao</a> 作者:华仔 浏览:1422

标签:

摘要: 正的逻辑探针电路,Logic Probe Plus This project is based on a probe logic states, capable of measuring levels from TTL (5v) to state levels of PLC's (24v). For this we have employed the use of the PIC 12F683 microcontroller, which by its nature is capable of operating at low voltages, in this case 3vcc, besides having analog inputs and internal oscillator. The circuit is supplemented by an input

正的逻辑探针电路,Logic Probe Plus

This project is based on a probe logic states, capable of measuring levels from TTL (5v) to state levels of PLC's (24v). For this we have employed the use of the PIC 12F683 microcontroller, which by its nature is capable of operating at low voltages, in this case 3vcc, besides having analog inputs and internal oscillator.

The circuit is supplemented by an input stage which will adapt the signal to the levels between the microprocessor is able to work and another output stage that will visually show the state in which the point is measured.

The input stage to include a voltage divider between R3 D5 and D1, their role is to establish a fixed value (/ - 2.80) for the input of the microcontroller which means that is in a state of high impedance, ie without input signal. When we apply the input signal DATA IN this will vary the voltage drop at point H so that the reading as we discriminate if this is higher or lower than the reference voltage.

The output stage is made up 3 LED (yellow = high impedance, Green = Red = logic 1 and logic 0).

The program also has an internal timer to approximately 3 minutes between the microcontroller in sleep mode in which consumption will be minimal, to save the battery. And it will reactivate the program until you press the button, starting over allowing timing and take readings we require.

Focusing on the program of the microprocessor, this is configured to work with internal oscillation 4Mhz and configuring its pin so that analog reading take from point H by the GP1 pin, which is defined for a resolution of 10 bits, pin GP2 will also be defined as input and will be connected through a resistor (PULL UP) and a secondary switch to ground, which will be responsible for collecting the press that forced the interruption level change in GP2 While the interruption occurs loads a value (2000) as a timer to make a loop past work and this time will be placed the microcontroller in sleep mode.

The program is also complimented inizialización a function which shows the blinking leds, to argue that this in active process and that at the end of this sequence we can take appropriate measures.

The bulk of the program is effected by a loop of reading and comparing the reading which collects and compares GP1 activating the corresponding output.

In order to function alone is sufficient to connect the ground wire to any metal part of the chassis or failing to ground.

the code is open and available to anyone who
want, just send an e-mail and ask.


 

PCBs
 

型号 厂商 价格
EPCOS 爱普科斯 /
STM32F103RCT6 ST ¥461.23
STM32F103C8T6 ST ¥84
STM32F103VET6 ST ¥426.57
STM32F103RET6 ST ¥780.82
STM8S003F3P6 ST ¥10.62
STM32F103VCT6 ST ¥275.84
STM32F103CBT6 ST ¥130.66
STM32F030C8T6 ST ¥18.11
N76E003AT20 NUVOTON ¥9.67
型号/产品名 平均报价 涨跌幅
STM8S003F3P6 1.55 1.12%
74HC573D 0.64 2.86%
2N7002 3.66 400.00%
STM32F103C8T6 7.47 27.87%
1N4007 1.58 0.00%
ADM2483BRWZ 8.90 3.21%
SHT10 16.21 5.88%
STM32F103RCT6 12.56 24.44%
78L05 10.55 66.67%
LM358 118206.75 16.67%
  • ST10F275-CEG 2000 件

    深圳市雄鑫发电子科技有限公司

  • ST10F275-CEG 2000 件

    深圳市雄鑫发电子科技有限公司

  • ST10F275-CEG 2000 件

    深圳市雄鑫发电子科技有限公司

  • ST10F275-CEG 2000 件

    深圳市雄鑫发电子科技有限公司

  • ST10F275-CEG 2000 件

    深圳市雄鑫发电子科技有限公司

发布求购