Vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1 Onderwerpen voor vandaag Dallas one-wire interface Opgave:

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

Book Project Sue Brandt Arduino Project Interactive with LEDS.
Chapter 4 Computation Bjarne Stroustrup
Service Bus Service Bus Access Control.
Recursive Descent Technique CMSC 331. UMBC 2 The Header /* This program matches the following A -> B { '|' B } B -> C { '&' C } C -> D { '^' D } D ->
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Nonblocking I/O Blocking vs. non-blocking I/O
Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009.
HM-ES-th1 Les 7 Hardware/Software Codesign with SystemC.
Katholieke Hogeschool Kempen VHDL package 1 Package Basic functions in library.
Console applicatie static void Main ( ) class Hallo { } { } Console. WriteLine("Hallo " + naam + "!" ); statische methodestatische methoden Console. WriteLine("Wat.
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 1  herhaling ARM assembler instructies  geindexeerde.
Good morning :) Please write your name on your hand-out!
All Right! 1thv Unit 4 grammar 4.2. Hoe zet je in het Engels een woord in het meervoud?
Adverbs of Frequency (Bijwoorden van tijd).  Een “adverb of frequency” geeft aan hoe vaak iets gebeurd.  Always, usually, never, often, sometimes, occasionally,
Test B, 100 Subtraction Facts
Aquafin partner for all wastewater projects 1 Gescheiden stelsel.
Vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1 Onderwerpen voor vandaag functie definitions;.h files;
Raspberry Pi Hardware en OS Stijn Van Caekenberghe Raspberry Jam Mechelen – 13 november 2014.
Chapter 12 Capturing Input
Inleiding computersystemen en netwerken deel 2 Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 5.1.
VSCSE Summer School Programming Heterogeneous Parallel Computing Systems Lecture 6: Basic CUDA and MPI.
Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1  herhaling: geindexeerd, CMP, stack  operand2.
Onderwerpen voor vandaag
Wat gaan we doen? harhaling data types
W 2 L 1 sh 1 Assignments Read the ‘overzicht’ document! OnderwerpV2CCPP1 x y x = student nummer y = nummer.
Lecture # 12. PIC Printer Interface Printer IRQ7 INT ACK Printer Interface.
OUTPUT INTERFACE – Microprocessor Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
LOGO Lab Supervisor – Dr. WH Lau EE3271 Design Laboratory.
Divisor máximo de dois inteiros. unsigned int gcd(unsigned int A, unsigned int B) { if (B > A) return gcd(B,A); else if (B==0) return A; else return gcd(B,A%B);}
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,
Shift Register Application Chapter 22 Subject: Digital System Year: 2009.
Hoofdstuk 13 Object-georiënteerd ontwerp. Methode-aanroep: Type van parameters void paint(Graphics g) { g.drawRect( ); class Graphics { void drawRect(int.
Wordpress Hoe doe je dat bij DSE Bloggen met. Log in op de homepage, klik in mijn account op Wordpress installeren.
Baseboard Aavikkomursu 7.2. Aavikkomursu Micro- controller Extension port for programming microcontroller and sensor input Resistor RS485 interface chip.
chipKit Sense Switch & Control LED
Datacenter LOB web service LOB app Partner Mobile Device.
UNIT 8 Keypad Interface Contact Closure Counter Exceptions (Interrupts and Reset)
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Practical Electronics & Programming
Computertechniek 2 – ARM assembler Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1  Herhaling ARM assembler instructies.
Practice 1 Seoul National University Graphics & Media Lab.
C Examples 5. Download Links MPLAB IDE dsPIC30F4011/4012 Data Sheet dsPIC30F Family Reference Manual MikroC MikroC Manual MikroC Quick Reference.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Real-time Systems Lab, Computer Science and Engineering, ASU Quark SPI Interface (ESP – Fall 2014) Computer Science & Engineering Department Arizona State.
Network and Systems Laboratory nslab.ee.ntu.edu.tw se.
WxHaskell Daan Leijen. Ok…. Dat lijkt me een goed plan. Denk je dat je zo iets dinsdag af kunt hebben en presenteren? Doaitse On donderdag, september.
PPI-8255.
PIC microcontrollers. PIC Microcontrollers Families Eigenschappen De PIC16C84 Eigenschappen Pinnen Interne structuur Instructieset De PIC16F877 Eigenschappen.
1-3 GPIO_Output(LuminaryLibrary) 1.Alter the output current to 4mA 2.Let LED0 turn on but LED 1 turn off. Modify your program in E:\yourname\arm.
UNIT 7 - INTRODUCTION TO I/O INTERFACING. TWO MAJOR TYPES OF I/O INTERFACING ISOLATED I/O - DEDICATED I/O INSTRUCTIONS ARE USED TO ACCESS I/O DEVICES.
1 Advanced Programming Examples Output. Show the exact output produced by the following code segment. char[,] pic = new char[6,6]; for (int i = 0; i
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
Rubber vloeren in de aanbieding online
Motivatie & Commitment – Een eerste stap naar slagen voor je examen statistiek
Get Your Project Started with Arduino
CS4101 Introduction to Embedded Systems Lab 1: General Purpose IO
Er zijn verschillende redenen waarom een ​​ laptop problemen zou kunnen hebben met het opladen. Bestudeer eerst het stopcontact, het snoer en de verbinding,
Lecture 22.
Ultrasonic Distance Sensor
Java for Beginners University Greenwich Computing At School DASCO
Gameprogrammeren: Game states
En eventueel een subtitel om de nieuwsgierigheid aan te wakkeren
Arie Vissers.
Presentation transcript:

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1 Onderwerpen voor vandaag Dallas one-wire interface Opgave: lees een 1-wire ‘Identity-Button’ uit Hoezo 1 wire?

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 2 1-wire device intern

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 3 1-wire bus

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 4 Reset, presence pulse

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 5 Write

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 6 Read

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 7 DS1990A protocol D1W_Reset(); D1W_Send( 0x33 ); for( i =0; i < 8; i++ ){ … = D1W_Receive(); }

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 8 Dallas.zip #define PI_D1W 5 void D1W_Set( int x ){ if( x ){ ARK_GPIO_direction( PIN_D1W, ARK_GPIO_INPUT ); } else { ARK_GPIO_write( PIN_D1W, 0 ); ARK_GPIO_direction( PIN_D1W, ARK_GPIO_OUTPUT ); } int D1W_Get( void ){ return ARK_GPIO_read( PIN_D1W ); } void _D1W_Init( void ){ D1W_Set( 1 ); }

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 9 Dallas.zip int D1W_Present( void ){ int present; D1W_Set( 0 ); ARK_wait_us( 600 ); D1W_Set( 1 ); ARK_wait_us( 72 ); present = ! D1W_Get(); ARK_wait_us( 600 ); return present && D1W_Get(); }

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 10 Dallas.zip unsigned char D1W_Receive( void ){ unsigned char x; int i; for( i = 0; i < 8; i++ ){ x = x >> 1; D1W_Set( 0 ); ARK_wait_us( 5 ); D1W_Set( 1 ); ARK_wait_us( 5 ); if( D1W_Get()){ x = x | 0x80; } ARK_wait_us( 100 ); } return x; }

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 11 Dallas.zip void D1W_Send( unsigned char x ){ } int main(){ }

vervolg C Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 12 Opdracht Gebruik dallas.zip. Maak het programma af, zodat als er een ID button wordt aangesloten, hiervan het serienummer wordt getoond op de LCD. Als er geen button is aangesloten moet dat ook worden aangegeven.