AN1450应用资料INTRODUCTION In this application note, a PIC10F322 is being used to implement a delay block/debouncer. The delay can be set between 2 µs and 193 µs. This can be used effectively as a noise discriminator, or for switch debouncing. When used as a delay block, the application can be used to fix low-level timing issues on signals. When used as a debouncer, it can debounce signals from a mechanical switch so that a clean signal can feed other circuitry. The application makes use of the Configurable Logic Cell (CLC) peripheral to produce fast switching on the output (if desired). If the same application were written using port logic only, there would be multiple instruction cycles before the output would change in response to an input. Using the CLC the signal can be routed directly and only have propagation and gate delay between the input and output signals. In order to get the highest performance possible from the application, it has been written in assembly. The code has been written in-line (without subroutines) to maximize switching performance of the application. The code uses only 43 locations of program memory (512 available), and one byte of RAM. This application note was developed using a PIC10F322 demo board (part # AC103011). Language tool versions: MPASMWIN.exe v5.45, mplink.exe v4.43, mplib.exe v4.43. DELAY SETTINGS AND VALUES Delays can be set between 2 µs and 193 µs in 750 ns increments (using the 16 MHz internal clock). Delays can easily be made longer if desired, by reducing the clock speed or increasing the size of the delay loop. Enabling/disabling of delays is configured in the code by commenting/uncommenting the following lines of code: ;; 2 lines below enable rising and falling edge delays #define RISING_EDGE_DELAY #define FALLING_EDGE_DELAY




























剩余13页未读,继续阅读

- #完美解决问题
- #运行顺畅
- #内容详尽
- #全网独家
- #注释完整

- 粉丝: 0
- 资源: 1
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- IMG_20250101_163647.jpg
- 汽包锅炉高效给水控制:单级三冲量与串级三冲量的设计与仿真分析,汽包锅炉给水控制系统的设计与仿真研究:基于Matlab Simulink的单级三冲量与串级三冲量控制策略及其实验效果分析,汽包锅炉给水控制
- 【毕业设计-JAVA】springboot-vue4S店汽车车辆管理系统源码(完整前后端-mysql-说明文档-LunW).zip
- 使用python+RNN 写藏头诗、五言绝句、七言绝句、随即写诗+源码+项目文档(毕业设计&课程设计&项目开发)
- 【毕业设计-JAVA】springboot-vue-java语言学习平台源码(完整前后端-mysql-说明文档-LunW).zip
- 【毕业设计-JAVA】springboot-vue-MOBA类游戏攻略分享平台源码(完整前后端-mysql-说明文档-LunW).zip
- MATLAB下基于模糊PID控制的柴油发电机分步加载及网侧多功率器件配置方法研究,MATLAB仿真下的柴油发电机模糊PID控制策略及分步加载策略研究:网侧功率器件的灵活配置与应用,MATLAB 柴油发
- 【毕业设计-JAVA】springboot-vue-xx大学文档管理系统的设计与实现源码(完整前后端-mysql-说明文档-LunW).zip
- 【毕业设计-JAVA】springboot-vue-xx产品推荐系统实现源码(完整前后端-mysql-说明文档-LunW).zip
- 【毕业设计-JAVA】springboot-vue-xx大剧院订票选座管理系统实现源码(完整前后端-mysql-说明文档-LunW).zip
- 【毕业设计-JAVA】springboot-vue-XX服装销售平台的设计与实现源码(完整前后端-mysql-说明文档-LunW).zip
- 【毕业设计-JAVA】springboot-vue“漫画之家”系统毕业设计源码(完整前后端-mysql-说明文档-LunW).zip
- 【毕业设计-JAVA】springboot-vue--xx公寓管理系统实现源码(完整前后端-mysql-说明文档-LunW).zip
- 【毕业设计-JAVA】springboot-vue“智慧食堂”设计与实现源码(源代码-说明文档资料)(完整前后端-mysql-说明文档-LunW).zip
- 欧姆龙CP1H PLC程序与步科触摸屏中文注释详解:电气图纸脉冲控制三轴步科伺服与丹那赫变频器RS485通信应用指南,欧姆龙CP1H PLC与步科触摸屏控制3轴伺服电机及变频器应用案例解析(中文注释版
- 基于二阶锥模型的分布式电源优化配置:创新考虑敏感负荷与加权电压支撑,以年化社会总成本最低为目标的优化分析 采用matlab+yalmip编程,cplex或gurobi求解,实现电力系统负荷流分析 ,基


