Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

MPXM2102AS Datasheet(PDF) 555 Page - Motorola, Inc

Part # MPXM2102AS
Description  Sensor
PDF  670 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MOTOROLA [Motorola, Inc]
Direct Link  http://www.freescale.com
Logo MOTOROLA - Motorola, Inc

MPXM2102AS Datasheet(HTML) 555 Page - Motorola, Inc

Back Button MPXM2102AS Datasheet HTML 551Page - Motorola, Inc MPXM2102AS Datasheet HTML 552Page - Motorola, Inc MPXM2102AS Datasheet HTML 553Page - Motorola, Inc MPXM2102AS Datasheet HTML 554Page - Motorola, Inc MPXM2102AS Datasheet HTML 555Page - Motorola, Inc MPXM2102AS Datasheet HTML 556Page - Motorola, Inc MPXM2102AS Datasheet HTML 557Page - Motorola, Inc MPXM2102AS Datasheet HTML 558Page - Motorola, Inc MPXM2102AS Datasheet HTML 559Page - Motorola, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 555 / 670 page
background image
AN1950
3–409
Motorola Sensor Device Data
www.motorola.com/semiconductors
rts
;__________________________________________________________
wrflash:
sthx
flshadr
;this is the address in the flash
sta
flshbyt
;and the byte we want to put there
FLASH:
tsx
sthx
memSP
;store SP in memSP, so it can be temporarily used as a 2nd index regis-
ter
ldhx
#ramfree+1
;SP now points to RAM (remember to add 1 to the address!!!, HC08 quirk)
txs
;SP changed (careful not to push or call subroutines)
ldhx
#ersflsh
;H:X points to beginning of flash programming code
doall:
lda
0,x
;get 1st byte from flash
sta
0,sp
;copy it into RAM
aix
#$0001
;HX:=HX+1
ais
#$0001
;SP:=SP+1
cphx
#lastbyt
;and continue until we reach the last byte
bne
doall
ldhx
memSP
;once done, restore the SP
txs
jsr
ramfree
;and run the subroutine from RAM, you cannot write the flash while
rts
;running a code in it, so the RAM has to take over for that piece
;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
ersflsh:
lda
#$02
;textbook way to erase flash
sta
flcr
lda
flbpr
clra
ldhx
flshadr
sta
0,x
bsr
delayf
lda
#$0A
sta
flcr
bsr
delayf
lda
#$08
sta
flcr
bsr
delayf
clra
sta
flcr
bsr
delayf
pgmflsh:
lda
#$01
;textbook way to program flash
sta
flcr
lda
flbpr
clra
ldhx
flshadr
sta
0,x
bsr
delayf
lda
#$09
sta
flcr
bsr
delayf
lda
flshbyt
ldhx
flshadr
sta
0,x
bsr
delayf
lda
#$08
sta
flcr
bsr
delayf
clra
sta
flcr
bsr
delayf
rts
delayf:
ldhx
#$0005
mov
#$36,tsc
;stop TIM & / 64
sthx
tmodh
;count H:X x 20us
bclr
5,tsc
;start clock
delayfls: brclr
7,tsc,delayfls
rts
lastbyt:
nop
;–––––––– GENERAL Routines ––––––––––––––––––––––––––––––––––––––––––
ALLINIT:
bset
0,config1
;disable COP
mov
#$38,ddra
;PTA0=MPAK,PTA1=SEL,PTA2=ENT,PTA3=E,PTA4=RS,PTA5=clk
bclr
3,porta
;E=0
bclr
4,porta
;grn=OFF; RS=0
bclr
5,porta
;red=OFF; CLK=0
mov
#$30,adiclk
;ADC clock /2
rts
;– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
WARMUP:
bclr
4,porta
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com