kekek
New Member
i'm working on a project using z8 encore! mc. i'm using c-compiler, so i have a question on c programming. the 'EI' command enables all interrupts, but how it works? is it enables the interrupts one by one based on the interrupt priority or it just wait for an interrupt to occur and responds to the particular interrupt? eg.;
void with_intr_start_dmaadc(void)
{
SET_VECTOR(DMA,isr_DMA_ADC); // Pass the vector number and the
// ISR address to be placed into the
// interrupt table
EI(); // Enables all interrupts
DACTL |= ENABLE_DMAADC_INT; // Enable the DMA_ADC and set
// enable the interrupt. This will
// generate an interrupt, after the
// DMA completes the data transfer
// to the buffer location.
}
so, any idea?
void with_intr_start_dmaadc(void)
{
SET_VECTOR(DMA,isr_DMA_ADC); // Pass the vector number and the
// ISR address to be placed into the
// interrupt table
EI(); // Enables all interrupts
DACTL |= ENABLE_DMAADC_INT; // Enable the DMA_ADC and set
// enable the interrupt. This will
// generate an interrupt, after the
// DMA completes the data transfer
// to the buffer location.
}
so, any idea?