Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1  LCD aansturen  een scrollende text laten zien.

Slides:



Advertisements
Similar presentations
LOOPS Loops are lines of code that can be run more than one time. Each time is called an iteration and in for loops there is also an index that is changing.
Advertisements

Chapter 4 Addressing modes CEG2400 Microcomputer Systems CEG2400 ch4 addressing modes v3a 1.
Specially made for you Wat te doen in het leven What To Do In Life Be Calm Wees Kalm.
UML. Interaction diagrams Collaboration diagrams –Depict behaviour of objects as they interact Sequence diagrams –depict the dynamic behaviour of elements.
Vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1 Onderwerpen voor vandaag Dallas one-wire interface Opgave:
Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1  herhaling ARM assembler instructies  geindexeerde.
Vraagzinnen met to be en can maak je door de eerste woorden van de de zin om te draaien: Bij to be (am/are/is): My mother is at home. Is my mother at home?
Vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1 Onderwerpen voor vandaag functie definitions;.h files;
Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1  herhaling: geindexeerd, CMP, stack  operand2.
Hello World!. PC / MS-DOS code segment para assume cs:code,ds:code org 0100h start: mov dx,offset message ;point to message mov ah,09h ;func# to printstring.
Onderwerpen voor vandaag
ECE 353 Introduction to Microprocessor Systems Discussion 3.
Embedded Systems Programming
Wat gaan we doen? harhaling data types
Passing by-value vs. by-reference in ARM by value C code equivalent assembly code int a;.section since a is not assigned an a:.skip initial.
Tutorial 2 IDE for ARM 7 board (2). Outline Introduce the Debug mode of uVision4 2.
W 2 L 1 sh 1 Assignments Read the ‘overzicht’ document! OnderwerpV2CCPP1 x y x = student nummer y = nummer.
1 ARM Movement Instructions u MOV Rd, ; updates N, Z, C Rd = u MVN Rd, ; Rd = 0xF..F EOR.
Lab III Real-Time Embedded Operating System for a SoC System.
Chapter 9 TRAP Routines and Subroutines. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 9-2 Subroutines.
UEE072HM Linking HLL and ALP An example on ARM. Embedded and Real-Time Systems We will mainly look at embedded systems –Systems which have the computer.
I/O: SPARC Assembly Department of Computer Science Georgia State University Georgia State University Updated Spring 2014.
Assembly Language Working with the CPU.
Functions Functions and Parameters. History A function call needs to save the registers in use The called function will use the registers The registers.
Klik op het icoontje om een nieuwe afbeelding in te voegen. Zoek en selecteer de gewenste afbeelding. Klik op ´Invoegen´ 1 2 Invoegen AFBEELDING INVOEGEN.
Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1.
Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1  pak het project tint.zip.
VPEMSY1, D3ECPT2 : ARM Assembler Hogeschool Utrecht / Electrical Engineering & Design 1  Herhaling B/BL, conditions,
Hoofdstuk 13 Object-georiënteerd ontwerp. Methode-aanroep: Type van parameters void paint(Graphics g) { g.drawRect( ); class Graphics { void drawRect(int.
Java Intro. A First Java Program //The Hello, World! program in Java public class Hello { public static void main(String[] args) { System.out.println("Hello,
Wordpress Hoe doe je dat bij DSE Bloggen met. Log in op de homepage, klik in mijn account op Wordpress installeren.
Het leven als schipper is niet altijd Roze geur & manen schijn.
IDE for ARM 7 board Tutorial 3 IDE of Keil4 V3.a 1.
C - Input & Output When we are saying Input that means to feed some data into program. This can be given in the form of file or from command line. C programming.
Chapter 5: Data Input and Output Department of Computer Science Foundation Year Program Umm Alqura University, Makkah Computer Programming Skills
1 Workshop 4 (B): Visual Basic Test Project Mahidol University June 13, 2008 Paul Evenson University of Delaware Bartol Research Institute.

Practical Electronics & Programming
Computertechniek 2 – ARM assembler Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1  Herhaling ARM assembler instructies.
V 1.01 Arrays and Pointers in C A pointer variable is a variable that contains the address of another variable. An array is a collection of like elements,
Department of Electrical and Computer Engineering Introduction to Perl By Hector M Lugo-Cordero August 26, 2008.
All code must be commented! Each problem part (1,2,3a,3b,…) will be in a separate file: problem_1.s …. You may be asked to demonstrate your program. You.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Characters and Strings Functions.
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
CODING VOCABULARY.  Binary  A number system based on 2  Hexadecimal  A number system based on 16  Domain  An internet location registered with the.
Arduino Programming Part 6: LCD Panel Output ME 121 Portland State University.
Hello Educational presentation.
Motivatie & Commitment – Een eerste stap naar slagen voor je examen statistiek
Towards a data driven society
LCD.
Open data at Statistics Netherlands
Chapter 4 Addressing modes
Programmeren van visuele gebruikersomgevingen
Internet internet.
VERBINDING MET JEZELF ALS BASIS VOOR LEIDINGGEVEN AAN ANDEREN ramodeboer © 2013 mindconsult.nu Innerlijk Leiderschap.
Er zijn verschillende redenen waarom een ​​ laptop problemen zou kunnen hebben met het opladen. Bestudeer eerst het stopcontact, het snoer en de verbinding,
Beste Skoene Ooit.
When I want to execute the subroutine I just give the command Write()
Ken D. Nguyen Department of Computer Science Georgia State University
Passing Parameters Data passed to a subroutine is called a parameter.
Debugging with printf you can call printf from an ARM assembly language program some of the details will be explained later, but for now use this skeleton.
Functions continued.
Introduction to Computer Science
Ken D. Nguyen Department of Computer Science Georgia State University
Characters and Strings Functions
The Python interpreter
Introduction to SPIM Simulator
LCD.
Lecture 3 - Instruction Set - Al
Presentation transcript:

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1  LCD aansturen  een scrollende text laten zien

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 2 LCD file hello.zip uitpakken naar lege directory (geen spaties in de pathname…) run ‘as is’ geeft “Hello world” op het display

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 3 main LCD library delay library Chip startup code

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 4 LCD Library Subroutines: LCD_INIT eenmalig aanroepen LCD_CLEAR maakt het display leeg, cursor naar eerste positie LCD_PUTCHAR print het char in R0, schuift nar volgende positie

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 5 Text vastleggen hello:.asciz “Hello!”.align ldr r1, =hello

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 6.global main tekst:.asciz "Hello world!".align save registers stmfdsp!, { lr gebruik de LCD blLCD_INIT blLCD_CLEAR ldrr1, =tekst loop: ldrbr0,[ r1 ] addr1, r1, #1 cmpr0, #0 beqklaar blLCD_PUTCHAR bloop return ldmfdsp!, { pc }

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 7 blLCD_INIT blLCD_CLEAR ldrr1, =tekst loop: ldrbr0,[ r1 ] addr1, r1, #1 cmpr0, #0 beqklaar blLCD_PUTCHAR bloop klaar:

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 8 Doen Test “Hello world” Laat een andere text zien Maak een subroutine die een asciz string (R0 = pointer) laat zien op het LCD display (test deze subroutine) Laat een scrollende text zien op het LCD display

Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 9 Scroll een text ‘over’ het display, bv: Hello brave new ello brave new w llo brave new wo lo brave new wor o brave new worl brave new world brave new world. En dan weer overnieuw.