| 전자부품 데이터시트 검색엔진 |
|
ST72361AR4-Auto 데이터시트(PDF) 271 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST72361AR4-Auto 데이터시트(HTML) 271 Page - STMicroelectronics |
|
271 / 279 page ![]() ST72361xx-Auto Important notes Doc ID 12468 Rev 3 271/279 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, sema; check the semaphore status if edge is detected CP A, #01 jrne OUT call call_routine; call the interrupt routine OUT:LD A,#00 LD sema, A .call_routine; entry to call_routine PUSH A PUSH X PUSH CC .ext1_rt; entry to interrupt routine LD A, #00 LD sema, A IRET Case 2: writing to PxOR or PxDDR with global interrupts disabled: SIM; set the interrupt mask LD A, PFDR AND A, #$02 LD X, A; store the level before writing to PxOR/PxDDR LD A, #$90 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 RIM; reset the interrupt mask LD A, sema; check the semaphore status CP A, #$01 jrne OUT call call_routine; call the interrupt routine RIM OUT:RIM JP while_loop .call_routine; entry to call_routine PUSH A PUSH X |
|
링크 URL |
| 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 |