DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST72F324J6TATX 查看數據表(PDF) - STMicroelectronics

零件编号
产品描述 (功能)
生产厂家
ST72F324J6TATX Datasheet PDF : 194 Pages
First Prev 181 182 183 184 185 186 187 188 189 190 Next Last
ST72324xx-Auto
Known limitations
Case 1: Writing to PxOR or PxDDR with global interrupts enabled:
LD A,#01
LD sema,A; set the semaphore to '1'
LD A,PFDR
AND A,#02
LD X,A; store the level before writing to PxOR/PxDDR
LD A,#$90
LD PFDDR,A ; Write to PFDDR
LD A,#$ff
LD PFOR,A ; Write to PFOR
LD A,PFDR
AND A,#02
LD Y,A; store the level after writing to PxOR/PxDDR
) LD A,X; check for falling edge
t(s cp A,#02
jrne OUT
uc TNZ Y
d jrne OUT
ro LD A,sema ; check the semaphore status if edge is detected
P CP A,#01
jrne OUT
te call call_routine ; call the interrupt routine
le OUT:LD A,#00
o LD sema,A
bs .call_routine ; entry to call_routine
PUSH A
- O PUSH X
) PUSH CC
t(s .ext1_rt ; entry to interrupt routine
LD A,#00
uc LD sema,A
d IRET
ro Case 2: Writing to PxOR or PxDDR with global interrupts disabled:
P SIM ; set the interrupt mask
teLD A,PFDR
leAND A,#$02
o LD X,A ; store the level before writing to PxOR/PxDDR
bs LD A,#$90
O LD PFDDR,A ; Write into PFDDR
LD A,#$ff
LD PFOR,A ; Write to PFOR
LD A,PFDR
AND A,#$02
LD Y,A ; store the level after writing to PxOR/PxDDR
LD A,X ; check for falling edge
cp A,#$02
jrne OUT
TNZ Y
jrne OUT
LD A,#$01
LD sema,A ; set the semaphore to '1' if edge is detected
Doc ID 13841 Rev 1
187/193

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]