| 数据搜索系统,热门电子元器件搜索 |
|
ST72251 数据表(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST72251 数据表(HTML) 6 Page - STMicroelectronics |
|
6 / 10 page ![]() SOFTWARE 6/10 6 SOFTWARE The assembly code given below is guidance only. The complete software with all the files can be found in the software library. st7/ ; the first line is reserved ; for specifying the instruction set ; of the target processor ;************************************************************************ ; TITLE: WAKE.ASM ; AUTHOR: PPG Microcontroller Applications Team ; DESCRIPTION: Main program (use of the Halt mode for decoding ; a keypad). ; ;************************************************************************ TITLE "WAKE.ASM" ; this title will appear on each ; page of the listing file MOTOROLA ; this directive forces the Motorola ; format for the assembly (default) #INCLUDE “st72251.inc”; include st72251 registers and memory mapping file #INCLUDE “constant.inc” ; include general constants file ;*********************************************************************** ; Variables, constants defined and referenced locally ; You can define your own values for a local reference here ;*********************************************************************** ;************************************************************************ ; Public routines (defined here) ;************************************************************************ WORDS segment 'rom' .Init LD A,#$80 ; interrupts are caused by falling edge (on Port C). LD MISCR,A LD A,#$0F LD PBDDR,A LD PBOR,A ; PB0 to PB3 configures as outputs(LEDS). LD PADDR,A CLR PAOR ; PA0 to PA3 configured as outputs. CLR PADR LD A,#$0F |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |