Objective: Additional project details: Code: PSEMBP 100 Category:STEM Level: High School/Community C.

Similar documents
Z8 Encore! XP F0822 Series

Z8 Encore! XP 4K Series with extended Peripherals

High-Performance 8-Bit Microcontrollers. Up to 8 10-Bit ADC Channels. Two 16-Bit Timers/PWM. Internal Precision Oscillator

High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

Z8 Encore! XP F0822 Series Development Kit

Introduction to ARM LPC2148 Microcontroller

Real Time Embedded Systems. Lecture 1 January 17, 2012

Systems Programming. Lecture 4 Z16 Architecture and Programming

5x7 LED Matrix Display with Z8 Encore! XP

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

Intel Galileo gen 2 Board

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

SKP16C26 Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

Quick Start Guide for the Turbo upsd DK3300-ELCD Development Kit- RIDE

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Challenge. Hardware Circuit Details. Solution. Result. Features and Functions. Z8 Encore! MC

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

ZLF645 Crimzon Flash Microcontroller with ZBase Database Industry Leading Universal Infrared Remote Control (UIR) Solution

Product Update. Errata to Z8 Encore! 8K Series Silicon. Z8 Encore! 8K Series Silicon with Date Codes 0402 and Later

Ultra Low Power Microcontroller - Design Criteria - June 2017

Flash Loader Utility for the Z8 Encore! XP MCU

Freescale Semiconductor Inc. Microcontroller Solutions Group. FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0

C8051F700-DK C8051F700 DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents. 3. Hardware Setup

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

Goal: We want to build an autonomous vehicle (robot)

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0

WHICH MICRO? What does MCU needs to do in my system? What are the tasks? Dr. Adriana Becker-Gomez

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

Lab 1 Introduction to Microcontroller

LPC-P1227 development board USER S MANUAL Initial release, March 2012 Designed by OLIMEX Ltd, 2011

AC/DC. Adapter. Ribbon. Cable Serial. Serial. Adapter. Figure 1. Hardware Setup using an EC2 Serial Adapter

Advanced Embedded Systems

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

C8051F800-DK C8051F800 DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents. 3. Hardware Setup

Microcontroller basics

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

Cookie User Manual. For NuMicro Edition 1.0. Rev. 1.0 Release: forum.coocox.org.

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

STM32 Cortex-M3 STM32F STM32L STM32W

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

Accelerometer with Analog and Digital I/O for StackableUSB USB1600

AC/DC. Adapter. Serial. Adapter. Figure 1. Hardware Setup

SEIKO EPSON CORPORATION

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

EasyPIC5 Development System

32 bit Micro Experimenter Board Description and Assembly manual

Factsheet 16FX Concept Compatible Platform of 16-bit Microcontrollers

ESPino - Specifications

Freedom FRDM-KV31F Development Platform User s Guide

ARDUINO MEGA INTRODUCTION

Introduction to L.A.P. 1

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

Melon S3 FPGA Development Board Product Datasheet

ATmega128. Introduction

A Simple Console Application for Z8 Encore! XP MCUs

Hands on Experience with AVR32

Product Technical Brief S3C2440X Series Rev 2.0, Oct. 2003

Using the Z8051 MCU s USI Peripheral as an SPI Interface

EasyAVR6 Development System

EMBEDDED SYSTEMS COURSE CURRICULUM

Clicker 2 for Kinetis

Rad-Hard Microcontroller For Space Applications

An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus

Renesas Starter Kit for RX111

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

AKKON USB CONTROLLER BOARD

CEIBO FE-W7 Development System

LPC4370FET256. Features and benefits

Lab Course Microcontroller Programming

Overview. Features. Z8 Encore! XP F082A Series Product Specification

C8051F530A-DK C8051F530A DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents

2-Oct-13. the world s most energy friendly microcontrollers and radios

Easy Kit Board Manual

Bolt 18F2550 System Hardware Manual

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

HVP-KV10Z32 User s Guide

Interconnects, Memory, GPIO

CEIBO FE-5131A Development System

CONTENTS. dspicpro4 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

LPC1788 Mio Board. The functional details of the board are as follows-

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22

CEIBO FE-51RD2 Development System

User Manual. LPC-StickView V3.0. for LPC-Stick (LPC2468) LPC2478-Stick LPC3250-Stick. Contents

LPC-H1343 development board Users Manual

CoLinkEx_LPC11C14 EVB Kit User Guide

Product Technical Brief S3C2412 Rev 2.2, Apr. 2006

C8051F340/1/2/3/4/5/6/7/8/9

PIC-LCD-3310 development board Users Manual

F 2 MC-8FX Family. 8-bit Microcontroller. MB95200 Series

Programming in the MAXQ environment

Transcription:

Objective: At the end of this session, you will have a fair understanding of - Z8 Encore! language tools including C compiler, assembler, linker/locator, and librarian - Instruction set simulator and disassembler - Zilog Standard Library (ZSL) - In-Circuit Z8 Encore! Flash MCU debugger and programmer -USB Smart Cable Additional project details: Code: PSEMBP 100 Category:STEM Level: High School/Community C. At the end of this project you should be able to write 'C' Language code for a digital weigh-scale (DWS) based on Z8F0812 microcontroller from ZiLOG's Z8 Encore! series. A 24 bit ADC, CS5550 is used to accurately measure the load cell output. The ADC is interfaced to the microcontroller via SPI. The measured weight is displayed on LCD The DWS reference design supports following features 10gm to 40Kg weight measurement, with 10gm resolution Tare Count Offset and gain calibration for ADC Choice of clock source for ADC TIMER output of Z8F0812 Crystal Choice of internal or external reference voltage for ADC On-board excitation voltage for load cell The reference design offers a ready to productize digital weigh-scale solution that can be easily scaled to measure high capacity loads. Z8Encore! Digital Weigh-Scale File List Here is a list of all documented files with brief descriptions:cs5550_spi.c [code] This file contains routines to write to and read from CS5550 ADC cs5550_spi.h [code] This file contains funciton prototypes and constant definitions used by cs5550_spi.c lcd.c [code] This file contains LCD related routines lcd.h [code] This file contains funciton prototypes and constant definitions used by lcd.c main.c [code] This file contains the entry point function of the application spi.c [code] This file contains SPI related routines spi.h [code] This file contains funciton prototypes and constant definitions used by spi.c switches.c [code] This file contains GPIO interrupt service and switch functionality routines

switches.h [code] This file contains funciton prototypes and constant definitions used by switches.c timer.c [code] This file contains Timer related routines timer.h [code] This file contains funciton prototypes used by timer.c weight.c [code] This file contains routines to calculate weight of the object from the ADC value and display the weight on LCD weight.h [code] This file contains funciton prototypes used by weight.c Processor: Z8F0812 ; Development Kit used: Z8F08200100KIT File Open Project digital_weigh_scale C Programming fundamentals (1 week) Understanding CPU Z8F0812 capabilities

Hardware Details Key features of Z8 Encore! XP F0822 Series include: 20 MHz ez8 CPU core Up to 8 KB Flash memory with in-circuit programming capability 1 KB register RAM Optional 2- or 5-channel, 10-bit analog-to digital converter (ADC) Full-duplex 9-bit UART with bus transceiver Driver Enable Control I2C ports Serial Peripheral Interface (SPI)

Hardware Details Infrared Data Association (IrDA)-compliant infrared encoder/decoders Two 16-bit timers with capture, compare, and PWM capability Watchdog Timer (WDT) with internal RC oscillator 11 to 9 I/O pins depending upon package Up to 19 interrupts with configurable priority On-Chip Debugger (OCD) Voltage Brownout (VBO) protection Power-On Reset (POR) Crystal oscillator with three power settings and external RC network option 2.7 V to 3.6 V operating voltage with 5 V-tolerant inputs 20-/28-pin packages 0 ºC to +70 ºC standard temperature and 40 ºC to +105 ºC extended temperature operating ranges Connecting the Development Kit to the smart USB cable and uploading the firmware to CPU flash memory. Running the program Single stepping the program and monitor the registers Z8 Encore Z8F08200100KIT Dev Kit User Manual UM0187.pdf http://zilog.com/index.php? option=com_product&itemid=26&task=docs&businessline=1&parent_id=2&familyid=6&pro ductid=z8f0812 http://www.zilog.com/docs/an0306.pdf Application demonstration

--------------------------------------------------------------------------- The source code is designed for Digital Weigh-Scale reference design board. Setup Connect the load cell bridge excitation terminals to the connector J16 as shown in schematic. Connect the differential output of the load cell to the connector J4 which is input to the analog input channel 2. Plug in a 9 Volt/10W DC adapter to J1. Put the SPDT switch SW6 in ON position to power up the board. Build the digital_weigh_scale.zdsproj project in ZDSII and download the code to the target board. Basic weight measurement Put some weight on the load cell and observe the measured weight on the LCD Development Kit: The student would be recommended to buy an appropriate Development kit from Zilog. All programing and technical support and guidance would be provided by ProjectSchool. Recommended for : High School STEM students/community College