Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1106 Datasheet(PDF) 5 Page - STMicroelectronics

Part # AN1106
Description  TRANSLATING ASSEMBLY CODE FROM HC05 TO ST7
Download  9 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1106 Datasheet(HTML) 5 Page - STMicroelectronics

  AN1106 Datasheet HTML 1Page - STMicroelectronics AN1106 Datasheet HTML 2Page - STMicroelectronics AN1106 Datasheet HTML 3Page - STMicroelectronics AN1106 Datasheet HTML 4Page - STMicroelectronics AN1106 Datasheet HTML 5Page - STMicroelectronics AN1106 Datasheet HTML 6Page - STMicroelectronics AN1106 Datasheet HTML 7Page - STMicroelectronics AN1106 Datasheet HTML 8Page - STMicroelectronics AN1106 Datasheet HTML 9Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 5 / 9 page
background image
5/9
TRANSLATING ASSEMBLY CODE FROM HC05 TO ST7
There are two ways to define a variable as public (which means visible from another module,
the C equivalent directive is “extern”). The first one is the one used in the above example (the
dot before the variable). The second one is to write the PUBLIC directive at the beginning of
the variable.asm file followed by the name of the variables you want to be public.
variable.inc: (file to include in all .asm source files)
TITLE “variable.inc”
EXTERN
var2.b
; the ad-
dress of var2 is a byte.
EXTERN
var3.w; the address of var3 is a word.
EXTERN
table.w; the address of table is a word.
In this .inc file, only the variables which have been defined as public in the corresponding .asm
file have to appear. That’s the reason why var1 doesn’t appear (it’s a local variable).
Instead of writing a “.b” or “.w” after the variable to specify that its address is a byte, you can
also write the BYTES or WORDS directives directly before the corresponding variables.
4.2 CONSTANTS
The best way to define all your constants is to declare them in a file (called constant.inc for ex-
ample) with the directive “#define constant_name value”. Constants defined in this way
don’t take any space in memory. All you have to do is include this .inc file in all your source
files (in all files where you use the constants):
constant.inc:
#define
const125
; const1 = 25 (decimal)
#define
const2 $1F
; const2 = 1F (hexadecimal)
#define
const3%11100001
; const3=11100001 (binary)
........
You can define as many constants as you want. Just make sure that the “#” symbol is always
the first character of the line but not in the first column.


Similar Part No. - AN1106

ManufacturerPart #DatasheetDescription
logo
Silicon Laboratories
AN110 SILABS-AN110 Datasheet
238Kb / 12P
   16-BIT PWM USING AN ON-CHIP TIMER
logo
NXP Semiconductors
AN11006 PHILIPS-AN11006 Datasheet
922Kb / 26P
   Single stage 2.3_2.7GHz LNA with BFU730F
Rev 2-27 October 2011
AN11007 PHILIPS-AN11007 Datasheet
1Mb / 23P
   Single stage 5-6 GHz WLAN LNA with BFU730F
Rev. 1-04 January 2011
AN11010 PHILIPS-AN11010 Datasheet
972Kb / 20P
   Single stage Ku band LNA using BFU730F
Rev. 1.0-11 January 2011
AN11012 PHILIPS-AN11012_15 Datasheet
1Mb / 36P
   Using the TEA1703 to reduce standby power
Rev. 1-30 March 2011
More results

Similar Description - AN1106

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN1635 STMICROELECTRONICS-AN1635 Datasheet
49Kb / 5P
   ST7 CUSTOMER ROM CODE RELEASE INFORMATION
logo
Freescale Semiconductor...
AN1218 FREESCALE-AN1218 Datasheet
1Mb / 56P
   HC05 to HC08 Optimization
logo
NXP Semiconductors
68HC05V7 NXP-68HC05V7 Datasheet
1Mb / 170P
   Low cost, HC05 Core
REV 1.0
logo
STMicroelectronics
AN2017 STMICROELECTRONICS-AN2017 Datasheet
115Kb / 10P
   DIFFERENT WAYS TO RESET ST7 MICROCONTROLLER
AN1014 STMICROELECTRONICS-AN1014 Datasheet
258Kb / 25P
   HOW TO MINIMIZE THE ST7 POWER CONSUMPTION
PM0018 STMICROELECTRONICS-PM0018 Datasheet
158Kb / 10P
   ST7 Flash programming
UM0144 STMICROELECTRONICS-UM0144 Datasheet
786Kb / 92P
   ST7 Assembler Linker
AN1048 STMICROELECTRONICS-AN1048 Datasheet
231Kb / 21P
   ST7 software LCD driver
AN1105 STMICROELECTRONICS-AN1105 Datasheet
586Kb / 100P
   ST7 pCAN PERIPHERAL DRIVER
AN1070 STMICROELECTRONICS-AN1070 Datasheet
58Kb / 10P
   ST7 CHECKSUM SELFCHECKING CAPABILITY
More results


Html Pages

1 2 3 4 5 6 7 8 9


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.NET
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com