| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
MPXM2102AS Datasheet(PDF) 551 Page - Motorola, Inc |
|
|
|||||||||||||||||||||||||||||
MPXM2102AS Datasheet(HTML) 551 Page - Motorola, Inc |
|
551 / 670 page ![]() AN1950 3–405 Motorola Sensor Device Data www.motorola.com/semiconductors cmp #$01 beq Lzero makeRB lsl RB dbnza makeRB bra Lzero Lsat: mov #$80,RB Lzero: lda RB ldhx #ramfree+$27 ;last of the 40 sta 0,x ;put it at then end of the 40 bytes (new value), all others were shifted left clr weath lda RB beq donew ;$00 if ”empty” cmp #$80 bne notfull mov #$01,weath ;set ”full” if $80 bra donew notfull mov #$02,weath ;prepare for ”steady” if L(i)=L(i–1) lda OA cmp Lgfx beq donew mov #$03,weath ;”filling” if L(i)>L(i–1) bcc donew mov #$04,weath ;”emptying” otherwise donew: lda OA sub Lgfx sta MA ;rate:=L(i)–L(i–1) mov RA,Lgfx ;update L(i–1) lda #$80 ;******** now let’s display the level in decimal ******** jsr lcdcmdo ;start on 1st character of 1st line lda OA clrh ldx #$64 clr RB div bne over100 lda #$20 ;prepare for a space in case first value is 0 jsr lcdchro bra lnext over100: jsr lcdnibo inc RB lnext: pshh pula clrh ldx #$0A ;divide by 10 div bne nospace tst RB bne nospace lda #$20 jsr lcdchro bra lnexta nospace: jsr lcdnibo ;display tens digit lnexta: pshh pula jsr lcdnibo ;and first decimal lda #’m’ jsr lcdchro lda #’m’ jsr lcdchro ;then the unit lda #$C0 ;******** now let’s display the flow in decimal ******** jsr lcdcmdo ;position cursor on 1st character 2nd line lda MA lsla ;test sign of rate (in MA) bcc positiv ;if positive, then it’s easy lda MA ;otherwise 1’s complement of MB coma inca sta MA lda #’–’ jsr lcdchro ;display that minus sign Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes All Rights Reserved©Alldatasheet.com |
| 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 |