| 전자부품 데이터시트 검색엔진 |
|
MPXM2102AS 데이터시트(PDF) 480 Page - Motorola, Inc |
|
|
|||||||||||||||||||||||||||||
MPXM2102AS 데이터시트(HTML) 480 Page - Motorola, Inc |
|
480 / 670 page ![]() AN1536 3–334 Motorola Sensor Device Data www.motorola.com/semiconductors write() { char i; digit[1]=10; if (digit[2]==0) {digit[2]=10;} if ( digit[2]==10 && digit[3]==0 ) {digit[3]=10;} for ( i=1; i<5; ++i ) { if (i==4) write_spi((lcdtab[digit[i]])+0x80); else write_spi(lcdtab[digit[i]]); } write_spi (2); /* this creates a start bit and data bit 1 for the next write to the mc145453 */ } write_spi( char a ) /* write a character to the spi port */ { SPDR=a; while ( ! ( SPSR & 0x80 ) ) {} /* loop until the spif = 1 */ } /* ################################################################### */ /* This function is called at power–up and will determine the operation of the system. The user must complete the system configuration prior to setting the jumper in the first or last two configurations in the table or erroneous operation is guaranteed! test/operation jumper configuration: J3 J2 J1 1 = jumper removed 1 1 1 display speed in mph 1 1 0 reserved 1 0 1 30 psi xdcr installed 1 0 0 15 psi xdcr installed 0 1 1 full scale calibrate 0 1 0 zero calibrate 0 0 1 display pressure in psi 0 0 0 display speed in mph */ setconfig() { char i; for ( i=0; i<125; ++i ) delay(); /* to let the charge pump come to life wll */ i = PORTC & 0x07; /* and off the unused bits */ if ( i == 7 ) display_speed(); if ( i == 6 ) setup_error(); /* non–valid pattern output –SE– on display*/ if ( i == 5 ) {write_eeprom(30,&XDCRMAX); /* xdcr is 30 psi */ display(30); } if ( i == 4 ) {write_eeprom(15,&XDCRMAX); /* xdcr is 15 psi */ display(15); } if ( i == 3 ) fullscale_calibrate(); if ( i == 2 ) zero_calibrate(); if ( i == 1 ) display_pressure(); else display_speed(); } /* ################################################################### */ display(char d) Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |