| Electronic Components Datasheet Search |
|
AN1320 Datasheet(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1320 Datasheet(HTML) 18 Page - STMicroelectronics |
|
18 / 20 page ![]() AN1320 APPLICATION NOTE 18/20 ;========================================================== ; Interrupt routines ;========================================================== ; *** Port A ; Unused IPA reti ; *** Port C ; Test if some signal went up IPC ld W,A ; save accumulator jrs 2,DRC,PC2 ; Test port C, pin 2 PC2End jrs 3,DRC,PC3 ; Test port C, pin 3 PC3End ld A,W ; restore accumulator reti PC2 ; PC2 issued nop nop jrr 2,DRC,PC2End ; Confirm steady on pin jp StopIt ; Stop operations PC3 nop nop jrr 3,DRC,PC3End ; Confirm steady on pin jp StopIt ; Stop operations ;========================================================== ; DispatchIRQ4: test if timer or AD interrupt ;========================================================== DispatchIRQ4 jrs 7,TSCR,ITIM ; Test for timer interrupt jrs 6,ADCR,IADC ; Test for AD interrupt reti ;========================================================== IADC res 7,ADCR ; Disable Interrupt ld a,ADR ; Load Sample ld Sample,a ld a,Count ; Test for maximum sample jrnz Conversion ; maximum reached reti Conversion ld a,Sample ; a = Sample rlc a ; a = a >> 4 rlc a rlc a rlc a andi a,07h ; 8 levels add a,Media ld Media,a dec Count ld a,Count jrz SetSamp set 5,ADCR ; Enable A/D converter nop |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |