Professional Documents
Culture Documents
AN025404-0608
Features
The main features of DWS are:
5V
9V Power
3.3V
Supply
2.5V 2.5V 5V 3.3V 3.3V 5V
5V
SDO MISO PA4-PA7
CS5550 Z8 Encore!
AN025404-0608 Page 2 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
1400000
ADC Count
Encore!s on-chip SPI, Timer, and GPIO periph- 1100000
eral. The software presented with this application 1000000
initializes these peripherals and configures the
CS5550 ADC. The output of Timer1 is used as sys- 900000
AN025404-0608 Page 3 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
AN025404-0608 Page 4 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
AN025404-0608 Page 5 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
Appendix ASchematics
Appendix A displays the schematics of Digital Weigh-Scale reference board.
AN025404-0608 Page 6 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
Appendix BFlowcharts
This Appendix displays the following flowcharts for the Digital Weigh-Scale application using
Z8 Encore! Microcontroller:
AN025404-0608 Page 7 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
Start
Start Continuous
ADC Conversion
50 ms Timeout No
of the timer?
Yes
End
AN025404-0608 Page 8 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
Start
End
Start
End
AN025404-0608 Page 9 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
Start
Display T on LCD
indicating TARE mode
End
AN025404-0608 Page 10 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
Start
Display C on
LCD indicating
COUNT mode
End
AN025404-0608 Page 11 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
Start
CALIBRATION No
switch pressed?
Yes
Send offset calibration
command to ADC
CALIBRATION No
switch pressed?
Yes
Send gain calibration
command to ADC
End
AN025404-0608 Page 12 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
Start
No
No
No
Make the weight
offset (as set in TARE
TEST Yes
function) zero and
switch pressed? change system mode
to NORMAL
No
End
AN025404-0608 Page 13 of 14
High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers
As used herein
Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b)
support or sustain life and whose failure to perform when properly used in accordance with instructions for
use provided in the labeling can be reasonably expected to result in a significant injury to the user. A
critical component is any component in a life support device or system whose failure to perform can be
reasonably expected to cause the failure of the life support device or system or to affect its safety or
effectiveness.
Document Disclaimer
2008 by Zilog, Inc. All rights reserved. Information in this publication concerning the devices,
applications, or technology described is intended to suggest possible uses and may be superseded. ZILOG,
INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY
OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT.
Z I L O G A L S O D O E S N O T A S S U M E L I A B I L I T Y F O R I N T E L L E C T U A L P R O P E RT Y
INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR
TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE. The information contained within this
document has been verified according to the general principles of electrical and mechanical engineering.
Z8, Z8 Encore!, and Z8 Encore! XP are registered trademarks of Zilog, Inc. eZ8 is a trademark of Zilog,
Inc. All other product or service names are the property of their respective owners.
AN025404-0608 Page 14 of 14
14