英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流

 找回密码
 立即注册
搜索
电子烟方案单片机单片机开发深圳单片机开发
单片机方案国产单片机8位单片机电子烟方案开发
查看: 2407|回复: 0
打印 上一主题 下一主题

编程时的配置字设置

[复制链接]
跳转到指定楼层
1#
发表于 2009-5-20 17:39:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
CP1 and CP0 = Code Protection
DEBUG = In-Circuit Debugger Mode
WRT = Flash Program Memory Write Enable
CPD = Data EE Memory Code Protection
LVP = Low Voltage In-Circuit Serial Programming Enable
BODEN = Brown-Out Reset Enable bit
PWRTE = Power-up timer Enable bit
WDTE = Watchdog timer Enable bit
FOSC1 and FOSC0 = Oscillator Selection bits
Mode Range
XT 0.1 - 4MHz
LP 5 - 200KHz
RC / EXTRC DC - 4MHz
IntRC Fixed 4MHz
HS 4 - 20MHz
XT = XTAL = Standard Crystal Mode
LP = Low Power
RC / ExtRC = External RC
IntRC = Internal Fixed 4MHz Resistor /Capacitor clock
HS = High Speed
Other oscillator modes may exist - check the device datasheet
Typically the timeout period for the Watchdog Timer is 18ms,
Another feature enabled through the configuration bits is the Brown-Out Reset or
BOR. The function of Brown-Out Reset is to reset the CPU when VDD drops below
VBOR, this is typically at 4 volts.
The BOR will hold the device in reset for as long as VDD remains below VBOR.
When VDD rises above VBOR, the device is held in reset for additional time by the
PoWeR-up Timer (PWRT).
If VDD should drop below VBOR at anytime, the BOR will then restart the process
again.
The PWRT allows VDD to rise to an acceptable level to prevent ambiguous operation
Operates on an internal RC oscillator
PWRT is always be enabled when BOR is enabled
It operates on an internal RC oscillator that provides a nominal 72ms delay.
Allows PIC16F87X programming at Logic Level Signals, VPP of 13 Volts not required.
LVP is enabled from the factory, turn off if not used.
When LVP enabled  RB3 is dedicated to LVP, and is not available for firmware use.
Raising RB3 to VDD and then MCLR to VDD will enter programming mode.
High voltage programming is still available.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|公司首页|Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 ( 粤ICP备09008620号 )

GMT+8, 2024-11-1 11:31 , Processed in 0.051984 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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