| Electronic Components Datasheet Search |
|
SN8F27E64LKB Datasheet(PDF) 73 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8F27E64LKB Datasheet(HTML) 73 Page - SONiX Technology Company |
|
73 / 192 page ![]() SN8F27E60 Series 8-Bit Flash Micro-Controller with Embedded ICE and ISP SONiX TECHNOLOGY CO., LTD Page 73 Version 1.4 6.10 TC2 INTERRUPT OPERATION When the TC2C counter overflows, the TC2 IRQ will be set to “1” no matter the TC2IEN is enable or disable. If the TC2IEN and the trigger event TC2 IRQ is set to be “1”. As the result, the system will execute the interrupt vector. If the TC2IEN = 0, the trigger event TC2 IRQ 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: TC2 interrupt request setup. B0BCLR FTC2IEN ; Disable TC2 interrupt service B0BCLR FTC2ENB ; Disable TC2 timer MOV A, #10H ; 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: TC2 interrupt service routine. ORG 0EH ; Interrupt vector JMP INT_SERVICE INT_SERVICE: … ; Push routine to save ACC and PFLAG to buffers. B0BTS1 FTC2IRQ ; Check TC2IRQ JMP EXIT_INT ; TC2IRQ = 0, exit interrupt vector B0BCLR FTC2IRQ ; Reset TC2IRQ MOV A, #74H B0MOV TC2C, A ; Reset TC2C. … ; TC2 interrupt service routine … EXIT_INT: … ; Pop routine to load ACC and PFLAG from buffers. RETI ; Exit interrupt vector |
|
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 |