Method of operating a microcontroller chip having an internal RC oscillator, and microcontroller chip embodying the method
    1.
    发明公开
    Method of operating a microcontroller chip having an internal RC oscillator, and microcontroller chip embodying the method 有权
    一种操作微控制器芯片与内部RC振荡器和微控制器芯片,用于实现该方法的方法

    公开(公告)号:EP1378998A1

    公开(公告)日:2004-01-07

    申请号:EP02291700.9

    申请日:2002-07-05

    IPC分类号: H03L1/00

    CPC分类号: H03L1/00

    摘要: The chip has a CPU (12), memories (13, 14) for programs and data, peripheral units (18, 19) for interacting with the outside world, and an internal RC oscillator (17) for providing clock signals. One of the peripheral units (18) has a timer counter incremented at a frequency derived from the RC oscillator. The method does not try to change the frequency of the RC oscillator. Instead, an external calibration source (21) is connected to a capture input of the timer unit to provide a signal having a reference frequency, e.g. the mains frequency. The counter is sampled on active edges of that signal, and the sampled values are processed to derive a calibration ratio. After these calibration steps, a software correction is applied to parameters handled by programs stored in memory based on the calibration ratio to compensate for frequency variations of the RC oscillator.

    摘要翻译: 该芯片具有用于程序和数据,用于与外界交互的CPU(12),存储器(13,14),外围单元(18,19),以及内部RC振荡器(17),用于提供时钟信号。 一个外围单元(18)的具有在从RC振荡器产生的频率递增一个定时器计数器。 该方法不试图改变RC振荡器的频率。 相反,外部校准源(21)被连接到所述定时器单元的一个捕获输入,以提供具有参考频率的信号,例如 电源频率。 该计数器在信号那样的有源边缘采样,并且将采样值进行处理以导出校准比率。 后合成校准步骤,一个软件校正应用于由存储在基于校准比率存储器以补偿所述RC振荡器的频率变化的程序处理参数。