Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

HCS12X port and portENABLE_INTERRUPTS()

Posted by Sergey on May 24, 2012
Hi All.
I use 3 ISR: ECT for system tick counter, CAN and PIT timer.
I set priority:
PIT timer is 7 ( highest ),
CAN is 6,
ECT is 5 ( lowest ).
I want something to FreeRTOS don`t disable global interrupt, macros portENABLE_INTERRUPTS() I do empty.
After that, the program stops working, it crash.
Why? Ыo you can not do at all?
Best regards,
Sergey.

RE: HCS12X port and portENABLE_INTERRUPTS()

Posted by Richard on May 24, 2012
As far as I recall, the HCS12 port does not support nested interrupts.

RE: HCS12X port and portENABLE_INTERRUPTS()

Posted by Erich Styger on May 24, 2012
HCS12 only has one interrupt inhibit bit, so no nested interrupts. You *could* re-enable interrupts in the ISR, but this will enable *all* interrupts. To the extend that even a lower priority interrupt can occur. That's usually not what you want.
So indeed: nested interrupts for HCS12 is not supported (by the hardware, and by the port).

RE: HCS12X port and portENABLE_INTERRUPTS()

Posted by Sergey on May 24, 2012
Sory,
I are confused. Must be portDISABLE_INTERRUPTS() is empty.
In general, both are not used.
Best regards,
Sergey.

RE: HCS12X port and portENABLE_INTERRUPTS()

Posted by Sergey on May 24, 2012
The problem is that in highest priority PIT timer ISR managed hardware with period 25 us.
If I disabled global interrupt I get a bid jitter.
This is critical for my application.
Sergey.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS