|ARM Technical Support Knowledge Articles|
Applies to: RTX51 Tiny Real-time Kernel
Information in this article applies to:
Some SiLABS C8051Fxxx versions implement a paged SFR scheme that expands the number of available SFR addresses. This paging scheme affects the SFR locations used for the RTX51 Tiny system timer.
What changes should I make using RTX51 Tiny together with a SiLABS part that is using SFR paging? Are there any restrictions?
RTX51 Tiny uses the standard 8051 Timer 0 (mode 1) to generate a periodic interrupt. This timer interrupt performs task switching. To use RTX51 Tiny on a SiLABS device with SFR paging, make the following modifications to the configuration file CONF_TNY.A51:
TIMERINT: : : ; Removed for SiLABS SFR Paging: ;;;;;;; CALL HW_TIMER ; Enable Interrupts again. MOV ?RTX_SAVEPSW,PSW
USING 0 ; Registerbank 0 for following code IF (TIMESHARING == 0) ; Insert for SiLABS SFR Paging: IF (CPU_IDLE_CODE) SETB ?RTX_ISR_SIG ENDIF RETI ; Round Robin Task Switching not required. System Interrupt ends here ?RTX?SET_ISR: IF (CPU_IDLE_CODE) SETB ?RTX_ISR_SIG ENDIF RET ENDIF
These changes impose the following restrictions when you are using SFR paging on a SiLABS device:
Article last edited on: 2006-10-29 18:59:17
Did you find this article helpful? Yes No
How can we improve this article?