Electronic Components Datasheet Search |
|
SN8F2288 Datasheet(PDF) 74 Page - SONiX Technology Company |
|
SN8F2288 Datasheet(HTML) 74 Page - SONiX Technology Company |
74 / 163 page SN8F2280 Series USB 2.0 Full-Speed 8-Bit Micro-Controller SONiX TECHNOLOGY CO., LTD Page 74 Version 1.1 6.11 TC2 INTERRUPT OPERATION When the TC2C counter overflows, the TC2IRQ will be set to “1” no matter the TC2IEN is enable or disable. If the TC2IEN and the trigger event TC2IRQ is set to be “1”. As the result, the system will execute the interrupt vector. If the TC2IEN = 0, the trigger event TC2IRQ is still set to be “1”. Moreover, the system won’t execute interrupt vector even when the TC2IEN is set to be “1”. Users need to be cautious with the operation under multi-interrupt situation. Example: TC1 interrupt request setup. B0BCLR FTC2IEN ; Disable TC2 interrupt service B0BCLR FTC2ENB ; Disable TC2 timer MOV A, #20H ; B0MOV TC2M, A ; Set TC2 clock = Fcpu / 64 MOV A, #74H ; Set TC2C initial value = 74H B0MOV TC2C, A ; Set TC2 interval = 10 ms B0BSET FTC2IEN ; Enable TC2 interrupt service B0BCLR FTC2IRQ ; Clear TC2 interrupt request flag B0BSET FTC2ENB ; Enable TC2 timer B0BSET FGIE ; Enable GIE Example: TC1 interrupt service routine. ORG 8 ; Interrupt vector JMP INT_SERVICE INT_SERVICE: … ; Push routine to save ACC and PFLAG to buffers. B0BTS1 FTC2IRQ ; Check TC2IRQ JMP EXIT_INT ; TC1IRQ = 0, exit interrupt vector B0BCLR FTC2IRQ ; Reset TC2IRQ MOV A, #74H B0MOV TC1C, A ; Reset TC2C. … ; TC2 interrupt service routine … EXIT_INT: … ; Pop routine to load ACC and PFLAG from buffers. RETI ; Exit interrupt vector |
Similar Part No. - SN8F2288 |
|
Similar Description - SN8F2288 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.NET |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | 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 |