Intel 8XC196MD, 8XC196MH, 8XC196MC manual Waveform Generator

Models: 8XC196MD 8XC196MH 8XC196MC

1 579
Download 579 pages 24.12 Kb
Page 222
Image 222
;get p7 bit ;mask
;move to correct location
ld temp,p7
and temp,#0001h shl temp,#7
;get ph1 bits ;mask for ph1.2 ;move ;combine
ld temp,ph2 and temp,#0004h shl temp,#7h or temp1,temp
ld temp,ph1 and temp,#0004h shl temp,#6h or temp1,temp
;get ph3 bits ;mask for ph3.2 ;move ;combine
;get ph2 bits ;mask for ph2.2 ;move ;combine
ld temp,ph3 and temp,#0004h shl temp,#8h or temp1,temp
;get pe6 bit ;mask
;move to correct location ;combine
ld temp,pe7 and temp,#0001h shl temp,#12 or temp1,temp
ld temp,pe6 and temp,#0001h shl temp,#11 or temp1,temp
;get sync bit ;mask
;move to correct location ;combine
;get pe7 bit ;mask
;move to correct location ;combine
ld temp1,op0 and temp1,#0001h shl temp1,#14 or temp1,temp
ld temp,sync and temp,#0001h shl temp,#13 or temp1,temp
;get op0 ;mask
;move bit to correct location ;combine
ld temp,op1 and temp,#0001h shl temp,#15
;get op1 ;mask
;move bit to correct location
;
;**************************************** ; form WG_OUTPUT value from variable data ;****************************************
;
wgout:
call wgout call loadregs call protect call wgcon
;
;enable interrupts & loop here
;
ei sjmp $
;initialize WG_OUTPUT register ;initialize reload & compare regs ;initialize protection ;initialize WG_CONTROL
;load WFG registers
;

WAVEFORM GENERATOR

9-23

Page 222
Image 222
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Waveform Generator