Making a Renesas RA microcontroller Time Check with the Clock Frequency Accuracy Measurement Circuit
In this blog, We'd like to look at another more unusual and less understood peripheRAls available in the RA microcontroller family, the Clock Frequency Accuracy Measurement Circuit or CAC. The Clock Frequency Accuracy Measurement Circuit is designed to enable us to check the accuracy of many of the internal and external clock sources available on the RA microcontrollers by allowing us to automatically reference them against each other, indicating when there is an unexpected deviation from the resulting comparison.
The CAC was originally designed to help us improve the safety and reliability of our systems, by enabling self-test functionality for the clock system, but as you will see, it also has other uses as well.
You can see the block diagram of the CAC here.
The CAC allows us to select from a wide range of internal and external clock sources, both as the reference signal and as the target clock which you want to confirm the oscillation speed.
You can typically select inputs from both the main clock and the 32kHz external clock inputs, for the internal on-chip oscillators, the HOCO, MOCO, and LOCO, and the independent watchdog iWDT clock. You can also select PCLKB, the internal peripheral clock as an input. Each clock input, both for the reference clock and the target clock can then be scaled by selecting the appropriate divider ratio.
Each of these clocks can be selected as either the reference or target clock, you have one additional option for the reference signal, and you can also select an external clock input which allows you to input an accurate reference clock from external test equipment.
The reference clock is used as a time base, and the number of clock pulses of the clock to be measured that occur during one cycle of the reference clock is counted in a register. After the measurement period is complete, the number of pulses in the count register is compared to minimum and maximum expected values that are stored in the CAC's compare registers, and an interrupt can be generated if the clock is detected to be out of range.
This is an ideal method for checking that the calibration of the internal clocks has been set up correctly, or if there is some issue in the initialization of the clock registers that may cause a timing error. The great thing is that once set up, it can operate autonomously, and you can get an interruption if the system detects an error. You can also generate an error if the counter overflows or at the end of each measurement, as perhaps you only want to use this function occasionally to check the accuracy of various clock sources.
The CAC was designed to support self-tests to detect errors with the system clocks, however, it can also be useful for other purposes, especially if we use the external reference pin.
As an example, if you have an external signal, which indicates the health of a system, which changes frequency depending on the system state, the CAC is an ideal solution to measure this signal and detect when it changes frequency. In this case, you effectively use the CAC in reverse, you input your signal to the external reference pin, and select the relevant clock signals, divider settings, and comparator settings to detect an error if your reference signal frequency goes out of range of the "healthy" frequency, so indicating a system error. The CAC can then generate an error if it detects this condition.
The CAC is a useful peripheral that we can use to help check the health of the system, especially useful if you have a consumer or industrial application where system reliability can be very important. Still, as we've seen, it can also be used for monitoring external pulse trains and detecting when the frequency of the pulses changes.
- |
- +1 赞 0
- 收藏
- 评论 0
本文由Vicky转载自Renesas Blogs,原文标题为:Making a Time Check with the Clock Frequency Accuracy Measurement Circuit,本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。
相关推荐
Using ECC to Correct Soft Errors on the RA Family Microcontroller
This article specifically likes to look at the error correction function available to use on the RA SRAM to detect and, in many cases, correct soft errors, as this has been a topic of discussion for a number of customers recently.
设计经验 发布时间 : 2023-06-29
Reducing Noise Issues in Microcontroller Systems with RENESAS MCU
In this article, Renesas took a look at the differences between the idealized digital world and the real world we must design for, and looked at the various types of noise we need to manage. We’ll look at some of the typical noise sources that we can come across.
设计经验 发布时间 : 2023-06-22
雅特力(Artery)AT32全系列32位微控制器(MCU)选型指南(英文)
描述- Founded in 2016, ARTERY Technology is a professional design company that is committed to promoting innovative development of the 32-bit microcontroller industry, supported by its state-of-the-art R&D technology, a comprehensive set of IP databases, and deep expertise in resource integration.
型号- AT-SURF-F437,AT32F413CCU7,AT32A403ACGU7,AT32F405CCU7,AT32F403A SERIES,AT32F405 SERIES,AT32F407 SERIES,AT32L021K6U7-4,AT32F421K6T7,AT32F425R8T7,AT32F423VBT7,AT32F423RBT7-7,AT32A403ACGT7,AT32A423RBT7-7,AT32A423CCU7,AT32F413CBT7,AT32F435CMT7,AT32F403ARCT7,AT32L021C4T7,AT32F435RCT7,AT32F435ZGT7,AT32F405CCT7,AT32F403ACET7,AT32A423R8T7,AT32L021K8T7,AT32A423 SERIES,AT32 WB SERIES,AT32F437 SERIES,AT32A423CBT7,AT32L021F8P7,AT32-AUDIO-EV,AT32F435CMU7,AT32F415KBU7-4,AT32F413CBU7,AT32F402CBT7,AT32F405KCU7-4,AT32F407RCT7,AT32L021G4U7,AT32F403ACGU7,AT32F425K8U7-4,AT32F402KBU7-4,AT32F425R8T7-7,AT32F415RCT7,AT32F423VCT7,AT32F402CBU7,AT32-COMM-EV,AT32F423T8U7,AT32F425K6T7,AT32F435CDT7,AT32F405RBT7,AT32A403ARCT7,AT32F421K6U7,AT32F421G8U7,AT32F415RBT7-7,AT32F421F4P7,AT32A423CCT7,AT32 F SERIES,AT32F413KCU7-4,AT32F425F6P7,AT32F423C8T7,AT32A403ACEU7,AT32F421 SERIES,AT32F423 SERIES,AT32F423RCT7-7,AT32A423TBU7,AT32A423C8T7,AT32-MOTOR-EV,AT32F421K8T7,AT32-LCD-EV,AT32F413C8T7,AT32F415RBT7,AT32F403ARET7,AT32F435CGT7,AT32A423K8U7-4,AT32A403ACET7,AT32F435VCT7,AT32A423C8U7,AT32F403ACGT7,AT32F421C4T7,AT32L021K6T7,AT32A423R8T7-7,AT32F403AVCT7,AT32L021F6P7,AT32F415RCT7-7,AT32F435CGU7,AT-LINK-ISO+,AT32F415CCT7,AT32F405KBU7-4,AT32F407VCT7,AT32F405CBU7,AT32F415KCU7-4,AT32A423TCU7,AT32F407RET7,AT32F415 SERIES,AT32 A,AT32A423CBU7,AT32F435RMT7,AT32L021K8U7,AT32L021,AT32 F,AT-LINK-EZ,AT32 L,AT32A423KBU7-4,AT32F423C8U7,AT32F435RDT7,AT32L021F8U7,AT32F425K8T7,AT32F405CBT7,AT32A403AVCT7,AT32F421K8U7,AT32A403ARET7,AT32F423TBU7,AT32F421K6U7-4,AT32F435-DVP-EV,AT32F421F6P7,AT32F403A,AT32 L SERIES,AT32F402 SERIES,AT32A403ACCU7,AT32F415CBT7,AT32F415R8T7,AT32F425F8P7,AT32A403A,AT32F423R8T7,AT32F425C6U7,AT32A423T8U7,AT-START,AT32F421K4U7-4,AT32A,AT32F423CCU7,AT32F402RCT7,AT-LINK,AT32L021C8T7,AT32F403ARGT7,AT32WB415CCU7-7,AT32F415CCU7,AT32A403ACCT7,AT32F403AVET7,AT32F435RGT7,AT32F435VMT7,AT32F421C6T7,AT32A423VBT7,AT32L021K4U7-4,AT32L021K4T7,AT32F423TCU7,AT32F405RBT7-7,AT32F413KBU7-4,AT32F435ZCT7,AT32 A SERIES,AT32F423CCT7,AT32WB415,AT32L021F4P7,AT32L021G8U7,AT32F407VET7,AT32F413 SERIES,AT32F407RGT7,AT32F403ACCU7,AT32L021K6U7,AT32F423CBU7,AT32A423RCT7-7,AT32F435VDT7,AT-LINK FAMILY,AT32F415CBU7,AT32L021K8U7-4,AT32A423VCT7,AT32L021F6U7,AT32A403AVET7,AT32 WB,AT32F425K6U7-4,AT32F425C6T7,AT32F421G4U7,AT32A403ARGT7,AT32A423KCU7-4,AT32F425 SERIES,AT32F421F8P7,AT32F423CBT7,AT32F413RCT7,AT32F425R6T7-7,AT32F413,AT32F423V8T7,AT32F415,AT32F423KCU7-4,AT32F402CCT7,AT32F421K4T7,AT32F435CDU7,AT32F425C8U7,AT32WB415 SERIES,AT32F425R6T7,AT32F423RBT7,AT32F423K8U7-4,AT32F421,AT32F402,AT32F435VGT7,AT32F405,AT32A423RBT7,AT32L021C6T7,AT32F407,AT32F402CCU7,AT32F421C8T7,AT32F435CCT7,AT32F403AVGT7,AT32F405RCT7,AT32F423R8T7-7,AT32F403ACCT7,AT32F435ZMT7,AT32A423V8T7,AT32F413RBT7,AT32F405RCT7-7,AT32F415C8T7,AT32F402RBT7-7,AT32F435,AT32F437,AT32F407VGT7,AT32F435CCU7,AT32L021G6U7,AT32,AT32F402RCT7-7,AT32F403ACEU7,AT32F415K8U7-4,AT32L021K4U7,AT32F415R8T7-7,AT-LINK+,AT32F423RCT7,AT32F402KCU7-4,AT32F402RBT7,AT32F423,AT32F425,AT32F413CCT7,AT32A423RCT7,AT32F421K4U7,AT32F421K8U7-4,AT32L021F4U7,AT32F425C8T7,AT32A403AVGT7,AT32F421G6U7,AT32F423KBU7-4,AT32F435ZDT7,AT32A423
CS32L010 ARM® Cortex®-M0 32-bit ultra-low power consumption microcontroller Datasheet
型号- CS32L010F8K6,CS32L010,CS32L010F8U6
RH850/U2A SERIES MICROCONTROLLER INTRODUCTION
型号- RH850/U2X,RH850/X1X,RH850/X2X,F1KH,U2A3,U2A16,F1KM,RH850/P1M-C,RH850/P1M-E,RH850/U2A8,RH850/E2X,RH850/P1M,RH850/P1L-C,RH850/U2A16,RH850/U2A6,U2A8,U2A6,RH850/U2A3,RH850/P1H-C,RH850G4MH,RH850,RH850/U2A,RH850/E1M-S2,F1H
RH850 Family Renesas microcontroller User's Manual: Hardware
型号- R7F7016124AFD,R7F7016124AFE,R7F7016203AFP-C,RH850/F1K,R7F7016233AFD,R7F7016233AFE,R7F7015423AFD,R7F7015664AFE,R7F7016204AFE,R7F7015423AFE,R7F7016204AFD,R7F7015664AFD,R7F7015773AFE,R7F7015773AFD,R7F7015423AFP-C,R7F7015623AFP-C,R7F7016234AFP-C,R7F7015823AFP-C,R7F7016034AFP-C,R7F7015864AFE,R7F7015434AFD,R7F7015973AFD,R7F7015434AFE,R7F7015973AFE,R7F7015864AFD,R7F7016033AFE,R7F7016033AFD,R7F7016863AFP-C,R7F7016463AFP-C,R7F7016453AFP-C,R7F7015664AFP-C,R7F7015633AFP-C,R7F7015624AFE,R7F7015624AFD,R7F7016463AFE,R7F7016463AFD,R7F7015573AFE,R7F7015823AFE,R7F7015573AFD,R7F7015823AFD,R7F7015873AFP-C,R7F7015473AFP-C,R7F7016864AFD,R7F7016864AFE,R7F7016853AFP-C,R7F7016024AFP-C,R7F7015604AFP-C,R7F7015474AFE,R7F7016123AFE,R7F7015474AFD,R7F7016123AFD,R7F7015774AFD,R7F7016853AFD,R7F7016853AFE,R7F7015774AFE,R7F7015463AFD,R7F7015463AFE,R7F7016213AFP-C,R7F7015863AFE,R7F7015863AFD,R7F7015433AFE,R7F7015834AFD,R7F7015433AFD,R7F7015834AFE,R7F7016473AFP-C,R7F7015614AFP-C,R7F7015574AFP-C,R7F7016234AFD,R7F7016473AFD,R7F7016473AFE,R7F7016234AFE,R7F7015604AFE,R7F7015604AFD,R7F7016114AFD,R7F7016223AFE,R7F7016114AFE,R7F7015874AFD,R7F7015874AFE,R7F7016223AFD,R7F7015813AFE,R7F7016214AFP-C,R7F7015864AFP-C,R7F7015813AFD,R7F7015974AFE,R7F7015473AFE,R7F7015974AFD,R7F7015473AFD,R7F7016113AFD,R7F7016483AFP-C,R7F7016113AFE,R7F7016023AFP-C,R7F7015673AFP-C,R7F7015634AFP-C,R7F7016224AFP-C,R7F7015824AFE,R7F7015433AFP-C,R7F7015824AFD,F7016123AFP-C,R7F7016863AFE,R7F7015874AFP-C,R7F7016863AFD,R7F7015663AFP-C,R7F7016103AFP-C,R7F7016864AFP-C,R7F7015603AFE,R7F7015603AFD,R7F7016233AFP-C,R7F7015873AFE,R7F7016843AFD,R7F7015873AFD,R7F7016224AFE,R7F7016224AFD,R7F7016134AFP-C,R7F7016843AFE,R7F7015424AFP-C,R7F7016213AFD,R7F7015833AFD,R7F7016104AFD,R7F7016213AFE,R7F7016104AFE,R7F7015833AFE,R7F7015624AFP-C,R7F7016204AFP-C,R7F7016483AFE,R7F7016033AFP-C,R7F7016483AFD,R7F7015824AFP-C,R7F7015614AFD,R7F7015614AFE,R7F7016493AFP-C,R7F7015673AFD,R7F7015673AFE,R7F7016103AFE,R7F7016103AFD,R7F7016443AFD,R7F7016443AFE,R7F7015803AFP-C,RH850 FAMILY,R7F7015573AFP-C,R7F7016223AFP-C,R7F7015973AFP-C,R7F7015434AFP-C,R7F7015834AFP-C,R7F7015674AFP-C,R7F7016443AFP-C,R7F7015814AFE,R7F7015814AFD,R7F7016843AFP-C,RH850/F1KM,R7F7015633AFE,R7F7015803AFE,R7F7015803AFD,R7F7015863AFP-C,R7F7016024AFE,R7F7016024AFD,R7F7015463AFP-C,R7F7015633AFD,R7F7016214AFE,R7F7016214AFD,R7F7016034AFD,R7F7016034AFE,R7F7015814AFP-C,R7F7016493AFE,R7F7016493AFD,R7F7016134AFD,R7F7015674AFD,R7F7016134AFE,R7F7015674AFE,R7F7015613AFE,R7F7015613AFD,R7F7016124AFP-C,R7F7010XXXAFD,R7F7010XXXAFE,R7F7015424AFD,R7F7015424AFE,R7F7015663AFD,R7F7015663AFE,R7F7016203AFD,R7F7016203AFE,R7F7015574AFD,R7F7016844AFD,R7F7016844AFE,R7F7015813AFP-C,R7F7015613AFP-C,R7F7015574AFE,R7F7015774AFP-C,R7F7015974AFP-C,R7F7016113AFP-C,R7F7016854AFD,R7F7016114AFP-C,R7F7015833AFP-C,R7F7015603AFP-C,R7F7015464AFP-C,R7F7016844AFP-C,R7F7016854AFE,R7F7015464AFD,R7F7015464AFE,R7F7015804AFE,R7F7015804AFD,R7F7015773AFP-C,R7F7016453AFD,R7F7016023AFE,R7F7016453AFE,R7F7016023AFD,R7F7015634AFD,R7F7015634AFE,R7F7016854AFP-C,R7F7015474AFP-C,R7F7015804AFP-C,R7F7016104AFP-C,R7F7015623AFE,R7F7015623AFD,R7F7016133AFP-C,R7F7016133AFE,R7F7016133AFD
M433 Series NuMicro® Family Arm® Cortex®-M4-based Microcontroller Datasheet
型号- M433 SERIES,M433,M433LE8AE,M433SE8AE
Renesas Delivers New RA8 MCU Group Targeting Graphic Display Solutions and Voice/Vision Multimodal AI Applications
Renesas introduced the RA8D1 microcontroller (MCU) group. RA8D1 MCUs deliver breakthrough performance of over 6.39 CoreMark/MHz1 combined with ample memory, graphics and peripheral functions optimized to address diverse graphics display solutions, and Voice/Vision Multimodal AI requirements for a range of applications in building automation, home appliances, smart home, consumer, and medical market segments.
产品 发布时间 : 2023-12-14
V850ES/Fx3 32-bit Single-Chip Microcontroller
型号- UPD70F3376AM2GCA1-UEU-AX,UPD70F3379M2GJA-GAE-AX,UPD70F3372M2GKA-GAK-AX,UPD70F3380M1GJA-GAE-AX,UPD70F3382M2GJA2-GAE-AX,UPD70F3383M1GMA-GAR-AX,UPD70F3384M1GMA-GAR-AX,UPD70F3373M2GKA-GAK-AX,UPD70F3372M1GKA1-GAK-AX,UPD70F3372M1GKA2-GAK-AX,UPD70F3385M1GMA-GAR-AX,UPD70F3379M2GJA1-GAE-AX,UPD70F3383M2GMA2-GAR-AX,UPD70F3382M2GJA1-GAE-AX,UPD70F3383M2GMA1-GAR-AX,UPD70F3379M2GJA2-GAE-AX,UPD70F3381M1GJA-GAE-AX,UPD70F3378M2GJA-GAE-AX,UPD70F3382M1GJA-GAE-AX,UPD70F3373M1GKA-GAK-AX,UPD70F3380M1GJA2-GAE-AX,UPD70F3384M1GMA2-GAR-AX,UPD70F3375M1GCA1-UEU-AX,UPD70F3385M1GMA2-GAR-AX,UPD70F3382M2GJA-GAE-AX,ΜPD70F3376A,UPD70F3378M1GJA-GAE-AX,UPD70F3380M2GJA-GAE-AX,UPD70F3381M2GJA-GAE-AX,UPD70F3379M1GJA-GAE-AX,UPD70F3373M1GKA2-GAK-AX,UPD70F3379M1GJA2-GAE-AX,V850ES/FX3,UPD70F3373M1GKA1-GAK-AX,UPD70F3374M1GCA)-UEU-AX,ΜPD70F3371,UPD70F3370AM1GBA2-GAH-AX,UPD70F3371M2GBA2-GAH-AX,UPD70F3374M2GCA1-UEU-AX,UPD70F3376AM1GCA1-UEU-AX,UPD70F3376AM1GCA2-UEU-AX,ΜPD70F3377A,UPD70F3378M2GJA1-GAE-AX,ΜPD70F3378,ΜPD70F3379,UPD70F3372M1GKA-GAK-AX,V850ES/FF3,UPD70F3384M2GMA1-GAR-AX,UPD70F3384M2GMA2-GAR-AX,ΜPD70F3374,UPD70F3377AM1GCA-UEU-AX,ΜPD70F3375,ΜPD70F3372,ΜPD70F3373,UPD70F3374M1GCA1)-UEU-AX,UPD70F3382M1GJA1-GAE-AX,UPD70F3371M1GBA2-GAH-AX,UPD70F3377AM2GCA2-UEU-AX,UPD70F3380M1GJA1-GAE-AX,UPD70F3384M1GMA1-GAR-AX,UPD70F3375M1GCA2-UEU-AX,ΜPD70F3381,ΜPD70F3382,UPD70F3376AM2GCA-UEU-AX,ΜPD70F3380,UPD70F3377AM1GCA2-UEU-AX,ΜPD70F3370A,V850ES/FG3,ΜPD70F3385,UPD70F3376AM2GCA2-UEU-AX,ΜPD70F3383,ΜPD70F3384,V850 FAMILY,UPD70F3378M1GJA1-GAE-AX,UPD70F3378M1GJA2-GAE-AX,UPD70F3375M1GCA-UEU-AX,UPD70F3375M2GCA2-UEU-AX,UPD70F3373M2GKA1-GAK-AX,UPD70F3373M2GKA2-GAK-AX,UPD70F3383M1GMA1-GAR-AX,UPD70F3385M2GMA2-GAR-AX,UPD70F3380M2GJA1-GAE-AX,V850,UPD70F3380M2GJA2-GAE-AX,UPD70F3385M2GMA1-GAR-AX,UPD70F3375M2GCA1-UEU-AX,UPD70F3376AM1GCA-UEU-AX,V850ES/FE3,UPD70F3370AM2GBA-GAH-AX,UPD70F3371M1GBA1-GAH-AX,UPD70F3375M2GCA-UEU-AX,UPD70F3377AM2GCA1-UEU-AX,UPD70F3382M1GJA2-GAE-AX,UPD70F3381M1GJA2-GAE-AX,UPD70F3383M1GMA2-GAR-AX,UPD70F3374M2GCA-UEU-AX,UPD70F3377AM1GCA1-UEU-AX,UPD70F3371M2GBA-GAH-AX,UPD70F3370AM2GBA2-GAH-AX,UPD70F3379M1GJA1-GAE-AX,V850ES,UPD70F3370AM1GBA1-GAH-AX,UPD70F3372M2GKA1-GAK-AX,UPD70F3371M2GBA1-GAH-AX,UPD70F3374M2GCA2-UEU-AX,UPD70F3378M2GJA2-GAE-AX,UPD70F3381M2GJA1-GAE-AX,UPD70F3381M2GJA2-GAE-AX,UPD70F3372M2GKA2-GAK-AX,V850ES/FJ3,UPD70F3370AM2GBA1-GAH-AX,UPD70F3374M1GCA2-UEU-AX,V850ES/FX3 SERIES,UPD70F3381M1GJA1-GAE-AX,UPD70F3371M1GBA-GAH-AX,UPD70F3385M1GMA1-GAR-AX,UPD70F3377AM2GCA-UEU-AX,UPD70F3384M2GMA-GAR-AX,UPD70F3383M2GMA-GAR-AX,UPD70F3385M2GMA-GAR-AX,UPD70F3370AM1GBA-GAH-AX,V850ES/FK3
XC167CI High Performance 16-bit Microcontroller with Embedded Flash for Industrial Applications
型号- SAF-XC167CI-16F40F,SAF-XC167CI-32F40F,XC167CI,SAK-XC167CI-32F40F,SAK-XC167CI-16F40F
Recommending the H8S Family Microcontroller IP to Users Looking For H8/3048-like IP
It might be assumed that Renesas should promote the H8/3048F IP as the main 16-bit microcontroller product of the family. However, Renesas decided to promote the H8S as the main IP for several reasons.
原厂动态 发布时间 : 2022-11-16
电子商城
品牌:EPSON
品类:32-bit Single Chip Microcontroller
价格:¥35.1261
现货: 4,800
现货市场
登录 | 立即注册
提交评论