RS08KA2 PROMO Freescale Semiconductor, RS08KA2 PROMO Datasheet - Page 32

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
;-------------------------------------------------------
; Application Loop
; 1) Wakeup every 128ms
; 2) Read ADC input
; 3) Dump code to serially output port (DATAOUT)
;-------------------------------------------------------
InfLoop:
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; Read Sensor (ADC) Value
; Timer prescalar=8 -> Timer clk~250kHz
; Bus = 2MHz
; Max OF period = 1.02ms
; Timer resolution = 4us
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ADCRead:
NoReading:
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; 8bit Table Lookup
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TableLookup:
32
wait
bset
bsr
bsr
bsr
sta
bra
mov
mov
mov
mov
bset
wait
mov
brclr
bset
clr
mov
rts
mov
clr
mov
rts
lda
rola
rola
rola
and
add
sta
lda
and
add
tax
lda
SRTISC_RTIACK, SRTISC
ReadSensor
TableLookup
DataDump
SRS
InfLoop
#(MTIM_BUS_CLK|MTIM_DIV_8), MTIM1CLK
#255, MTIM1MOD
#(mMTIM1SC_TRST|mMTIM1SC_TOIE), MTIM1SC
#(mACMP1SC_ACME|mACMP1SC_ACIE|ACMP_OUTPUT_RAISING), ACMP1SC
ACMP1SC_ACF, ACMP1SC
MTIM1CNT, SensorReading
ACMP1SC_ACF, ACMP1SC, NoReading
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
Getting Started with RS08, Rev. 1
; Read Charge up time data
; Decode 8bit level
; Dump ADC code
; Bump COP
;Change Timer resolution
;OF period
;Reset and Start Timer
; Enable ACMP, start RC rise
;Clear ACMP Flag
;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
Freescale Semiconductor

Related parts for RS08KA2 PROMO