Microcontrollers. What is a Microcontroller. Setting up. Sample First Programs ASCII. Characteristics Basic Stamp 2 the controller in the Boe Bot

Similar documents
Chapter 1: Your Boe-Bot s Brain

Tutorial: Robotics with Boe-Bot and PBASIC

ENGR PBASIC programming

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977)

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977) 4 rows x 20 characters Backlit (#27979)

Communicating with the BOE-BOT

Getting Started with Parallax IDE

CMSC 1513 Lecture 1.2

Computers Are Your Future

Programmable Control. Name Class Teacher. Ellon Academy Technical Faculty

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 2. PIC and Programming

Parallax BASIC Stamp IIsx

Micro-Controllers. Module 2: Outputs Control and Inputs Monitoring. IAT Curriculum Unit PREPARED BY. August 2008

ME456: Mechatronics. Prof. Clark Radcliffe. Do you have the knack? Joonho Lee, TA. What s Mechatronics? Mechatronics

CC411: Introduction To Microprocessors

RS-232 Adapter Board

Computers Are Your Future

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

BASIC STAMP FAQS (FREQUENTLY ASKED QUESTIONS AND ANSWERS)

Prop-2 Controller PN: 31102

Introduction to Microprocessor

Prop-1 Controller PN: 31101

Embedded Systems. Read pages

Table of Contents. Introductory Material

Easy GPS Readings for the Basic Stamp Chip. By Randy R. Price Kansas State University Biological and Agricultural Engineering Department

Computer Organization and Assembly Language. Lab Session 01

ME2110: Creative Decisions and Design Electromechanical and Pneumatic Kit Manual

Introduction. Arizona State University 1

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

Board Of Education USB (#28850)

Hitachi H48C 3-Axis Accelerometer Module (#28026)

Dec Hex Bin ORG ; ZERO. Introduction To Computing

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

BSCB-2 BASIC STAMP CARRIER BOARD

Light Sensors. Measuring Light. The Phototransistor. Discharge Times. Measuring Light. Chapter 7: Measuring Light

Full file at

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

Stonelaw High School. Computing Science. BGE - Computer Systems

Chapter 4 The Components of the System Unit

Introduction to 8051 microcontrollers

DC-16 Output Expansion Board PN: 31216

Computer is an electronic machine that can receive, store, transform and output data of all kinds (image, text, numeric, graphics and sound).

UNIT 7A Data Representation: Numbers and Text. Digital Data

d. Window list 9. A large space common in most of the windows which is for users work with that application is --- a. Application view b.

VISUAL SUMMARY. The System Unit

System Unit Components Chapter2

C H A P T E R 1. Introduction to Computers and Programming

Introduction to a Typical PC. Freedom High School

Week One: Introduction A SHORT INTRODUCTION TO HARDWARE, SOFTWARE, AND ALGORITHM DEVELOPMENT

Chapter 2 68HC11 Based Temperature Monitoring Board

Components of a personal computer

Physics 430 Laboratory Manual Rev.: 2004 Sept. 29

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Chapter 9: A Closer Look at System Hardware

Web Site: Forums: forums.parallax.com Sales: Technical:

Chapter 9: A Closer Look at System Hardware 4

An Overview of the Computer System. Kafui A. Prebbie 24

Data Representation and Binary Arithmetic. Lecture 2

RBT-225 Lab #2 Basic Stamp Relays August 14, 2016

RC-4 Relay Board (#31204) Solid-State Relay Controller

1.1. INTRODUCTION 1.2. NUMBER SYSTEMS

BASIC Stamp 1 Project Board (#27112) Development / Education Platform for the BASIC Stamp 1

Parallel and Serial Bus Analysis Instructor s Guide

Chapter 1: Introduction to Computers and Programming

Introduction to Computers - Chapter 4

NEW CEIBO DEBUGGER. Menus and Commands

Unit - II. Computer Concepts and C Programming 06CCP13. Unit II

Information Science 1

University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011

Parallax Say It Module (#30080)

melabs Serial LCD Firmware Version 1.1 3/5/07

BV4109. Serial LCD Controller. Product specification November ByVac 2006 ByVac Page 1 of 12

Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions. Mr. Dave Clausen La Cañada High School

Memory Addressing, Binary, and Hexadecimal Review

Programming (1.0hour)

Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 1.

Introduction to Microcontrollers

WT6510. USB Keyboard Controller (Mask ROM Type)

AtlasScientific. Micro footprint Embedded Data Logging subsystem ENV-32X. Biology Technology

Arduino Micro Breadboard Laboratory Interface Processor (Micro BLIP) User Manual

address ALU the operation opcode ACC Acc memory address

Chapter 4 The Components of the System Unit

Microcontroller Not just a case of you say tomarto and I say tomayto

ZX-17 Serial Real-Time Clock application board

Homeschool Enrichment. The System Unit: Processing & Memory

MICRO-1356 MULTI-PROTOCOL READER

iclass Reader (RevA) PIC 18F452/18F6621 RAM Dumper Operating Instructions

melabs Serial LCD Firmware Version 1.0 2/7/07

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Some Basic Terminology

CLCD1 Serial 1 wire RS232 LCD development board

DEBUGGING SERIAL COMMUNICATIONS WITH OTHER DEVICES

PINK (Parallax Internet Netburner Kit - #30013)

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module

In this lecture, we will look at how storage (or memory) works with processor in a computer system. This is in preparation for the next lecture, in

Instruction Manual for BE-SP3 Circuit. 10/21/07

3.1 Description of Microprocessor. 3.2 History of Microprocessor

538 Lecture Notes Week 1

Transcription:

Microcontrollers What is a Microcontroller Characteristics Basic Stamp 2 the controller in the Boe Bot Setting up Developmental Software Hardware Sample First Programs ASCII DEBUG using ASCII

What is a Microcontroller Characteristics How many microcontrollers did you use today? They are embedded in many common What else?? devices we use every day Some other examples: Handheld games Digital watches???????????????????? How do microcontrollers differ from PC μprocessors μprocessors use external circuitry to interface to non-computer devices (aka, Input/Output I/O devices)

What is a Microcontroller Characteristics How do microcontrollers differ from PC μprocessors (μp) Microcontrollers have circuitry to interface and control noncomputer devices The heart of both is a small computer on a chip Major Components Every system based upon a μp or microcontroller contains at least: Arithmetic Logic Unit (ALU) On Microcontroller Memory Unit- Some or all on the Microcontroller Control Unit On Microcontroller Input Unit On Microcontroller Output Unit On Microcontroller

Micro Controller Focused View of a Typical System Block Diagram

What is a Microcontroller Characteristics Major Components Interconnection of these is shown on the previous slide Arrows indicate direction of data, info, and control signal flow Large arrows indicate data or information flow Smaller arrows indicate the flow of control signals Logic Unit (ALU) On Microcontroller Area of the machine that performs Arithmetic operations and logical operations Memory Unit The memory stores information in groups called bytes The stored bytes can contain instructions (program) of the µc or data Input Unit Consists of all the devices that collect/take eternal information for input to the system

What is a Microcontroller Characteristics Major Components Shares pins with Output Output Unit Consists of all the devices that are used to transfer information from the system to the outside Shares pins with Input Basic Stamp 2 the controller module in this class First Basic Stamp module was introduced in 1992 Over 3 million sold The Stamp 2 is a later model than the on introduced in 1992 Basic Module components Micro controller chip (PIC16C57 on Basic Stamp 2) Internal memory (RAM and EEPROM)

What is a Microcontroller Basic Stamp 2 Basic Module components 5 volt regulator TTL levels 0 5V Set of basic commands Math I/O port control Programming Simplified custom version of BASIC PBASIC Speed 4000 PBASIC instructions per second

Basic Stamp 2 Pin-outs Pins 1-24 Critical Items What is a Microcontroller Sink/ Source limits on pins 5-20 VDD on pin 21 Pin 24 V IN limits System ground on Pin 23

What is a Microcontroller Basic Stamp 2 Embedded Computer Systems Modules such as the BASIC Stamp 2 are correctly called this Sometimes just Embedded System However, they are most commonly called microcontrollers Carrier Board used to hold the BASIC Stamp 2 on the Boe Bot

Overview of Microcontroller LAB Key Aspects Software Hardware Software Setup BASIC Stamp Editor You will use it on most of the Hand-On parts of the course Characteristics Aids the writing of PBASIC programs to control the Boe Bot Allows simple downloading of these programs to the Boe Bot It can them run autonomously Also displays messages sent from the Boe Bot

Getting Setup for the Course Software Setup BASIC Stamp Editor Characteristics Free from Parallax for use with their products Should be installed on your computer w/desktop Icon Click on it and open it Desktop Icon

First Programs Overview The BASIC Stamp and computer Communicate over the connecting USB or Serial cable Stream of ones and zeros flow each way First Program The following program is shown in BASIC Stamp Editor

First Programs First Program Program continued Some lines are typed and some are entered by selecting a button Clicking on this button will automatically place '{$STAMP BS2} at the beginning of your program. Clicking on this button will automatically place '{$PBASIC 2.5} at the beginning of your program. After entering the program Save it Select File then Save

First Programs First Program Program continued How thee program works First 2 lines are comments For human reading Note the apostrophe The net two lines are comments and Complier directives The DEBUG command tells the Stamp to send the message Formatters Code word that changes how a Stamp message is displayed DEC causes the display of a decimal value Control Characters CR causes a Carriage return on the line below the characters that are before it in the message

ASCII American Standard Code for Information Interchange Most microcontrollers and μps use this code to represent each keyboard character and function ASCII codes 32 126 represent printed characters and symbols ASCII codes below 32 correspond to different functions or are spare Some of the functions are: cursor up, down, right, left, etc space Delete Etc. Machine and human versions of the codes Letter a ASCII code is 61 in machine readable form 00111101 Reference page : http://www.asciitable.com/

ASCII Bits and Bytes Most microcontrollers and μps smallest unit of memory used is a Byte A Byte consists of 8 bits A Bit is the smallest unit of information Each bit is either on or off (Logic 1 or 0) ASCII only use 7 of the 8 bits in a Byte ASCII only use 7 of the 8 bits in a Byte DEBUG using ASCII Sample Program

DEBUG using ASCII How it works ASCII Each letter in the DEBUG command corresponds to one ASCII code symbol that appeared in the Debug Terminal. DEBUG 66,65,83,73,67,32,83,116,97,109,112,32,50 66 is the ASCII code for capital B, 65 is the code for capital A and so on. 32 is the code for a space between characters. Notice that each code number was separated with a comma. The commas allow the one instance of DEBUG to execute each symbol as a separate command. This is much easier to type than 12 separate DEBUG commands.