SN8P1700
8-bit micro-controller build-in 12-bit ADC
14 CODING ISSUE
TEMPLATE CODE
;*******************************************************************************
; FILENAME : TEMPLATE.ASM
; AUTHOR
: SONiX
; PURPOSE
: Template Code for SN8X17XX
; REVISION : 09/01/2002 V1.0
First issue
;*******************************************************************************
;* (c) Copyright 2002, SONiX TECHNOLOGY CO., LTD.
;*******************************************************************************
CHIP
SN8P1708
; Select the CHIP
;-------------------------------------------------------------------------------
Include Files
;-------------------------------------------------------------------------------
;
.nolist
; do not list the macro file
INCLUDESTD MACRO1.H
INCLUDESTD MACRO2.H
INCLUDESTD MACRO3.H
.list
; Enable the listing function
;-------------------------------------------------------------------------------
Constants Definition
;-------------------------------------------------------------------------------
ONE EQU
;
;
1
;-------------------------------------------------------------------------------
Variables Definition
;
;-------------------------------------------------------------------------------
.DATA
org
DS
DS
DS
DS
0h
1
1
1
1
;Bank 0 data section start from RAM address 0x000
;Temporary buffer for main loop
;Temporary buffer for ISR
;Accumulater buffer
Wk00B0
Iwk00B0
AccBuf
PflagBuf
;PFLAG buffer
org
DS
100h
20
;Bank 1 data section start from RAM address 0x100
;Temporary buffer in bank 1
BufB1
;-------------------------------------------------------------------------------
Bit Flag Definition
;-------------------------------------------------------------------------------
;
Wk00B0_0
Iwk00B0_1
EQU
EQU
Wk00B0.0
Iwk00B0.1
;Bit 0 of Wk00B0
;Bit 1 of Iwk00
;-------------------------------------------------------------------------------
Page 128
SONiX TECHNOLOGY CO., LTD
Revision 1.94