Deploy task-specific microcontrollers to simplify complex designs

Publisher:EE小广播Latest update time:2022-05-11 Source: EEWORLDAuthor: Microchip Technology Inc.Keywords:Microchip Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere


image.png

Ideal output of a 100 kHz V/F converter (watchdog disabled).


image.png

Ideal output of a 10 kHz V/F converter (watchdog disabled).


Duty Cycle Generator

image.png

Duty Cycle Generator Block Diagram


The solution's duty cycle generator block is responsible for creating a 50% duty cycle output. This is an optional feature - the output of the NCO could be used directly, but doing so would increase the variability of the duty cycle.


The generator is implemented using a Configurable Logic Cell (CLC). A CLC is a small block of configurable logic, similar to a cell in a Field Programmable Gate Array (FPGA). A CLC can be used as a discrete logic gate (such as AND-OR or OR-XOR), or it can be configured as a latch or a flip-flop. In this solution, the CLC is implemented as a JK flip-flop with reset. J and K are held at logic high. The output oscillator block is used as the clock for the flip-flop. Each input clock pulse causes the output to toggle, resulting in a 50% duty cycle. Note: Frequency jitter in the output oscillator block will have an effect on the duty cycle.


Timer 6 is used as an astable "watchdog" timer. If the output does not generate an edge (rising or falling), the timer will overflow and the resulting clock pulse will be sent to the CLC, which controls the lower limit of the output frequency range. Instead of reaching DC, the output rolls over to half the timer frequency (6 Hz output).


Key points of the solution


This example shows that to create core-independent functionality using hardware peripherals, an external integrated circuit must usually be used. One of the biggest advantages of this configuration is that the operation of the peripherals can be set up in software, making it easy to adapt the example to the end application. Due to the large number of peripherals used, the PIC18-Q43 family of MCUs was chosen to implement this example.

For more information on this example, see the README document in the examples repository. Additionally, the examples repository contains an implementation of a frequency-to-voltage converter that can be implemented on the same device as the voltage-to-frequency converter.


Summarize


While high-performance microcontrollers and microprocessors have their place, 8-bit and 16-bit MCUs can be used to perform small, specialized tasks. These tasks are not necessarily complex, but they can be time-consuming or time-critical. With a lighter workload, 32-bit devices can have simpler implementations, resulting in higher reliability, less memory usage, and lower power consumption.


[1] [2]
Keywords:Microchip Reference address:Deploy task-specific microcontrollers to simplify complex designs

Previous article:New strength added to domestic general-purpose MCUs--Xinji Semiconductor launches the HPM6300 series
Next article:Mir MYC-J1028X new product released! Dual-core Cortex A72+ supports 6 Gigabit industrial network ports!

Recommended ReadingLatest update time:2024-11-16 12:46

L298N DC Motor Speed ​​Control System Based on 51 Single Chip Microcomputer
This design selects STC89C52 MCU as the main control chip, selects DC motor with photoelectric encoder as the controlled object, uses T0 timer of MCU to generate PWM signal and sends it to DC motor. In Proteus simulation environment, L298N DC motor drive circuit, matrix keyboard scanning circuit and LCD12864 display c
[Microcontroller]
L298N DC Motor Speed ​​Control System Based on 51 Single Chip Microcomputer
Wireless data transmission design between AT89C52 microcontroller and PC
In some special applications, microcontroller communication cannot use wired data transmission, but requires short-distance wireless data transmission. Short-distance wireless transmission has the advantages of strong anti-interference ability, high reliability, good security, few geographical restrictions, and flexib
[Microcontroller]
Wireless data transmission design between AT89C52 microcontroller and PC
Design and writing of C program for STC single chip AD and EEPROM driver
The stc microcontroller has the advantages of in-application programming and convenient debugging; it has a 10-bit AD; internal eeprom; it can work at 1T/machine cycle, which is 12 times the speed of traditional 51 microcontrollers; the following is the AD and EEPROM driver C code I wrote: /*--------------------------
[Microcontroller]
Design of AT89S51 microcontroller and 82C55 interface chip
1.Hardware interface circuit The figure below shows the circuit diagram of AT89S51 microcontroller extended by an 82C55. In the figure, 74LS373 is the address latch. P0.1 and P0.0 are connected to the address lines A1 and A0 of 82C55 through 74LS373; P0.7 is connected to the chip select terminal CS through 74LS373, an
[Microcontroller]
Design of AT89S51 microcontroller and 82C55 interface chip
Detailed introduction to the internal structure and functions of STC12C5A60S2 microcontroller
The STC12C5A60S2 microcontroller is a relatively powerful microcontroller. Among the many 51 series microcontrollers, the 1T enhanced series of the domestic STC company is more competitive because it is not only fully compatible with 8051 instructions and pins, but also has on-chip It has a large-capacity program memo
[Microcontroller]
MCU programming practice infrared interrupt timing 12864 step by step explanation
This is actually an experiment of infrared remote control programming process. The idea is this: The infrared receiving tube uses the interrupt port to receive the signal; In the interrupt subroutine, when the high and low levels change, a timer is used to count the duration of the high and low levels. Display the
[Microcontroller]
Why does the AVR microcontroller need to write 1 as the interrupt flag to clear 0?
I have read a lot of relevant information on the question of "Why AVR uses writing 1 as a means to clear the interrupt flag bit". The AVR manual does not explain why, but only emphasizes "writing 1 to clear the interrupt flag bit". At the same time, I have also seen many new chips, such as DSP, which also use writing
[Microcontroller]
Why does the AVR microcontroller need to write 1 as the interrupt flag to clear 0?
MSP430 MCU realizes clock display
The MSP430 series of microcontrollers is an ultra-low power controller. Each series consists of different modules according to different needs. Its FLASH series makes efficient electronic systems lightweight. FLASH memory also has strong flexibility. At the same time, in order to obtain a higher stable frequency und
[Microcontroller]
MSP430 MCU realizes clock display
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号