R8
R6
10 ?
10K
V4 sensor
6
5
-
+
7
V A
R12
500K
V CC
V CC
R7
10 ?
R11
1K
R9
13
12
-
+
4
11
C5
0.1 μ F
14
V C
9
10
-
+
8
V OUT
R5
1K
R10
500K
10K
V2 senso r
2
3
-
+
1
V B
Figure 3. Amplification Scheme
Microprocessor
To provide the signal processing for pressure values, a
microprocessor is needed. The MCU chosen for this
application is the MC68HC908QT4. This MCU is perfect for
appliance applications due to its low cost, small eight-pin
package, and other on-chip resources. The MC68HC908QT4
provides: a four-channel, eight-bit A/D, a 16-bit timer, a
trimmable internal timer, and in-system FLASH programming.
The central processing unit is based on the high
performance M68HC08 CPU core and it can address 64
Kbytes of memory space. The MC68HC908QT4 provides
PTA3
PTA4
PTA5
HC908QT4
R2
1K
A
B
CLK
HC164
R3
1K
EN
RS
RW
LCD
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
4096 bytes of user FLASH and 128 bytes of random access
memory (RAM) for ease of software development and
maintenance. There are five bi-directional input/output lines
and one input line shared with other pin features.
The MCU is available in eight-pin as well as 16-pin
packages in both PDIP and SOIC. For this application, the
eight-pin PDIP was selected. The eight-pin PDIP was chosen
for a small package, eventually to be designed into
applications as the eight-pin SOIC. The PDIP enables the
customer to reprogram the software on a programming board
and retest.
Display
Depending on the quality of the display required, water
level and water flow can be shown with two LEDs. If a higher
quality, digital output is needed, an optional LCD interface is
provided on the reference board. Using a shift register to hold
display data, the LCD is driven with only three lines outputted
from the microcontroller: an enable line, a data line, and a
clock signal. The two LEDs are multiplexed with the data line
and clock signal
Figure 4. Multiplexed LCD Circuit
Multiplexing of the microcontroller output pins allows
communication of the LCD to be accomplished with three pins
instead of eight or 11 pins of I/O lines usually needed. With an
eight-bit shift register, we are able to manually clock in eight
bits of data. The enable line (EN) is manually accepted when
eight bytes have been shifted in, telling the LCD the data on
the data bus is available to execute.
The LEDs are used to show pressure output data by
displaying binary values corresponding to a pressure range.
Leak detection, or water-flow speed, is displayed by blinking a
green LED at a speed relating to the speed of water flow. The
red LED displays the direction of water flow. Turning the red
LED off signifies water flowing into the tub. Turning the red
LED on signifies water flowing out of the tub, or alternatively,
there is a leak.
Digital values for water height, rate of water flow, and
calibration values are displayed if an LCD is connected to the
board
AN1950
Sensors
Freescale Semiconductor
3
相关PDF资料
KN500B1/4 SWITCH KNOB STRAIGHT .50" BLACK
KN5700B1/4 SWITCH KNOB STRAIGHT .75" BLACK
KN700B1/4 SWITCH KNOB STRAIGHT .75" BLACK
KS-100 PROTECTIVE COVER FOR RELAYS
KTKK-0500 CONN HEAT SHRINK TUBE SZ 8 STR
KTKK-0674 CONN HEAT SHRINK TUBE SZ E STR
KTKK-1123 CONN HEAT SHRINK TUBE SZ D ANG
KTR10EZPJ302 RES 3.0K OHM 1/8W 5% 0805 SMD
相关代理商/技术参数
KITMPXA6115AEVB 功能描述:压力传感器开发工具 Sensor Toolbx Pressu Sensor Developmt brd RoHS:否 制造商:Freescale Semiconductor 工具用于评估:MPL3115A2 接口类型:USB 最大工作温度:
KITMPXSHOWEVK 功能描述:压力传感器开发工具 PRESSURE SHOWBOARD RoHS:否 制造商:Freescale Semiconductor 工具用于评估:MPL3115A2 接口类型:USB 最大工作温度:
KITMPXV5004DPEVB 功能描述:压力传感器开发工具 MPXV5004 Dev Kit RoHS:否 制造商:Freescale Semiconductor 工具用于评估:MPL3115A2 接口类型:USB 最大工作温度:
KITMS05051 功能描述:电容套件 0.2pF-1.0pF 0505 10 EA-8 VALUES RoHS:否 制造商:Nichicon 电容范围:10 uF to 680 uF 公差范围: 电压范围:6.3 V to 25 V 产品:Aluminum Organic Polymer Capacitor Kit
KITMS05052 功能描述:电容套件 1.5pF-22pF 0505 10 EA-8 VALUES RoHS:否 制造商:Nichicon 电容范围:10 uF to 680 uF 公差范围: 电压范围:6.3 V to 25 V 产品:Aluminum Organic Polymer Capacitor Kit
KITMS05053 功能描述:电容套件 27pF-330pF 0505 10 EA-8 VALUES RoHS:否 制造商:Nichicon 电容范围:10 uF to 680 uF 公差范围: 电压范围:6.3 V to 25 V 产品:Aluminum Organic Polymer Capacitor Kit
KITMS06031 功能描述:电容套件 0.1pF-1.0pF 0603 10 EA-8 VALUES RoHS:否 制造商:Nichicon 电容范围:10 uF to 680 uF 公差范围: 电压范围:6.3 V to 25 V 产品:Aluminum Organic Polymer Capacitor Kit
KITMS06032 功能描述:电容套件 1.5pF-22pF 0603 10 EA-8 VALUES RoHS:否 制造商:Nichicon 电容范围:10 uF to 680 uF 公差范围: 电压范围:6.3 V to 25 V 产品:Aluminum Organic Polymer Capacitor Kit