| 数据搜索系统,热门电子元器件搜索 |
|
MPX2202DP 数据表(PDF) 480 Page - Motorola, Inc |
|
|
|||||||||||||||||||||||||||||
MPX2202DP 数据表(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 |
|
链接网址 |
| 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 |