| Electronic Components Datasheet Search |
|
MPXM2102AS Datasheet(PDF) 552 Page - Motorola, Inc |
|
|
|||||||||||||||||||||||||||||
MPXM2102AS Datasheet(HTML) 552 Page - Motorola, Inc |
|
552 / 670 page ![]() AN1950 3–406 Motorola Sensor Device Data www.motorola.com/semiconductors bra goconv positiv: lda #’+’ jsr lcdchro ;display the plus sign (to keep alignment) goconv: lda MA clrh ldx #$64 clr RB div bne over100b lda #$20 ;prepare for a space in case first value is 0 jsr lcdchro bra lnextb over100b: jsr lcdnibo inc RB lnextb: pshh pula clrh ldx #$0A ;divide by 10 div bne nospaceb tst RB bne nospaceb lda #$20 jsr lcdchro bra lnextab nospaceb: jsr lcdnibo ;display tens digit lnextab: pshh pula jsr lcdnibo ;and first decimal lda #’m’ jsr lcdchro lda #’m’ jsr lcdchro ;then the unit lda #’/’ jsr lcdchro lda #’s’ jsr lcdchro lda #$40 ;======== Graphics Update: tough stuff =========== jsr lcdcmdo ;prepare to write 8 bytes into CGRAM starting at @ $40 ldhx #ramfree ;point to 40 pressure readings (this reuses wrflash RAM) mov #$08,DA ;DA will count those 8 CGRAM addresses cg8: lda 0,x sta NC lda 1,x sta NB lda 2,x sta NA lda 3,x sta DC lda 4,x sta DB ;readings 0–4 go into NC,NB,NA,DC,DB and will form 1 LCD special charac- ter mov #$08,RA ;RA will count the 8 bits fill: clr RB ;start with RB=0, this will eventually contain the data for CGRAM rol NC rol RB rol NB rol RB rol NA rol RB rol DC rol RB rol DB rol RB ;rotate left those 5 values and use carry bits to form RB (tough part) lda RB jsr lcdchro ;and put it into CGRAM dec RA ;do this 8 times to cover all 8 bits bne fill incx incx incx incx incx ;now point to next 5 values for next CGRAM address (5 values per charac- ter) Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com |
|
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 |
| 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 |