Intel 8XC196MC User Manual page 221

Table of Contents

Advertisement

8XC196MC, MD, MH USER'S MANUAL
ph3:
dsw 1
eo:
dsw 1
dp:
dsw 1
it:
dsw 1
es:
dsw 1
ec:
dsw 1
dead:
dsw 1
reload:
dsw 1
comp1:
dsw 1
comp2:
dsw 1
comp3:
dsw 1
temp:
dsw 1
temp1:
dsw 1
temp2:
dsw 1
;
;
;**************************************************
; first, initialize the values for these variables:
;**************************************************
;
cseg at 0e000h
;
di
dpts
ld
sp,#200h
ld
mode,#0000h
ld
ec,#0001h
ld
dead,#0010h
ld
op0,#0001h
ld
op1,#0001h
ld
sync,#0001h
ld
pe7,#00000h
ld
pe6,#00000h
ld
p7,#00000h
ld
p6,#00000h
ld
ph1,#0007h
ld
ph2,#0007h
ld
ph3,#0007h
ld
eo,#0001h
ld
dp,#0001h
ld
it,#0001h
ld
es,#0001h
ld
reload,#1000h
ld
comp1,#0100h
ld
comp2,#0200h
ld
comp3,#0400h
;
;************************
; now initialize the WFG
;************************
;
;set up interrupts
;
ldb
temp,#00010000b
stb
temp,PI_MASK[0]
ldb
temp,#00100000b
ldb
int_mask1,temp
;
9-22
;P6.4,5 config
;0=disable output, 1=enable output
;0=enable protection, 1=disable
;0=falling edge trig, 1=rising edge
;0=edge, 1=sample
;0=stop cntr, 1=start
;10-bit dead time
;demo board RAM
;mode0
;enable cntr
;1.6 us
;active high
;active high
;synchronized WG_OUTPUT load
;P6.7 in I/O mode
;P6.6 in I/O mode
;P6.7 I/O = 0
;P6.6 I/O = 0
;wfg both outputs
;wfg both outputs
;wfg both outputs
;enable outputs
;disable protection
;rising/high edge trigger
;24-state trigger
;1.024 ms mode0
;64 us
;128 us
;256 us
;
;unmask WG interrupt
;
;
Get other manuals https://www.bkmanuals.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents