Web Analytics
Datasheet 搜索 > 8位微控制器 > Microchip(微芯) > PIC18F47K40-I/P 数据手册 > PIC18F47K40-I/P 用户编程技术手册 3/52 页
PIC18F47K40-I/P
器件3D模型
22.929
导航目录
PIC18F47K40-I/P数据手册
Page:
of 52 Go
若手册格式错乱,请下载阅览PDF原文件
2.3 Assembly Language Program Structure 39
Example 2.1
The following instructions contain valid labels:
(a) loop addwf 0x20,F,A
(b) _again addlw 0x03
(c) c?gtm andlw 0x7F
(d) may2_june bsf 0x07, 0x05,A
The following instructions contain invalid labels:
(e) isbig btfsc 0x15,0x07,B ;label starts at column 2
(f) 3or5 clrf 0x16,A ;label starts with a digit
(g) three-four cpfsgt 0x14,A ;label contains illegal character “-”
2.3.2 The Mnemonic Field
This field can be either an assembly instruction mnemonic or an assembler directive and
must begin in column 2 or greater. If there is a label on the same line, instructions must be sep-
arated from that label by a colon or by one or more spaces or tabs.
Example 2.2
Examples of mnemonic field:
(a) false equ 0 ;equ is an assembler directive
(b) goto start ;goto is the mnemonic
(c) loop: incf 0x20,W,A ;incf is the mnemonic
2.3.3 The Operand Field
If an operand field is present, it follows the mnemonic field. The operand field may contain
operands for instructions or arguments for assembler directives. Operands must be separated
from mnemonics by one or more spaces or tabs. Multiple operands are separated by commas.
The following examples include operand fields:
(a) cpfseq 0x20,A ; “0x20” is the operand
(b) true equ 1 ; “1” is the operand
(c) movff 0x30,0x65 ; “0x30” and “0x65” are operands
2.3.4 The Comment Field
The comment field is optional and is added for documentation purpose. The comment field
starts with a semicolon. All characters following the semicolon are ignored through the end of
the line. The two types of comments are illustrated in the following examples.
(a) decf 0x20,F,A ;decrement the loop count
(b) ;the whole line is comment

PIC18F47K40-I/P 数据手册

Microchip(微芯)
594 页 / 5.7 MByte
Microchip(微芯)
52 页 / 0.17 MByte
Microchip(微芯)
594 页 / 5.7 MByte
Microchip(微芯)
120 页 / 0.32 MByte

PIC18F47K40 数据手册

Microchip(微芯)
MICROCHIP  PIC18F47K40-I/PT  微控制器, 8位, XLP, PIC18FxxKxx, 64 MHz, 128 KB, 4 KB, 44 引脚, TQFP 新
Microchip(微芯)
MICROCHIP  PIC18F47K40-I/MV  微控制器, 8位, XLP, PIC18FxxKxx, 64 MHz, 128 KB, 4 KB, 40 引脚, UQFN 新
Microchip(微芯)
MICROCHIP  PIC18F47K40-I/P  微控制器, 8位, XLP, PIC18FxxKxx, 64 MHz, 128 KB, 4 KB, 40 引脚, DIP 新
Microchip(微芯)
MICROCHIP  PIC18F47K40-I/ML  微控制器, 8位, XLP, PIC18FxxKxx, 64 MHz, 128 KB, 4 KB, 44 引脚, QFN 新
Microchip(微芯)
PIC18F47K40-E/PT 托盘
Microchip(微芯)
PIC 64MHz 闪存:64K@x16bit
Microchip(微芯)
PIC 64MHz 闪存:64K@x16bit
Microchip(微芯)
Microchip(微芯)
Microchip(微芯)
8位微控制器 -MCU 128KB Flash, 4KB RAM, 256B EEPROM, 10-bit ADC2, 5-bit DAC, Comp, PWM, CCP, CWG, HLT, WWDT, SCAN/CRC, ZCD, PPS, EUSART, SPI/I2C, IDLE/DOZE/PMD
器件 Datasheet 文档搜索
器件加载中...
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件