参数资料
型号: DM164120-1
厂商: Microchip Technology
文件页数: 15/42页
文件大小: 0K
描述: BOARD DEMO PICKIT 2 LP COUNT
标准包装: 1
系列: PICkit™
类型: MCU
适用于相关产品: 28 引脚 PIC16C、16F、18C、18F
所含物品: 3 个板(1 个装有元件的板,2 个裸板)
产品目录页面: 659 (CN2011-ZH PDF)
Mid-Range PICmicro ? Architectural Overview
2.3.1
Assembler Basics
Numbers in the Assembler
Unless otherwise specified, the assembler assumes any numeric constants in
the program are hexadecimal (base 16). Binary (base 2), Octal (base 8), Decimal
(base 10), and ASCII coding are also supported.
Hexadecimal:
Decimal
Octal
Binary
ASCII
12 or 0x12 or H'12'
.12 or D'12'
O'12'
B'00010010'
A'c' or 'c'
Org (Origin)
Org tells the Assembler where to start generating code. Normally we start coding
at address ‘ 0000 ’, but it could be anywhere. Baseline devices have a Reset
vector at the last location in program memory, so it’s good practice to have a
GOTO instruction pointing to the beginning of the program.
End
End tells the assembler to stop assembling. There must be one at the end of the
program. It does not necessarily have to be at the end of the file, but nothing after
the end statement will be assembled.
Defining Data Memory Locations
There are three ways to name a location (see Example 2-1).
EXAMPLE 2-1:
DEFINING DATA MEMORY
#define Length
0x20
;c-like syntax
Length
equ
0x20
;equate 0x20 with the symbol
cblock
Length
Width
Area:2
Girth
0x20
;start a block of variables
;this will be at address 0x20
;this will be at address 0x21
;this is 2 bytes long, starting at
;address 0x22
;this will be at address 0x24
endc
Unless there is a reason to want a name to a specific location, the cblock / endc
method is preferred. The advantage is that as variables come and go through the
development process, the cblock keeps the block to a minimum. Using one of the other
methods, you may have to go back and find an unused location.
? 2005 Microchip Technology Inc.
DS51556A-page 11
相关PDF资料
PDF描述
DM164120-3 BOARD DEMO PICKIT2 28-PIN
DM164120-5 BOARD DEMO PICKIT 2 64/80-PIN
DM164123 KIT MANAGEMENT SYSTEM PICDEM
DM180021 KIT STARTER MPLAB FOR PIC18F MCU
DM183022 BOARD DEMO PIC18FXX22 64/80TQFP
相关代理商/技术参数
参数描述
DM164120-1 制造商:Microchip Technology Inc 功能描述:DEVELOPMENT TOOLS - PICKIT 2 LOW PIN COU
DM164120-2 功能描述:开发板和工具包 - PIC / DSPIC PICkit 2 44-Pin Count Demo Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164120-3 功能描述:开发板和工具包 - PIC / DSPIC PICkit 2 Count Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164120-4 功能描述:开发板和工具包 - PIC / DSPIC PICkit 2 1 Dem Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164120-4 制造商:Microchip Technology Inc 功能描述:PICkit 2 18-Pin Demo Board