电子工程世界电子工程世界电子工程世界

关键词

搜索

型号

搜索

AN1324

产品描述CALIBRATING THE RC OSCILLATOR OF THE ST7FLITE0 MCU USING THE MAINS
文件大小73KB,共15页
制造商ST(意法半导体)
官网地址http://www.st.com/
下载文档 全文预览

AN1324概述

CALIBRATING THE RC OSCILLATOR OF THE ST7FLITE0 MCU USING THE MAINS

文档预览

下载PDF文档
AN1324
APPLICATION NOTE
CALIBRATING THE RC OSCILLATOR OF THE
ST7FLITE0 MCU USING THE MAINS
INTRODUCTION
The ST7FLITE0 microcontroller contains an internal RC oscillator which can be trimmed to a
specific frequency with an accuracy of 1%. The oscillator frequency has to be calibrated by
software using the RCCR (RC Control Register). The value entered in the RCCR will switch on
a corresponding number of resistors that will modify the oscillator frequency. Whenever the
ST7FLITE0 microcontroller is reset, the RCCR is restored to its default value (FFh), so each
time the device is reset, you have to load the calibration value in the RCCR. There are prede-
fined calibration values stored in memory (refer to section 7.1 in the ST7FLITE0 datasheet)
You can load one of these values in the RCCR if one of the operating conditions matches that
in your application. Otherwise, you can define your own value, store it in EEPROM or any non-
volatile memory and load it in the RCCR register after each reset. However, if any of the ex-
ternal conditions (temperature or voltage, for instance) change too drastically, the stored value
may no longer produce the required 1% accuracy. One solution is to recalculate the RCCR
value after each reset, based on an external reference.
The purpose of this application note is to present a software solution using the frequency of
the European standard mains (220V/50Hz) as a timebase to adjust the internal RC oscillator
of the ST7FLITE0 to 1 MHz (1%). The same approach can also be used for the US mains
standard (110V/60Hz).
The basic software takes less than 160 ms to calibrate the oscillator and uses less than 90
bytes of program memory and five bytes of RAM for its simplest version. These RAM bytes
can be freed for other purposes when the calibration is done. Another example using averages
is given in this application note. This can be useful with noisy mains
This application note also contains the diagram of a low cost circuit which converts the mains
into a 5 volt power supply and protects the microcontroller from overcurrent on the input con-
nected to the mains.
Rev. 2
AN1324/0604
1/15
1
基于51单片机的无线识别装置系统
1 引言 射频识别是一种非接触式的自动识别技术,它通过射频信号自动识别目标对象并获取相关数据。射频识别工作无须人工干预,非接触,阅读速度快,无磨损,不受环境影响,寿命长,便于使用 ......
马子007 无线连接
ATMEL9261在pb5.0下串口调试bootloader的问题
各位大侠好! 小弟最近正在调试9261在pb5.0下的bootloader,由于我的板子上没有以太网,所以只好选择用串口下载和调试.我已经在pb5.0里的Target->connectivity options->kernel service map设为:T ......
slaoliu 嵌入式系统
【有奖问答】Xilinx网络通信专题,赢取LX9 Microboard开发板!
活动名称:读专题 赢大奖!!!    Xilinx 网络通信 专题,赢取89美金LX9 Microboard开发板。活动时间:6月19日-7月18日 活动形式:读专题:https://www.eeworld.com.cn/Xili ......
EEWORLD社区 FPGA/CPLD
如何利用 PCB 分层堆叠控制 EMI 辐射【转】
解决EMI问题的办法很多,现代的EMI抑制方法包括:利用EMI抑制涂层、选用合适的EMI抑制零配件和EMI仿真设计等。本文从最基本的PCB布板出发,讨论PCB分层堆叠在控制EMI辐射中的作用和设计技巧。 ......
eric_wang PCB设计
屏蔽的微波PCB的共振预测
46979...
yuandayuan6999 PCB设计
请问FPGA可否输入负电平?
要检测一个峰峰值-1.5V~+1.5V的正弦信号的过零点(50KHz) 怕引起毛刺,不想加脉冲整形电路了 请问能否直接将-1.5V~+1.5V的正弦信号输入给FPGA的管脚,然后用高倍时钟采样判断过零点?...
godjohsn FPGA/CPLD

技术资料推荐更多

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 大学堂 TI培训 Datasheet 电子工程 索引文件: 896  1509  1065  1926  1370  19  31  22  39  28 

器件索引   0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved