资料
  • 资料
  • 专题
PIC校准内部RC振荡器
推荐星级:
时间:2019-12-24
大小:282.49KB
阅读数:164
上传用户:978461154_qq
查看他发布的资源
下载次数
0
所需E币
4
ebi
新用户注册即送 300 E币
更多E币赚取方法,请查看
close
资料介绍
Recently, Microchip has introduced a series of new PIC16 and PIC18 PICmicro ® microcontrollers that have an on-board Internal RC Oscillator, capable of eight frequencies from 31 kHz to 8 MHz. These microcontrollers include the following devices: • PIC16F818/819 • PIC16F87/88 •PIC18F1X20 • PIC18F2220/2320/4220/4320 The internal RC oscillator is configured and tuned by the OSCCON and OSCTUNE registers, respectively. The OSCCON register sets the frequency and contains the IOFS bit, which indicates when the frequency has stabilized after a frequency change in the OSCCON register. OSCTUNE is responsible for tuning the fre- quency within a range of +/-12 percent on the selected frequency. The upper range of tuning is 01h - 1Fh and the lower range is 20h - 3Fh, with center frequency at 00h. It is recommended to consult the device data sheet for further details. The assembly code included in this application note (see Appendix A) is only applicable for a PIC16F819 microcontroller; however, with minor changes, the code can be ported over to the devices listed above. Having an internal RC oscillator eliminates the need for capac- itors and an external crystal, resulting in production cost savings. You may be wondering, “Why would it be necessary to calibrate the internal oscillator if it is supposed to come from the factory already calibrated?” Even though the internal oscillator is factory calibrated at 25°C, temper- ature variations in the operating environment must be considered. Since a change in frequency, as little as two to three percent, can corrupt serial communication, the information presented in this application note can help you avoid this issue by allowing frequency calibration over temperature. AN244 Internal RC Oscillator Calibration The ability to calibrate the internal oscillator means that Author: Chris Valenti a known time-base must be established as a reference Microchip Technology Inc. point. This time-base will be derived from a 32.768 kHz clock crystal connected to Timer1 (see Figure 1). Other INTRODUCTION fixed time-bases that can be used are AC line ……
版权说明:本资料由用户提供并上传,仅用于学习交流;若内容存在侵权,请进行举报,或 联系我们 删除。
PARTNER CONTENT
相关评论 (下载后评价送E币 我要评论)
没有更多评论了
  • 可能感兴趣
  • 关注本资料的网友还下载了
  • 技术白皮书