/*************************************** ****************************Name: Tang xianghengCopyright:Author:Date: 26-10-09 :52
Description:**************************************** ****************************/
/*************************************** ****************************Function: checks whether the 4*4 keyboard is pressed. If yes, the serial number of the two buttons is displayed in the middle.If no buttons are displayed, the HH S5 enables the 3, 4 dial switch, and the S6 switches are all
This experiment uses a digital tube to implement the stopwatch timing function, and uses buttons to pause, continue, reset,Enable flashing of LED lights when the digital tube is suspended1. the LED light is controlled by the C port and valid at a high level.2. The bit segment of the digital tube is controlled by port A, and the data segment is controlled by port D.3. Press the key to connect to port B.Rb0 primary keyRb2 continue keyRb4 stopwatch timing start4. Service InterruptionWhen the rb0 rs
the program.(3) pic Microcontroller instruction system is not set up a dedicated stop instruction, you can use a jump to their own unconditional jump instruction Goto to achieve.3. PIC microcontroller directiveConsists of 3 basic types of directives:A. Byte manipulation class directivesB. bit operation class InstructionC. Immediate count and control operation class directivesFor byte Operations directive,f
what file is pic?
Pic is an image file format in which the image file format is a format for recording and storing image information. To store, process and propagate digital images, it is necessary to use certain image format, that is, to organize and store the pixel of the image in a certain way, and to store the image data as a file to get the image file. The image file format determines what type of inf
register F content remains unchanged.
Execution time: one instruction cycle
Execution Process: [f]-[w] → D
Status flag impact: Z DC C
Note: The w register is a subtrahend in this command.
When [f] = [w], the result of subtraction is 0, then z = 1
If [f]> [w] does not take place, c = 1
When [f]
In fact, in the PIC single-chip microcomputer, this command is to obtain the complement code for the W register content and then add it to the subtrahend. The
] = 0x55
Movwf TMP; [TMP] = [w] = 0x55
Addlw W register and 8-bit immediate addition
Syntax: addlw K
Operand: K is an 8-digit immediate number.
Execution time: one instruction cycle
Execution Process: [w] + k → W
Status flag impact: Z DC C
Note: The w register value and the 8-bit immediate number are added, and the result is placed in the W register.
Command example:
Movlw 0xaa; W = 0xaa
Addlw 0x11; W = 0xaa + 0x11 = 0xbb
Sublw immediate count minus W register
Syntax: sublw K
Operand: K is an 8-
mplab IDE and allows Debugging Using online simulators and online debugger. The default installation directory is c: \ mcc18. After the installation is complete, open the language tool mounting Settings dialog box. You can also see the interface shown in 4.
When using mmc18 programming, you must add the connector script file (*. LKR) and header file (*. h) at the same time ). The connector script file mainly provides the storage space available for the connector and how to use the space, which
file that can be programmed.Example:#include __eeprom_data (0,1,2,3,4,5,6,7);The macro has 8 parameters, representing 8 data values, each with a value of 1BYTE. Unused values are specified as zero, or the compiler will give an error.Each time it is used, the __eeprom_data will be written from the EEPROM address zero and automatically incremented by 8.If you want to use more data, you can define the required number of EEPROM data by calling the macro multiple times. It is a good idea to put the
Byte Operation Command
Nop-; null operation
Movwf F; send W content to F
Clrw-; clear w 0
Clrf F; clear F 0
Subwf F, D; F minus W
Decf F, D; F decrease by 1
Iorwf F, D; W and F logic or
Andwf F, D; W and F logic and
Xorwf F, D; W and F are
# Include # define uchar unsigned char uchar rtemp, sflag; void serialinit (void) {txsta = 0x24; // enable the transmitting enable and high baud rate, the initial value of trmt can be 0 to 1 rcsta = 0x90; // enable serial port, continuous receiving,
PCB design
PCB design is completed under alicloud designer winter 09.PCB Creation
The PCB Board is made in the laboratory using the thermal transfer method. Use dual-sided copper clad plates to separate two sides for corrosion.
The process is as
Animation animation is used to make the UI dynamic and stylish.
There are two animation methods in Android:
One way is to make the animation
TweenAnimation, that is, you define a start and end, and the middle part is obtained by the program
Play with the decoding of the infrared remote control today!
First, understand the principle of infrared reception:
The remote control is easy to use and has many functions. It has been widely used in TV sets, VCD, DVDs, air conditioners, and other
// 13-12-09 Tang xiangheng// Master the same level of priority/* Familiar with the interrupt function. When no interruption occurs, the first digital tube ra0 on the board is displayed, and 0-9 is displayed cyclically.// When an External Interrupt
/* The mcc6 compiler is familiar with the interrupt and timer0 functions. When no interruption occurs, the first digital tube on the board is ra0,When the External Interrupt (rb0) is pressed, the digital display is paused.Device: More than 8.2 mplab
Function Description:
Lcd1602 LCD display year, month, day, hour, minute, second, week, temperature, three buttons control time and date adjustment and alarm settings.
Three buttons:
1. "school Hour" key, adjust the second, minute, hour, week,
Add the content of the addwf W register and the content of the f Data Register
Syntax: addwf F, d
Operand: F is the low 7-bit address of the data register (0x00 ~ 0x7f)
D is the low 7-bit address of the destination register (0x00 ~ 0x7f)
When d = F,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.