RS08KA2 PROMO Freescale Semiconductor, RS08KA2 PROMO Datasheet - Page 26

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
Emulated ADC Application Example
NoReading:
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; 8bit Table Lookup
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TableLookup:
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; ADC Lookup Table - RC charging profile
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26
d) In TableLookup subroutine the two most significant bits (MSB) of the variable SensorReading
bset
clr
mov
rts
mov
clr
mov
rts
lda
rola
rola
rola
and
add
sta
lda
and
add
tax
lda
sta
mov
rts
org
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
dc.b
are extracted and added to the page number that holds the lookup table. The corresponding
lookup table content is mapped to the 64-byte paging window, $00C0 to $00FF. Then the six
least significant bits (LSB) of the variable SensorReading is used as an index to read out the
upper memory content directly from the paging window.
TableStart
113,115,118,120,123,125,127,130,132,134,136,138,141,143,145,147
149,150,152,154,156,158,160,161,163,165,166,168,169,171,173,174
175,177,178,180,181,182,184,185,186,188,189,190,191,192,193,195
196,197,198,199,200,201,202,203,204,205,206,206,207,208,209,210
211,211,212,213,214,215,215,216,217,217,218,219,219,220,221,221
222,223,223,224,224,225,225,226,226,227,228,228,228,229,229,230
230,231,231,232,232,233,233,233,234,234,235,235,235,236,236,236
237,237,237,238,238,238,239,239,239,240,240,240,240,241,241,241
241,242,242,242,242,243,243,243,243,244,244,244,244,244,245,245
245,245,245,246,246,246,246,246,246,247,247,247,247,247,247,247
248,248,248,248,248,248,248,249,249,249,249,249,249,249,249,249
250,250,250,250,250,250,250,250,250,250,251,251,251,251,251,251
251,251,251,251,251,251,252,252,252,252,252,252,252,252,252,252
252,252,252,252,252,252,253,253,253,253,253,253,253,253,253,253
65, 68, 71, 75, 78, 81, 84, 87, 90, 93, 96, 99,102,105,107,110
0,
ACMP1SC_ACF, ACMP1SC
ACMP1SC
#(mMTIM1SC_TSTP|mMTIM1SC_TRST), MTIM1SC
#$FF, SensorReading
ACMP1SC
#(mMTIM1SC_TSTP|mMTIM1SC_TRST), MTIM1SC
SensorReading
#$03
#(TableStart>>6)
PAGESEL
SensorReading
#$3F
#$c0
,x
ADCOut
#(HREG), PAGESEL
5, 10, 14, 18, 23, 27, 31, 35, 39, 43, 47, 50, 54, 58, 61
Getting Started with RS08, Rev. 1
;Clear ACMP Flag
;disable ACMP
;mask int and clear flag
;Biggest Number
;disable ACMP
;mask int and clear flag
;
;Extract 2 MSB
;
;
;Mask all other bits
;Add to Lookup table page
;High page
;
;Extract 6 LSB
;Index to paging window
;
;Read upper memory
;Store lookup table content
;Return to register page
;
Freescale Semiconductor

Related parts for RS08KA2 PROMO