7. (30) For the following source code, explain the line of code where the comment field exists. #include "hcs12.h" // #i
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
7. (30) For the following source code, explain the line of code where the comment field exists. #include "hcs12.h" // #i
7. (30) For the following source code, explain the line of code where the comment field exists. #include "hcs12.h" // #include "vectors12.h" // #define INTERRUPT attribute__((interrupt)) #define u8 #define ul 6 unsigned char unsigned short u8 count; // int main(void) { Vector PAI = (u16) (&PAI_isr); // asm ("sei"); // PAI_init(); while (1) { count = 0; asm("cli"); // wait_one second(); // asm ("sei"); // display_count_on_lcd (); } } void INTERRUPT PAI_isr( void ) 1 TFLAG1 = 0x40; count++;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!