Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

UCOS AVR port context switching time

Status
Not open for further replies.

artem

Advanced Member level 4
Joined
May 22, 2003
Messages
1,347
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,451
ucos avr port

The context switching time was seen little bit long . It took about 80 usec to
make it .
Approximate measuring was done as :

spi_sendbyte(INT8U byte)
{

SPDR = byte
OSSemPend(spi_IsrSemaphore);
PORTB &= ~(0x80);
}


spi_UcosSpiIsrHandler(void)
{
PORTB |= 0x80;
OSSemPend(spi_IsrSemaphore);
}

SPI speed was set to highest so it took 2 usec to complete transfer .
Highest priority task was invoking the spi_sendbyte() and then .
Portb is set when SPI transfer complete is generated and reset after task resume when OSSemPend is returned .
UCOS works on Atmega128 Freq 16 MHz , external 64 SRAM .

Did somene measure UCOS context switch time and is it usual to have 80-100usec context switch under AVR ?
 

avr ucos reset

If nobody is dealing with UCOS on AVR , i could chnage question to :

did someone measure UCOS context switching time and if so - what cointext switching time duration and what kind of processor and freq .

Regards
 

context switching with avr

on ARM it take about 80 cycles
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top