Search the Community
Showing results for tags 'tiwa'.
-
Hi all. First of all i have made a program who blink a led. I use the interrupt of Timer0B interrupt. I enabled this interrupt with this instruction : IntEnable(INT_TIMER0B_BLIZZARD); This interrupt is defined in the header file hw_ints.h : #define INT_TIMER0B_BLIZZARD 36 // 16/32-Bit Timer 0B And program works very well. But now, i want to enable the same interrupt with another instruction : NVIC_EN1 = 0x00000010; In my program the Timer0B interrupt has number 36. in header file hw_nvic.h : #define NVIC_EN1 0xE000E104 // Interrupt 32-54 Set Enable
-
Hi. I want to made a simple program who turn on/off a led. In the function below i must use the XOR operator in line : GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3, 8); How can i write the XOR operation ? void Timer0BIntHandler() { TimerIntClear(TIMER0_BASE, TIMER_TIMB_TIMEOUT); counter++; if(counter == NUMBER_OF_INTS) { GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3, 8); counter = 0; } }