BalloonSat Mini Flight Computer Programming. label: An address, or location for the program to jump to Must end in a colon Can be any name, but not a.

Slides:



Advertisements
Similar presentations
Fetch Execute Cycle – In Detail -
Advertisements

PICAXE Memory.
Microprocessors Typical microprocessor controlled devices: Camera, mobile phone, stereo, mp3 player, electronic toys… High-level microprocessor controlled.
In this presentation you will:
Basic Stamp II is kinda cool Bytes of EEPROM(non-volatile) - Clock speed of 20 MHz. - Holds 600 lines of code in EEPROM - executes an average of.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Introduction to computer: executes instructions. Overview Topics discussed in this webnote: –Structure and operation of the CPU –Program flow –Types of.
Embedded Programming and Robotics
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Simple Python Loops Sec 9-7 Web Design.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
BASIC Stamp Editor Once installed, the Stamp Editor will be available on your desktop, and as a menu option under Start  Program Files  Parallax Inc.
chipKit Sense Switch & Control LED
Computer Basics An overview of computer hardware ICT Tools: Computer Basics.
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
A Simple Tour of the MSP430. Light LEDs in C LEDs can be connected in two standard ways. Active high circuit, the LED illuminates if the pin is driven.
Computer Terms. Computer A machine designed to run programs and store information that you create.
The Basic Stamp Instruction Set Architecture. The Microprocessor A microprocessor is a computer that typically has an architecture that is well suited.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Programming the CheapBot-14. Start the Editor Set the Mode.
Vintage Computer Hardware 101 Featuring the MITS Altair 680b Bill Degnan.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Processes.
PICAXE Microcontrollers An Introduction by NearSys.
Controlling Execution Dong Shao, Nanjing Unviersity.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Microcontrollers Module 3: Digital Display. 7 – Segment Display A seven-segment display (SSD), or seven- segment indicator, is a form of electronic display.
COMPUTER ORGANISATION I HIGHER STILL Computing Computer Systems Higher Marr College Computing Department 2002.
Introduction 2 Smart Design. What is smart design? 2 Everything is designed except nature The packaging of a Band-Aid The curve of a bike frame The shape.
July 7, 2003 Slide 1 of 6 Automation, Robotics and Mechatronics Lab, SUNY at Buffalo Introduction To Programming Chetan Jadhav Talib Bhabharawala Seung-Kook.
1 Computer Systems II Introduction to Processes. 2 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
PICAXEPIC Amherst Railroad Hobby Show Dave Bodnar January 24, 2014 Amherst, MA PICAXE Workshop Enhancing your Railroad with Microcontrollers This.
Digital Electronics Board-of-Education : Output. Board of Education - Output This presentation will explain, both from a hardware and software perspective,
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 3: Processes Process Concept Process Scheduling Operations.
CS-280 Dr. Mark L. Hornick 1 Sequential Execution Normally, CPU sequentially executes instructions in a program Subroutine calls are synchronous to the.
1 Module 3: Processes Reading: Chapter Next Module: –Inter-process Communication –Process Scheduling –Reading: Chapter 4.5, 6.1 – 6.3.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Operating System Components) These components reflect the services made available by the O.S. Process Management Memory Management I/O Device Management.
Tutorial 2: Homework 1 and Project 1
SPiiPlus Training Class
PICAXE Microcontroller
INTRODUCTION TO ROBOTICS Part 5: Programming
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Processes and threads.
Val Manes Department of Math & Computer Science
Chapter 3: Process Concept
Lesson Objectives Aims Key Words Interrupt, Buffer, Priority, Stack
Microcontroller basics
Operating Systems (CS 340 D)
Chapter 3: Processes.
Lighting LEDs with a RASPBERRY PI
Operating Systems (CS 340 D)
Lecture 2: Processes Part 1
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
HW & Systems: Operating Systems IS 101Y/CMSC 101 Computational Thinking and Design Tuesday, October 22, 2013 Carolyn Seaman University of Maryland, Baltimore.
Fundamentals of Computer Organisation & Architecture
Process & its States Lecture 5.
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Sequencing, Selection, and Loops in Machine Language
PICAXE BASIC The programming language used by the PICAXE microcontrollers is called BASIC. BASIC is a very early programming language and designed to make.
Lecture 6: Multiprogramming and Context Switching
Chapter 3: Processes.
Lab #1: Getting Started.
Introduction to Arduinos
Presentation transcript:

BalloonSat Mini Flight Computer Programming

label: An address, or location for the program to jump to Must end in a colon Can be any name, but not a command No spaces allowed, use an underline in place of a space Can’t begin with a number

PAUSE time Halts program execution for a number of milliseconds (1/1,000 of a second) Used to prevent the program from finishing in a fraction of a second

HIGH C.2 and LOW C.2 Used to trigger the camera HIGH activates the relay which is the camera’s new shutter switch Keep HIGH for about 1 second (PAUSE 1000) LOW turns off the relay (camera needs you to release the shutter)

IF PINC.3 = n label Monitors the Commit Pin Conditional jump, only occurs if condition is true Prevents flight computer from recording data until ready for launch n can be either a 0 or a 1 IF PINC.3 = 0 then Commit Pin is in place IF PINC.3 = 1 then Commit Pin is removed

READADC i/o,Bx Converts analog sensor voltage to a digital value Linear conversion: 0V = 0 and 5V = 255 Specifies the I/O pin (either C.1 or C.4) to digitize Specifies the RAM memory to store the result (B0 to B27)

Write Bn, x Writes a variable from temporary RAM into permanent Data Memory RAM variable can be B0 to B27 Data Memory address runs from 0 to 255

READ x,Bn Reads data from permanent Data Memory into temporary RAM Required to send the data via SERTXD Data Memory address runs from 0 to 255 RAM variable can be B0 to B27

SERTXD “text”, Bn Writes variable from RAM to the PC Writes text (must enclose text in quotes) Use the PICAXE Terminal program (F8) Set Terminal for 4800 baud

GOTO label Jumps program execution to the label Unconditional jump, happens as soon as command is executed

FOR Bn = x TO y Loop control, makes program repeat itself Saves program memory, a short program can be repeated many times without writing the program many times (maximum of 255 times) Bn is the RAM variable that monitors how many times the loop of code has been repeated x is the starting number y is the finishing number

NEXT Placed at the end of the lines of code repeated by the FOR command Indicates the end of the repeated code Easier to read program if the lines of code between the FOR and NEXT are indented