| Motore di ricerca datesheet componenti elettronici |
|
MPXM2102AS Scheda tecnica(PDF) 109 Page - Motorola, Inc |
|
|
|||||||||||||||||||||||||||||
MPXM2102AS Scheda tecnica(HTML) 109 Page - Motorola, Inc |
|
109 / 670 page ![]() AN1611 2–73 Motorola Sensor Device Data www.motorola.com/semiconductors STA PTEMPLO LDA HOLD_CNT ; Check if the hold time of crash data CMP #$00 ; is up BNE NON–CRASH LDA PTEMPLO ; If yes, display the current acceleration STA MAXACC ; value JSR ADTOLCD BRA NON–CRASH CRASH LDA ZERO_ACC ADD #$0E ; If the crash is more than 7g CMP PTEMPLO ; 7g = 0E H * 0.5 BHS NO_INFLATE LDA #$FF ; activate the LED STA PLMA NO_INFLATE JSR MAXVALUE ; Display the peak acceleration JSR ADTOLCD NON–CRASH CLR SHIFT_CNT CLR AVE_CNT1 CLR AVE_CNT2 CLR AVERAGE_L CLR AVERAGE_M CLR AVERAGE_H BRA REPEAT ; Repeat the whole process ****************************************** * * * Delay Subroutine * * (162 * 0.7725 ms = 0.125 sec) * * * ****************************************** DLY20 STA TEMP1 LDA #!162 ; 1 unit = 0.7725 ms OUTLP CLRX INNRLP DECX BNE INNRLP DECA BNE OUTLP LDA TEMP1 RTS ****************************************** * * * Reading the ADC data X times * * and take the average * * X is defined by DIV_HI and DIV_LO * * * ****************************************** READAD LDA #$25 STA ADSTAT ; AD status = 25H CLR PRESHI2 CLR PRESHI ; Clear the memory CLR PRESLO CLRX CLR ADCOUNTER LOOP128 TXA CMP #$FF BEQ INC_COUNT BRA CONT INC_COUNT INC ADCOUNTER CONT LDA ADCOUNTER ; If ADCOUNTER = X CMP DIV_HI ; Clear bit = 0 BEQ CHECK_X ; Branch to END100 BRA ENDREAD CHECK_X TXA CMP DIV_LO BEQ END128 ENDREAD BRCLR 7,ADSTAT,ENDREAD ; Halt here till AD read is finished LDA ADDATA ; Read the AD register ADD PRESLO ; PRES = PRES + ADDATA STA PRESLO CLRA ADC PRESHI STA PRESHI CLRA ADC PRESHI2 STA PRESHI2 INCX ; Increase the AD counter by 1 BRA LOOP128 ; Branch to Loop128 END128 CLR RSHIFT ; Reset the right shift counter Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |