博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ICD2 VPP limiter for new PIC microcontrollers.
阅读量:6897 次
发布时间:2019-06-27

本文共 2256 字,大约阅读时间需要 7 分钟。

 

VOUT = 2.5V * ( 1 + 24/10 ) = 2.5 * 3.4 = 8.5V 

 

Newer PIC18s, such as my current favorite – PIC18F26K20, don’t like to be programmed with 12V. The datasheet maximum is 9V. Older Microchip programmers/debuggers, such as PicKit and ICD 2, do not support variable programming voltage. When you start a MPLAB project consisting of K-series PIC18 and ICD 2 debugger, you will get a warning and suggested VPP limiting circuit schematic. In this article I’m describing this very circuit, so you can build it beforehand.

 

 

The circuit is as easy as it gets. It is TL431 programmable voltage reference configured for 8.5V cutoff. If you are not comfortable having VPP so close to specified maximum, change voltage divider R2R3. Bear in mind that minimum VPP for new PIC18s is VDD+4.5V; if you are powering your PIC from 3.3V (max.VDD), minimum VPP is 7.8V.

To build this circuit, you can use a PCB, or use a small piece of prototyping board. I solder right-angle headers into ground pads; this way, the limiter can be inserted vertically, saving precious breadboard space.

I suggest checking circuit operation after you build it. You will need bench power supply (or any known voltage source of 9V or more) and a voltmeter. The procedure for bench power supply is as follows:

PIC VPP Limiter board layout
  • Set your power supply to minimum voltage and current.
  • Set voltmeter range to 20V DC.
  • Connect circuit IN to the power supply, circuit OUT to the voltmeter, all 3 grounds (power supply, voltmeter, and circuit ) together.
  • Add some voltage on power supply. If it starts showing overcurrent, add little current (but just a little; the current when to become suspicious and start looking for shorts is 30mA).
  • The voltmeter should follow power supply as you add voltage until you reach 8.5V. At 8.5V voltmeter should stop. Continue adding voltage on power supply until you reach 12.5-13V. If voltmeter still shows 8.5V, your circuit is working.

Now, when your know circuit is operational, it’s time to use it. Connect IN to MCLR/VPP signal coming from the programmer, connect OUT to MCLR/VPP of your PIC, connect GND to ground. The last connection is as essential as other two – if ground is not connected, the circuit will bypass input voltage to output without change.

 

转载地址:http://rwddl.baihongyu.com/

你可能感兴趣的文章
基于八叉树的区域增长点云分割算法【转】
查看>>
SERVER2012 FTP服务器和客户端配置
查看>>
C++11 带来的新特性 (3)—— 关键字noexcept
查看>>
《iBoard 是什么》之简介
查看>>
中间代码生成器-5-编译原理
查看>>
ORACLE 11G EXP导出空表方法
查看>>
公用代码实现两个表的拼接(部分代码)
查看>>
【液晶模块系列基础视频】4.4.X-GUI图形界面库-画tab函数简介
查看>>
147. Insertion Sort List
查看>>
Delphi中DLL的其他应用
查看>>
Node.js nvshens图片批量下载爬虫 1.00
查看>>
[转]Android中的一个TextView中的字体设置不同大小
查看>>
Linux系统搭建负载均衡环境
查看>>
mvn deploy命令上传包
查看>>
C# 中的多线程
查看>>
如何在Mac上放大
查看>>
转:Java NIO系列教程(七) Socket Channel
查看>>
MongoDB aggregate 运用篇(转)
查看>>
【Static Program Analysis - Chapter 3】Type Analysis
查看>>
类的继承关系,多态的体现,我的觉得题目还是有点欠缺
查看>>