RS08KA2 PROMO Freescale Semiconductor, RS08KA2 PROMO Datasheet - Page 19

DEMO KIT, SILICON BUNDLE, RS08KA2

RS08KA2 PROMO

Manufacturer Part Number
RS08KA2 PROMO
Description
DEMO KIT, SILICON BUNDLE, RS08KA2
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of RS08KA2 PROMO

Kit Contents
DEMO9RS08KA2 Board, USB Cable, Quick Start Guide, User Manual, Packing List
Svhc
No SVHC (15-Dec-2010)
Development Tool Type
Demonstration Kit
Kit Features
RS08KA2 Microcontroller,
Silicon Manufacturer
Freescale
Core Architecture
RS08
Core Sub-architecture
RS08
Silicon Core Number
MC9RS08
Silicon Family Name
RS08KA
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; Subroutine A
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SubA:
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; Subroutine B
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SubB:
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; Main
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Main:
Three macros are defined here. RESETSP is used to reset the stack pointer to the initial position. PSH_SPC
pushes shadow PC (SPC) content to stack and decrements STACKPTR variable accordingly. Similarly,
PUL_SPC pulls the SPC content from stack and increments STACKPTR variable accordingly. Calling
PSH_SPC at the beginning of each subroutine and PUL_SPC before executing RTS would stack up and
retrieve the return address (shadow PC) for each level of subroutine calls accordingly.
1.8
RS08 platform is targeted for small applications where usually intensive interrupt servicing is not required.
The interrupt request in the RS08 platform is designed to wake the MCU from either wait or stop mode.
At the same time the corresponding interrupt flags will also be set to indicate the interrupt events that had
happened. If multiple events had happened, it is up to the software to decide the priority of servicing. When
the MCU is operating in run mode or active background debug mode (BDM), interrupt events will not
affect the software flow. Users can check the interrupt events on a regular basis by polling the
corresponding interrupt flag and determine if interrupt service is required.
Similar to the HC08/S08 platform, in RS08 each interrupt source is associated with a corresponding
interrupt flag and an interrupt enable bit. The wait/stop wakeup capability of an interrupt source can only
Freescale Semiconductor
PSH_SPC
;... <Subroutine Content> ...
bsr SubB
;... <Subroutine Content> ...
PUL_SPC
rts
PSH_SPC
;... <Subroutine Content> ...
PUL_SPC
rts
RESETSP
;... <Software Content> ...
jsr SubA
;... <Software Content> ...
jsr SubB
;... <Software Content> ...
Interrupt
Both PSH_SPC and PUL_SPC macro are destructive to register X. If X
content requires to carry across subroutine calls, enhancements to the
macros are required.
Getting Started with RS08, Rev. 1
NOTE
; Stack SPC
; Multi-level subroutine call
; Unstack SPC
; Stack SPC
; Unstack SPC
Introduction to RS08
19

Related parts for RS08KA2 PROMO