Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for recalibrating base line PIC single chip microcomputer inner oscillator

A technology of recalibration and single-chip microcomputer, applied in the direction of response error generation, etc., can solve problems such as increasing the difficulty of hardware and software design

Inactive Publication Date: 2014-04-30
刘宝成
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method first needs to build an oscillator or prepare a standard signal source, and secondly, it needs to design a display circuit to display the calibration value, which increases the difficulty of hardware and software design.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for recalibrating base line PIC single chip microcomputer inner oscillator
  • Method for recalibrating base line PIC single chip microcomputer inner oscillator
  • Method for recalibrating base line PIC single chip microcomputer inner oscillator

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0007] One embodiment of the present invention is to recalibrate the internal oscillator of the PIC10F202 microcontroller in SOT-23 package. This MCU has only 6 pins, only the internal oscillator, the nominal value of the internal oscillator is 4MHz, and the instruction cycle is 1μs. Since the PIC10F202 microcontroller does not have a serial port, the software simulation method is used to realize the serial port and only need to simulate the output timing of the serial port in 10-bit frame format. If the baud rate of 9600 is used, the time to transmit 1 bit of data is about 104μs. Through the simulation of MPLAB SIM function of Microchip's integrated development environment MPLAB IDE, the execution cycle of each instruction is calculated according to the nominal value of 4MHz, and the assembly The language design of the serial port sending subroutine makes the sending time of each bit of data including the start bit and stop bit accurate to 104μs. image 3 It is the flow char...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of single chip microcomputers, in particular to a method for recalibrating oscillating frequency of a base line PIC single chip microcomputer inner oscillator of the Microchip company. The method has the advantages that only one software program of a single chip microcomputer which needs recalibrating needs to be designed, the serial asynchronous communication principle is used, the single chip microcomputer is used as a sending end, asynchronous clock signals of a receiving end are used as a reference source, the single chip microcomputer sends specific data and a current calibrating value under different oscillating frequencies, and receiving is carried out through the receiving end. When the receiving end receives correct sent data, a clock sent by the sending end and a received clock of the receiving end are consistent, the frequency of the current single chip microcomputer inner oscillator is determined hereby, and accordingly the calibrating value is obtained. According to the calibrating value, the inner oscillator can work within + / - 0.5% of the nominal oscillating frequency theoretically.

Description

technical field [0001] The invention relates to the field of single-chip microcomputers, and mainly relates to the recalibration of the oscillation frequency of the internal oscillator of the baseline PIC single-chip microcomputer of Microchip Company with an internal oscillator. technical background [0002] Except for the three models of PIC16F54 / 57 / 59, Microchip's baseline PIC microcontrollers have internal oscillators, and the oscillation frequency of the internal oscillators is generally calibrated at ±1% at the factory. These single-chip microcomputers can add 1 to 2 I / O port lines when using the internal oscillator, which brings greater convenience to users. The baseline PIC microcontroller with an internal oscillator is programmed with an instruction MOVLW XX in the last unit of the program memory when it leaves the factory, where XX is the calibration value, and the address of this unit is stored in the reset vector. When reset, the MOVLW XX instruction is automati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/07
Inventor 刘宝成
Owner 刘宝成
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More