LABORATORY MANUAL EMBEDDED SYSTEMS LABORATORY. M. Tech I Year I Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG.

Size: px
Start display at page:

Download "LABORATORY MANUAL EMBEDDED SYSTEMS LABORATORY. M. Tech I Year I Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG."

Transcription

1 LABORATORY MANUAL EMBEDDED SYSTEMS LABORATORY M. Tech I Year I Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. BALAJI INSTITUTE OF TECHNOLOGY & SCIENCE Laknepally, Narsampet, Warangal

2 LIST OF EXPERIMENTS Note: Minimum of 10 Experiments have to be conducted 1. Write a simple program to print hello world 2. Write a simple program to show a delay. 3. Write a loop application to copy values from P1 to P2 4. Write a c program for counting the no of times that a switch is pressed & released. 5. Illustrate the use of port header file (port M) using an interface consisting of a keypad and liquid crystal display. 6. Write a program to create a portable hardward delay. 7. Write a c program to test loop time outs. 8. Write a c program to test hardware based timeout loops. 9. Develop a simple EOS showing traffic light sequencing. 10. Write a program to display elapsed time over RS-232 link. 11. Write a program to drive SEOS using Timer Develop software for milk pasteurization system.

3 1. Write a simple program to print hello world #include <lpc214x.h> #define rs 0x #define en 0x void delay_ms(unsigned int t) unsigned int i; for(;t>0;t--) for(i=0;i<13000;i++); void cmd(unsigned char x) unsigned int y; y = x<<18; IOPIN1 = IOPIN1 & 0xFC00FFFF; IOPIN1 = IOPIN1 y; IOCLR1 = rs; IOSET1 = en; delay_ms(10); IOCLR1 = en; delay_ms(10); void lcd_disp(unsigned char x) unsigned int y; y = x<<18;

4 IOPIN1 = IOPIN1 & 0xFC00FFFF; IOPIN1 = IOPIN1 y; IOSET1 = rs; IOSET1 = en; delay_ms(10); IOCLR1 =en; delay_ms(10); void disp_str(unsigned char *x) while(*x) lcd_disp(*x++); void lcdinit() IODIR1=0x03FF0000; cmd(0x38); cmd(0x01); cmd(0x06); cmd(0x0c); cmd(0x80); int main() IODIR0=0xffffffff; lcdinit(); while(1) cmd(0x80); disp_str("hello world");

5 2. Write a simple program to show a delay. #include <lpc214x.h> #define led1 0x // declare led1 is p0.0 #define led2 0x // declare led2 is p0.1 unsigned char x; void delay_ms(unsigned int t) // delay functiobn unsigned int i; for(;t>0;t--) for(i=0;i<5000;i++); // int main() IODIR0=0x ; // declare p0.1 to p0.2 as output pis for leds while(1) // continuous loop IOSET0 =led1; IOSET0 =led2; delay_ms(1000); // upto 1 sec leds are on(1000= 1 sec, if u want 2 sec delay then 2000) IOCLR0 =led1; IOCLR0 =led2; delay_ms(1000); // upto 1 sec leds are off

6 3. Write a loop application to copy values from P1 to P2 #include <lpc214x.h> unsigned char x; unsigned int y; int main() IODIR0=0x ; // declare p0 as input IODIR0=0xffff0000; // declare p as output while(1) // continuous loop x='w'; y = x<<16; // single char 'w' transfer to x variable // valur transfer from p0.16 pin to p0.23(8 bit dat) IOPIN0 = IOPIN0 & 0x ; // first clear the all pins that's why we are using and(&) opration with zeros IOPIN0 = IOPIN0 y; // value transfer to port 0 IOPIN1 = IOPIN1 & 0x ; // first clear the all pins that's why we are using and(&) opration with zeros IOPIN1 = IOPIN0 ; // value transfer to port 0 to port1

7 4. Write a c program for counting the no of times that a switch is pressed & released. #include <lpc214x.h> #define sw 1<<0 // p0.0 connected to switch unsigned int pc,rc; //pc= pressed count, rc= released count variables unsigned char x; int main() IODIR0=0x ; // declare p0 as input while(1) // continuous loop x=iopin0; // read input value from switch x=x&0x ; // if input signal is high that signal & with 1 then output is '1' otherwise '0' if(x==0x ) // switch is pressed signal is high then enter this loop while(x==0x ); // wait until switch is released pc++; // increment the pressed count else if(x==0x ) while(x==0x ); // wait until switch is pressed rc++; // increment the released count

8 5. Illustrate the use of port header file (port M) using an interface consisting of a keypad and liquid crystal display. #include <LPC214X.H> #include "lcd.h" #include "keypad.h" unsigned char arr[4]; int main() IODIR0=0xfff000ff; // declare col as inputs and row as outputs lcdinit(); while(1) to array cmd(0x80); // lcd 1st row display address disp_str("enter VALUES "); cmd(0xc0); // lcd 2 nd row display address for(i=0;i<4;i++) // ENTER 4 VALUES arr[i]=get_key(); // read value from keypad and assign lcd_disp(arr[i]); // display value in array #define C1 0x //p0.17v col 1 #define C2 0x //p0.18 col 2 #define C3 0x //p0.19 col 3 #define RowA 0x //p0.20 #define RowB 0x //p0.21 #define RowC 0x //p0.22 #define RowD 0x //p0.23 unsigned char key,ch; unsigned int i,j; void dela(int x); void Return(void) cmd(0x02); dela(1500); //Return to 0 location on LCD

9 char READ_SWITCHES(void) IO0CLR =RowA;IO0SET =RowB;IO0SET =RowC;IO0SET =RowD; //Test Row A if (!(IOPIN0&=C1)) dela(100); while (!(IOPIN0&=C1)); return '1'; IO0CLR =RowA;IO0SET =RowB;IO0SET =RowC;IO0SET =RowD; if (!(IOPIN0&=C2)) dela(100); while (!(IOPIN0&=C2)); return '2'; IO0CLR =RowA;IO0SET =RowB;IO0SET =RowC;IO0SET =RowD; if (!(IOPIN0&=C3)) dela(100); while (!(IOPIN0&=C3)); return '3'; IO0CLR =RowB;IO0SET =RowA;IO0SET =RowC;IO0SET =RowD; //Test Row B if (!(IOPIN0&=C1)) dela(100); while (!(IOPIN0&=C1)); return '4'; IO0CLR =RowB;IO0SET =RowA;IO0SET =RowC;IO0SET =RowD; if (!(IOPIN0&=C2)) dela(100); while (!(IOPIN0&=C2)); return '5'; IO0CLR =RowB;IO0SET =RowA;IO0SET =RowC;IO0SET =RowD; if (!(IOPIN0&=C3)) dela(100); while (!(IOPIN0&=C3)); return '6'; IO0CLR =RowC;IO0SET =RowA;IO0SET =RowB;IO0SET =RowD; //Test Row C if (!(IOPIN0&=C1)) dela(100); while (!(IOPIN0&=C1)); return '7'; IO0CLR =RowC;IO0SET =RowA;IO0SET =RowB;IO0SET =RowD; if (!(IOPIN0&=C2)) dela(100); while (!(IOPIN0&=C2)); return '8'; IO0CLR =RowC;IO0SET =RowA;IO0SET =RowB;IO0SET =RowD; if (!(IOPIN0&=C3)) dela(100); while (!(IOPIN0&=C3)); return '9'; IO0CLR =RowD;IO0SET =RowA;IO0SET =RowB;IO0SET =RowC;//Test Row D if (!(IOPIN0&=C1)) dela(100); while (!(IOPIN0&=C1)); return '*'; IO0CLR =RowD;IO0SET =RowA;IO0SET =RowB;IO0SET =RowC; if (!(IOPIN0&=C2)) dela(100); while (!(IOPIN0&=C2)); return '0'; IO0CLR =RowD;IO0SET =RowA;IO0SET =RowB;IO0SET =RowC; if (!(IOPIN0&=C3)) dela(100); while (!(IOPIN0&=C3)); return '#'; return 'n'; // Means no key has been pressed

10 char get_key(void) char key = 'n'; //get key from user //assume no key pressed while(key=='n') //wait untill a key is pressed key = READ_SWITCHES(); //scan the keys again and again return key; //when key pressed then return its value void dela(int x) int i,j; for(i=0;i<x;i++) for(j=0;j<200;j++); //null statement #define rs 0x #define en 0x void delay_ms(unsigned int t) unsigned int i; for(;t>0;t--) for(i=0;i<13000;i++); void cmd(unsigned char x) unsigned int y; y = x<<18; IOPIN1 = IOPIN1 & 0xFC00FFFF; IOPIN1 = IOPIN1 y; IOCLR1 = rs; IOSET1 = en; delay_ms(10); IOCLR1 = en; delay_ms(10); void lcd_disp(unsigned char x) unsigned int y; y = x<<18;

11 IOPIN1 = IOPIN1 & 0xFC00FFFF; IOPIN1 = IOPIN1 y; IOSET1 = rs; IOSET1 = en; delay_ms(10); IOCLR1 =en; delay_ms(10); void disp_str(unsigned char *x) while(*x) lcd_disp(*x++); void lcdinit() IODIR1=0x03FF0000; cmd(0x38); cmd(0x01); cmd(0x06); cmd(0x0c); cmd(0x80);

12 6. Write a program to create a portable hardward delay. #include <lpc214x.h> #define PLOCK 0x #define PRESCALE void delayms(unsigned int milliseconds); void initclocks(void); void inittimer0(void); void setuppll0(void); void feedseq(void); void connectpll0(void); int main(void) initclocks(); inittimer0(); IO0DIR = 0xFFFFFFFF; while(1) IO0SET = 0xFFFFFFFF; delayms(500); IO0CLR = 0xFFFFFFFF; delayms(500); //0.5 Second(s) Delay void inittimer0(void) T0CTCR = 0x0; T0PR = PRESCALE-1; T0TCR = 0x02; void delayms(unsigned int milliseconds) T0TCR = 0x02; T0TCR = 0x01;

13 while(t0tc < milliseconds); T0TCR = 0x00; void initclocks(void) setuppll0(); feedseq(); connectpll0(); feedseq(); VPBDIV = 0x01; void setuppll0(void) PLL0CON = 0x01; PLL0CFG = 0x24; void feedseq(void) PLL0FEED = 0xAA; PLL0FEED = 0x55; void connectpll0(void) while(!( PLL0STAT & PLOCK )); PLL0CON = 0x03;

14 7. Write a c program to test loop time outs. #include <lpc214x.h> #define sw 1<<0 void testtime_out(unsigned int milliseconds); unsigned char x; int main(void) IO0DIR = 0xFFFFFFFe; while(1) mn: x=iopin0; x=x&0x ; if(sw==0x ) IO0SET = 0xFFFFFFFF; IO0CLR = 0xFFFFFFFF; testtime_out(1500); //1.5 Second(s) time out loop goto mn; else if(sw==0x ) IO0SET = 0xFFFFFFFF; IO0CLR = 0xFFFFFFFF; testtime_out(1500); goto mn; //1.5 Second(s) time out loop void testtime_out(unsigned int milliseconds) // test time out loop unsigned int j; for(;milliseconds>0;milliseconds--) for(j=0;j<5000;j++);

15 8. Write a c program to test hardware based timeout loops. #include <lpc214x.h> #define PLOCK 0x #define PRESCALE #define sw 0x void delayms(unsigned int milliseconds); void initclocks(void); void inittimer0(void); void setuppll0(void); void feedseq(void); void connectpll0(void); unsigned char timeout_loop=0,x; int main(void) initclocks(); inittimer0(); IO0DIR = 0xFFFeFFFF; while(1) mn: x= IOPIN0; x=x&0x ; if(x==0x ) do x= IOPIN0; x=x&0x ; IO0SET = 0xFFFFFFFF; delayms(1000); // 1 Second(s) Delay IO0CLR = 0xFFFFFFFF; while(x==0x &&t0tcr!=0x00); goto mn; else if(x==0x ) do IO0SET = 0xFFFF0000; delayms(1000); // 1 Second(s) Delay IO0CLR = 0x0000FFFF; while(x==0x &&t0tcr!=0x00);

16 goto mn; void inittimer0(void) T0CTCR = 0x0; T0PR = PRESCALE-1; T0TCR = 0x02; void delayms(unsigned int milliseconds) T0TCR = 0x02; T0TCR = 0x01; while(t0tc < milliseconds); T0TCR = 0x00; timeout_loop++; void initclocks(void) setuppll0(); feedseq(); connectpll0(); feedseq(); VPBDIV = 0x01; void setuppll0(void) PLL0CON = 0x01; PLL0CFG = 0x24;

17 void feedseq(void) PLL0FEED = 0xAA; PLL0FEED = 0x55; void connectpll0(void) while(!( PLL0STAT & PLOCK )); PLL0CON = 0x03;

18 10. Write a program to display elapsed time over RS-232 link. #include <lpc214x.h> #define PLOCK 0x #define PRESCALE #define sw 0x void uart0_init(void); void uart0_tx(unsigned char); void str_uart0(unsigned char *x); void delayms(unsigned int milliseconds); void initclocks(void); void inittimer0(void); void setuppll0(void); void feedseq(void); void connectpll0(void); unsigned char timeout_loop=0,x; int main(void) uart0_init(); initclocks(); inittimer0(); IO0DIR = 0xFFFeFFFF; while(1) mn: x= IOPIN0; x=x&0x ; if(x==0x ) do str_uart0("event 1 is start and time is counting"); x= IOPIN0; x=x&0x ; IO0SET = 0xFFFFFFFF; delayms(1000); // 1 Second(s) Delay IO0CLR = 0xFFFFFFFF; while(x==0x &&t0tcr!=0x00); str_uart0("time is 1 sec for event 1is completed, event 1 is lights all are on");

19 goto mn; else if(x==0x ) do str_uart0("event 2 is start and time is counting"); IO0SET = 0xFFFF0000; delayms(2000); // 1 Second(s) Delay IO0CLR = 0x0000FFFF; while(x==0x &&t0tcr!=0x00); str_uart0("time is 2 sec for event 1is completed, event 2 is some lights are on remaining are off "); goto mn; void inittimer0(void) T0CTCR = 0x0; T0PR = PRESCALE-1; T0TCR = 0x02; void delayms(unsigned int milliseconds) T0TCR = 0x02; T0TCR = 0x01; while(t0tc < milliseconds); T0TCR = 0x00; timeout_loop++; void initclocks(void) setuppll0(); feedseq(); connectpll0(); feedseq();

20 VPBDIV = 0x01; void setuppll0(void) PLL0CON = 0x01; PLL0CFG = 0x24; void feedseq(void) PLL0FEED = 0xAA; PLL0FEED = 0x55; void connectpll0(void) while(!( PLL0STAT & PLOCK )); PLL0CON = 0x03; void uart0_init(void) PINSEL0 =0x ; U0LCR=0x83; U0DLL=98; U0DLM=0; U0LCR=0x03; void tx_uart0(unsigned char x) U0THR=x; while(!(u0lsr&=0x20)); void str_uart0(unsigned char *x) while(*x) tx_uart0(*x++);

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Primer Board... 3 GLCD (Graphical Liquid Crystal Display)... 3 Interfacing GLCD... 4 Interfacing GLCD with LPC2148...

More information

ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Primer Board... 3 Keypad... 3 Interfacing keypad... 4 Interfacing keypad with LPC2148... 6 Pin Assignment with LPC2148...

More information

EXPERIMENT NO. 01 CALCULATOR USING PIC16F877

EXPERIMENT NO. 01 CALCULATOR USING PIC16F877 EXPERIMENT NO. 01 CALCULATOR USING PIC16F877 DOP: DOS: Project Members: 1) Prasad Pawaskar 58 2) Vishal Thakur 72 Page No.- 1 AIM: To implement basic calculator functionality using PIC microcontroller

More information

ARM HOW-TO GUIDE Interfacing Relay with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Relay with LPC2148 ARM ARM HOW-TO GUIDE Interfacing Relay with LPC48 ARM Contents at a Glance ARM7 LPC48 Primer Board... Relay... Interfacing Relays... 4 Interfacing Relay with LPC48... 5 Pin Assignment with LPC48... 5 Circuit

More information

An Example of using Keil uvision3 for creating Keil ARM s Project File

An Example of using Keil uvision3 for creating Keil ARM s Project File An Example of using Keil uvision3 for creating Keil ARM s Project File In this chapter, represent how to write C Language Program via Keil ARM for translating orders under Text Editor Program of Keil (Keil

More information

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader Rev. 03 13 September 2006 Application note Document information Info Keywords Abstract Content ARM ISP, bootloader Entering ISP mode is normally done by sampling a pin during reset. This application note

More information

LABORATORY MANUAL EMBEDDED C LABORATORY. M. Tech I Year I Sem R13 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG.

LABORATORY MANUAL EMBEDDED C LABORATORY. M. Tech I Year I Sem R13 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. LABORATORY MANUAL EMBEDDED C LABORATORY M. Tech I Year I Sem R13 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. BALAJI INSTITUTE OF TECHNOLOGY & SCIENCE Laknepally, Narsampet, Warangal 1 M.TECH. (EMBEDDED

More information

PLL in LPC2148. Dr.R.Sundaramurthy. Department of EIE / PEC. Pondicherry Engineering College. Dr.R.Sundaramurthy.,M.E.,Ph.D.

PLL in LPC2148. Dr.R.Sundaramurthy. Department of EIE / PEC. Pondicherry Engineering College. Dr.R.Sundaramurthy.,M.E.,Ph.D. PLL in LPC2148 Dr.R.Sundaramurthy Department of EIE Pondicherry Engineering College PLL There are 2 PLLs in LPC2148 PLL0, PLL1 PLL0 System Clock PLL1 USB Clock Input clock to both the PLLs must be between

More information

ARM HOW-TO GUIDE Interfacing Switch with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Switch with LPC2148 ARM ARM HOW-TO GUIDE Interfacing Switch with LPC48 ARM Contents at a Glance ARM7 LPC48 Primer Board... 3 Switch... 3 Interfacing Switch... 4 Interfacing Switch with LPC48... 5 Pin Assignment with LPC48...

More information

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529 Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529 Contents at a Glance PS PRIMER MSP430 kit... 3 Keypad... 4 Interfacing keypad... 4 Interfacing keypad with MSP430F5529...

More information

Development of ET-ARM STAMP LPC2119 Program with GCCARM and Keil cvision3 Development of ET-ARM STAMP LPC2119 Program with GCCARM and Keil uvision3

Development of ET-ARM STAMP LPC2119 Program with GCCARM and Keil cvision3 Development of ET-ARM STAMP LPC2119 Program with GCCARM and Keil uvision3 Development of ET-ARM STAMP LPC2119 Program with GCCARM and Keil uvision3 Generally, GCCARM program is C-Complier Program only but Text Editor Program is not included. So, if you want to develop ARM7 Program

More information

ARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM ARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Slicker Board... 3 Seven Segment Display... 3 Interfacing Seven Segment Display... 4 Interfacing Seven Segment with

More information

ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Primer Board... 3 Buzzer... 3 Interfacing Buzzer... 4 Interfacing Buzzer with LPC2148... 5 Pin Assignment with LPC2148...

More information

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Evaluation Board... 3 GLCD (Graphical Liquid Crystal Display)... 3 Interfacing GLCD... 4 Description of GLCD... 5 Interfacing

More information

EMBEDDED SYSTEMS LABORATORY

EMBEDDED SYSTEMS LABORATORY EMBEDDED SYSTEMS LABORATORY LAB MANUAL Year : 2017-2018 Course Code : BES102 Regulations : IARE - R16 Semester : II Branch : ECE Class : M.TECH I Yr. II Sem Prepared by Mr. N Papa Rao Asst. Professor,

More information

Lab Experiment 9: LCD Display

Lab Experiment 9: LCD Display Lab Experiment 9: LCD Display 1 Introduction Liquid Crystal Displays (LCDs) provide an effective way for processors to communicate with the outside world. The LPC2148 board used in the lab is equipped

More information

ARM HOW-TO GUIDE Interfacing I2C-7SEG with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing I2C-7SEG with LPC2148 ARM ARM HOW-TO GUIDE Interfacing I2C-7SEG with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Primer Board... 3 I2C (Inter Integrated Circuit)... 3 Seven Segment Display... 4 Interfacing I2C - Seven Segment

More information

ARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148

ARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148 ARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148 Contents at a Glance ARM7 LPC2148 Slicker Board... 3 Stepper Motor... 3 Interfacing Stepper Motor... 4 Interfacing Stepper Motor with LPC2148...

More information

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22 e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22 Quadrant 1 e-text In this lecture interfacing of external devices

More information

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I.

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I. University of Texas at El Paso Electrical and Computer Engineering Department EE 3176 Laboratory for Microprocessors I Fall 2016 LAB 04 Timer Interrupts Goals: Learn about Timer Interrupts. Learn how to

More information

Working with the Embedded Artists LPC2148 evaluation boards

Working with the Embedded Artists LPC2148 evaluation boards THE MINISTRY of EDUCATION and SCIENCE of RUSSIAN FEDERATION SAMARA STATE AEROSPACE UNIVERSITY Working with the Embedded Artists LPC2148 evaluation boards Learner s guide SAMARA 2011 2 Compilers: Kudryavtsev

More information

Timers in LPC2148. Dr.R.Sundaramurthy. Department of EIE / PEC. Pondicherry Engineering College. Dr.R.Sundaramurthy.,M.E.,Ph.D.

Timers in LPC2148. Dr.R.Sundaramurthy. Department of EIE / PEC. Pondicherry Engineering College. Dr.R.Sundaramurthy.,M.E.,Ph.D. Timers in LPC2148 Dr.R.Sundaramurthy Department of EIE Pondicherry Engineering College Features of Timer in LPC2148 TimerCounter0 and TimerCounter1 are functionally identical Each 32-bit Timer/Counter

More information

I2C on the HMC6352 Compass

I2C on the HMC6352 Compass I 2 C Bus The I 2 C bus is a two-wire bus(plus ground) where the two wire are called SCL Clock line SDA Data line Gnd Ground line This is a synchronous bus. SCL is the synchronizing signal. SCL and SDA

More information

AN Full-duplex software UART for LPC2000. Document information

AN Full-duplex software UART for LPC2000. Document information Full-duplex software UART for LPC2000 Rev. 01 17 January 2008 Application note Document information Info Keywords Abstract Content LPC2000, UART, software This application note illustrates how a simple

More information

Using a Temperature Sensor

Using a Temperature Sensor Using a Temperature Sensor Add a temperature sensor to the ATmega Board. Site: icode Course: Machine Science Guides (Arduino Version) Book: Using a Temperature Sensor Printed by: Ivan Rudnicki Date: Wednesday,

More information

LCD. Configuration and Programming

LCD. Configuration and Programming LCD Configuration and Programming Interfacing and Programming with Input/Output Device: LCD LCD (liquid crystal display) is specifically manufactured to be used with microcontrollers, which means that

More information

// sets the position of cursor in row and column

// sets the position of cursor in row and column CODE: 1] // YES_LCD_SKETCH_10_14_12 #include //lcd(rs, E, D4, D5, D6, D7) LiquidCrystal lcd(8, 9, 4, 5, 6, 7); int numrows = 2; int numcols = 16; void setup() Serial.begin(9600); lcd.begin(numrows,

More information

Speed Control of a DC Motor using Digital Control

Speed Control of a DC Motor using Digital Control Speed Control of a DC Motor using Digital Control The scope of this project is threefold. The first part of the project is to control an LCD display and use it as part of a digital tachometer. Secondly,

More information

Chapter 8 Interfacing a JHD12864J Graphic Module to AT89S52

Chapter 8 Interfacing a JHD12864J Graphic Module to AT89S52 Chapter 8 Interfacing a JHD12864J Graphic Module to AT89S52 8.1 Introduction JHD12864J is a light weight, low power consumption liquid crystal graphic display. The module measures 54.0x50.0mm only. Supply

More information

{ int i,j; for(i=0;i<count;i++) for(j=0;j<1275;j++); }

{ int i,j; for(i=0;i<count;i++) for(j=0;j<1275;j++); } RFID based Secured access system using 8051 microcontroller (AT89C51) //Program for RFID based Secured access system using 8051 microcontroller //(AT89C51) #include sfr lcd_data_pin=0xa0; //P2

More information

/*Algorithm: This code display a centrifuge with five variable speed RPM by increaseing */

/*Algorithm: This code display a centrifuge with five variable speed RPM by increaseing */ /*Algorithm: This code display a centrifuge with five variable speed RPM by increaseing */ /*the speed the cell which are less dense can float and the cell that are denser can sink*/ /*the user has five

More information

Appendix A: Rack Specification Sheet

Appendix A: Rack Specification Sheet Appendices Appendix A: Rack Specification Sheet A-1 Appendix B: Pinion Specification Sheet B-1 Appendix C: Specification Sheets for Motors One and Two Motor One Specification Sheet C-1 C-2 Motor Two Specification

More information

A Scheme Interpreter on a Microcontroller

A Scheme Interpreter on a Microcontroller 1 A Scheme Interpreter on a Microcontroller repl accessible through serial communication runs Armpit Scheme interpreter +/- R5RS compliant Hands on: have the board execute a factorial function notice any

More information

AN LPC2138 extreme power down application note. Document information. LPC2138, extreme power down

AN LPC2138 extreme power down application note. Document information. LPC2138, extreme power down application note Rev. 01 6 December 2006 Application note Document information Info Keywords Abstract Content LPC2138, extreme power down This document describes a method to power down the LPC2138 so the

More information

EMBEDDED HARDWARE DESIGN. Tutorial Interfacing LCD with Microcontroller /I

EMBEDDED HARDWARE DESIGN. Tutorial Interfacing LCD with Microcontroller /I EMBEDDED HARDWARE DESIGN Tutorial Interfacing LCD with Microcontroller 2009-10/I LCD (Liquid Crystal Display) has become very popular option for displaying in Embedded Applications. Since they are very

More information

I/O Devices & Debugging. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

I/O Devices & Debugging. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University I/O Devices & Debugging Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu I/O Devices Jasmine Block Diagram ICE3028: Embedded Systems Design (Spring

More information

ENGI E1112 Department Project Report: Computer Science/Computer Engineering. Ankita Gore, Christina Huang, Shikhar Kumar December 16, 2011

ENGI E1112 Department Project Report: Computer Science/Computer Engineering. Ankita Gore, Christina Huang, Shikhar Kumar December 16, 2011 ENGI E1112 Department Project Report: Computer Science/Computer Engineering Ankita Gore, Christina Huang, Shikhar Kumar December 16, 2011 Platform Software Architecture Tutorial Software Details - Lab

More information

P89V51RD2 Development Board May 2010

P89V51RD2 Development Board May 2010 P89V51RD2 Development Board May 2010 NEX Robotics Pvt. Ltd. 1 P89V51RD2 Development Board Introduction: P89V51RD2 Development Board P89V51RD2 Development Board is a low cost development board which have

More information

MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI. Department of Electronics and Communication Engineering COURSE INSTRUCTION MANUAL

MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI. Department of Electronics and Communication Engineering COURSE INSTRUCTION MANUAL MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI Vision Mission Envisioning a world Lead by our Engineers, holding a Beacon of Hope and Confidence for Generations to come. To Produce Competent, Disciplined

More information

Objective: Create an interface to the LCD display, internal timer functions, and interface with the SDRAM memory as well as on chip memory.

Objective: Create an interface to the LCD display, internal timer functions, and interface with the SDRAM memory as well as on chip memory. Lab 2 LCD display and external memory interfacing Objective: Create an interface to the LCD display, internal timer functions, and interface with the SDRAM memory as well as on chip memory. Topics Covered:

More information

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character x 2 line display Each character is a 5x7

More information

Features 2.4 GHz Carrier Frequency RS232 UART interface with variable baud rate Input supply voltage: 5V to 12V 255 possible Channels frequencies (0 to 255) Programmable Device Address (255 per channel)

More information

Dragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide. Dragon12 LCD Display

Dragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide. Dragon12 LCD Display Dragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character

More information

Laboratory 3 Working with the LCD shield and the interrupt system

Laboratory 3 Working with the LCD shield and the interrupt system Laboratory 3 Working with the LCD shield and the interrupt system 1. Working with the LCD shield The shields are PCBs (Printed Circuit Boards) that can be placed over the Arduino boards, extending their

More information

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character x 2 line display Each character is a 5x7

More information

The modules in this lab room are 4 line by 16 character display modules. The data sheet/users manual for the module is posted on My.Seneca.

The modules in this lab room are 4 line by 16 character display modules. The data sheet/users manual for the module is posted on My.Seneca. LCD Modules A common output display device used with low cost embedded systems is a character LCD display. The displays are available as complete modules with a standard microprocessor parallel interface.

More information

Lecture (09) PIC16F84A LCD interface LCD. Dr. Ahmed M. ElShafee

Lecture (09) PIC16F84A LCD interface LCD. Dr. Ahmed M. ElShafee Lecture (09) PIC16F84A LCD interface PIC16F84A LCD interface Assignment 01, 4 Zones fire controller board Assignment 02, automatic water tank controller Dr. Ahmed M. ElShafee ١ ٢ LCD LCD (Liquid Crystal

More information

ERRATA SHEET INTEGRATED CIRCUITS. Date: 2009 October 14 Document Release: Version 1.2 Device Affected: LPC1768. NXP Semiconductors

ERRATA SHEET INTEGRATED CIRCUITS. Date: 2009 October 14 Document Release: Version 1.2 Device Affected: LPC1768. NXP Semiconductors INTEGRATED CIRCUITS ERRATA SHEET Date: 2009 October 14 Document Release: Version 1.2 Device Affected: LPC1768 This errata sheet describes both the functional problems and any deviations from the electrical

More information

AN10184 Connecting a keyboard to the Philips LPC9xx microcontroller

AN10184 Connecting a keyboard to the Philips LPC9xx microcontroller CIRCUITS ITEGRATED CIRCUITS ABSTRACT This application note demonstrates how to connect a keypad matrix to the LPC9xx microcontroller family from Philips Semiconductors. It explains a software example which

More information

Experiment Objectives. 2. Preparation. 3. Tasks. 3.1 Task A: String to Integer Conversion

Experiment Objectives. 2. Preparation. 3. Tasks. 3.1 Task A: String to Integer Conversion Experiment 3 1. Objectives In this experiment, you will learn more AVR instructions by writing AVR assembly programs to do string-to-number conversion, positional multiplication, positional division, and

More information

Basic Embedded Software C Review Using MPLAB SIM. Loops. Embedded Systems Interfacing. 25 August 2011

Basic Embedded Software C Review Using MPLAB SIM. Loops. Embedded Systems Interfacing. 25 August 2011 25 August 2011 Basic Embedded Software Structure No Operating System to Return to Could Let Program Execute and Reset, But That s Not Efficient Main Function Initialization Code Endless Loop The while

More information

Arrays. Dr. Madhumita Sengupta. Assistant Professor IIIT Kalyani

Arrays. Dr. Madhumita Sengupta. Assistant Professor IIIT Kalyani Arrays Dr. Madhumita Sengupta Assistant Professor IIIT Kalyani INTRODUCTION An array is a collection of similar data s / data types. The s of the array are stored in consecutive memory locations and are

More information

Additional Timer Functionalities. Capture, Compare, PWM

Additional Timer Functionalities. Capture, Compare, PWM Additional Timer Functionalities Capture, Compare and PWM ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Università di Catania, Italy santoro@dmi.unict.it

More information

Character Based LCD Module Interface.

Character Based LCD Module Interface. Character Based LCD Module Interface. xboard MINI Documentation www.extremeelectronics.co.in Using LCD Modules. When you start working with LCD modules you will start feeling the real power of MCUs and

More information

AN703. Micro64/128. Accessing the 36k of SRAM 12/3/04

AN703. Micro64/128. Accessing the 36k of SRAM 12/3/04 AN703 Micro64/128 Accessing the 36k of SRAM 12/3/04 Introduction: Micro64/128 has a total of 36k of SRAM. 4 k of SRAM is built into the processor an additional 32k of SRAM is available inside the Micro64/128

More information

Timer0..Timer3. Interrupt Description Input Conditions Enable Flag

Timer0..Timer3. Interrupt Description Input Conditions Enable Flag Timer0..Timer3 Timers are pretty useful: likewise, Microchip provides four different timers for you to use. Like all interrupts, you have to Enable the interrupt, Set the conditions of the interrupt, and

More information

Magic 8 Ball. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

Magic 8 Ball. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name MPS Magic 8 Ball Lab Exercise Magic 8 Ball Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name Notes: You must work on this assignment with your partner. Hand in a printer

More information

How to use RFpro in Packet Mode

How to use RFpro in Packet Mode How to use RFpro in Packet Mode Jumper Setting Priority Jumper J1 à Configuration Mode Jumper à Higher Priority Jumper J2 à Packet Mode Jumper à Lower Priority When both the jumpers are connected, by default,

More information

DB0-DB16 to pin D0-D13, pin A0-A1 of Arduino RESET to A2

DB0-DB16 to pin D0-D13, pin A0-A1 of Arduino RESET to A2 Test CODE Example 1 Display with Arduino: Now we will show how to use the Arduino (ATMega 168) to control the TFT LCD module. To have a quicker refresh rate, we use the 16bit mode for LCD, it s two times

More information

CSCI 2212: Intermediate Programming / C Review, Chapters 10 and 11

CSCI 2212: Intermediate Programming / C Review, Chapters 10 and 11 ... 1/16 CSCI 2212: Intermediate Programming / C Review, Chapters 10 and 11 Alice E. Fischer February 3, 2016 ... 2/16 Outline Basic Types and Diagrams ... 3/16 Basic Types and Diagrams Types in C C has

More information

Unit 13 Timers and Counters

Unit 13 Timers and Counters Unit 13 Timers and Counters 1 2 Review of some key concepts from the first half of the semester A BRIEF SUMMARY 3 A Few Big Ideas 1 Setting and clearing bits in a register tells the hardware what do and

More information

Laboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information

Laboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information Laboratory 2: Programming Basics and Variables Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information 3. Comment: a. name your program with extension.c b. use o option to specify

More information

Timer Counter and Interrupt. Equation (16 bits counter, Mode 1, 16MHz):

Timer Counter and Interrupt. Equation (16 bits counter, Mode 1, 16MHz): Equation (16 bits counter, Mode 1, 16MHz): THxTLx = 65536 - (Tt * 16.777216 e6) where: Tt: Target time x: Timer/Counter (0, 1 and 2) THx: Timer high byte TLx: Timer low byte Used Interrupts: 1 (Address,

More information

The MC9S12 Timer Input Capture Function

The MC9S12 Timer Input Capture Function The MC9S12 Timer Input Capture Function o Capturing the time of an external event o The MC9S12 Input Capture Function o Registers used to enable the Input Capture Function o Using the MC9S12 Input Capture

More information

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////REAL- TIME CLOCK MODULE DS1307 */

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////REAL- TIME CLOCK MODULE DS1307 */ ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO ///////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO

More information

Q1 Q2 Q3 Q4 Q5 Q6 Total /7.5 /5 /10 /5 /7.5 /5 /40

Q1 Q2 Q3 Q4 Q5 Q6 Total /7.5 /5 /10 /5 /7.5 /5 /40 Course name: Practical App. CS II Exam number: Final model answer Course Code: CSC20X Exam Date: 03/06/2014 Lecturer: Dr. Ahmed ElShafee Time Allowed: 120 minutes Q1 Q2 Q3 Q4 Q5 Q6 Total /7.5 /5 /10 /5

More information

IMDL Fall 2010 Final Report

IMDL Fall 2010 Final Report IMDL Fall 2010 Final Report Robot Spotting Courtney Hayes Summary This robot project consists of a large robot and a smaller one interacting with each other. The larger robots objective is to track another

More information

C:\CYGNAL\Examples\C8051F02x\C\Edu_Board_Source_Code\Magcard.c

C:\CYGNAL\Examples\C8051F02x\C\Edu_Board_Source_Code\Magcard.c Magcard.c Author: Baylor Electromechanical Systems Operates on an external 18.432 MHz oscillator. Target: Cygnal Educational Development Board / C8051F020 Tool chain: KEIL C51 6.03 / KEIL EVAL C51 This

More information

Bachelor of Engineering in Computer and Electronic Engineering

Bachelor of Engineering in Computer and Electronic Engineering Bachelor of Engineering in Computer and Electronic Engineering Computer Engineering 1 Year 2 Semester 3 Autumn 08 Niall O Keeffe Instructions to Candidates: - 2 hours duration Answer 4 out of 6 questions.

More information

Marten van Dijk, Syed Kamran Haider

Marten van Dijk, Syed Kamran Haider ECE3411 Fall 2015 Lecture 3b. Timers 0, 1 & 2 Marten van Dijk, Syed Kamran Haider Department of Electrical & Computer Engineering University of Connecticut Email: vandijk, syed.haider@engr.uconn.edu Based

More information

Array. Prepared By - Rifat Shahriyar

Array. Prepared By - Rifat Shahriyar Java More Details Array 2 Arrays A group of variables containing values that all have the same type Arrays are fixed length entities In Java, arrays are objects, so they are considered reference types

More information

C-Programming. CSC209: Software Tools and Systems Programming. Paul Vrbik. University of Toronto Mississauga

C-Programming. CSC209: Software Tools and Systems Programming. Paul Vrbik. University of Toronto Mississauga C-Programming CSC209: Software Tools and Systems Programming Paul Vrbik University of Toronto Mississauga https://mcs.utm.utoronto.ca/~209/ Adapted from Dan Zingaro s 2015 slides. Week 2.0 1 / 19 What

More information

mith College Computer Science CSC270 Spring 2016 Circuits and Systems Lecture Notes, Week 11 Dominique Thiébaut

mith College Computer Science CSC270 Spring 2016 Circuits and Systems Lecture Notes, Week 11 Dominique Thiébaut mith College Computer Science CSC270 Spring 2016 Circuits and Systems Lecture Notes, Week 11 Dominique Thiébaut dthiebaut@smithedu Outline A Few Words about HW 8 Finish the Input Port Lab! Revisiting Homework

More information

C:\Documents and Settings\Administrateur\Mes documents\projets Keil\DisplayTech\main.c

C:\Documents and Settings\Administrateur\Mes documents\projets Keil\DisplayTech\main.c #include "c8051f000.h" #define TH0VAL 0xFB //Valeur du poids fort du Timer 0 #define TL0VAL 0x71 //Valeur du poids faible du Timer 0 #define csetd0 0x01 #define csetd1 0x02 #define csetd2 0x04 #define

More information

C Programming Language

C Programming Language C Programming Language Advantages over assembly language for microcontrollers: More portable Math functions Readability Maintainability Editing C End-of-line ignored Use line breaks/tabs/indent for readability

More information

ELECTRICITY THEFT CONTROL USING GSM AND EMIC

ELECTRICITY THEFT CONTROL USING GSM AND EMIC ELECTRICITY THEFT CONTROL USING GSM AND EMIC ABSTRACT Electrical energy is very imperative for ever day life and a spine for the industry. Electricity is indiscipline to our daily life with increasing

More information

ELCT501 Digital System Design Winter Tutorial #11 FPGA Complete Design Flow with LCD Example

ELCT501 Digital System Design Winter Tutorial #11 FPGA Complete Design Flow with LCD Example ELCT501 Digital System Design Winter 2014 Tutorial #11 FPGA Complete Design Flow with LCD Example Design a 4-bit Up-Counter with Enable Design Flow Steps: 1. Write VHDL code for the counter. 2. Test the

More information

6.1. EE 109 Unit 6. LCD Interfacing

6.1. EE 109 Unit 6. LCD Interfacing 6.1 EE 109 Unit 6 LCD Interfacing LCD BOARD 6.2 6.3 The EE 109 LCD Shield The LCD shield is a 16 character by 2 row LCD that mounts on top of the Arduino Uno. The shield also contains five buttons that

More information

Character LCD Interface for ez80acclaim! MCUs

Character LCD Interface for ez80acclaim! MCUs Application Note Character LCD Interface for ez80acclaim! MCUs AN015902-0708 Abstract This Application Note provides Character LCD driver routines, coded in ANSI C, for Zilog s ez80acclaim! Flash microcontroller-based

More information

#include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> #include <PubSubClient.

#include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> #include <PubSubClient. #include #include #include #include #include const char* mqtt_server = "SERVER_ADDRESS"; WiFiClient espclient; PubSubClient

More information

LCD AND KEYBOARD INTERFACING

LCD AND KEYBOARD INTERFACING LCD AND KEYBOARD The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer

More information

ACCESS SECURITY SYSTEM USING RFID TAG

ACCESS SECURITY SYSTEM USING RFID TAG ACCESS SECURITY SYSTEM USING RFID TAG OBJECTIVE The main objective of this project is to provide the technology which can be very beneficial is that RFID automated access for door controls to buildings,

More information

MICROCONTROLLER SYSTEM CONTROL DESIGN JON PRITCHARD SCOTT VON THUN

MICROCONTROLLER SYSTEM CONTROL DESIGN JON PRITCHARD SCOTT VON THUN MICROCONTROLLER SYSTEM CONTROL DESIGN JON PRITCHARD SCOTT VON THUN Problem Statement Create a simple feedback environment that can be used to demonstrate various feedback control systems using a microcontroller

More information

LAMPIRAN. 1. Program Alat

LAMPIRAN. 1. Program Alat LAMPIRAN 1. Program Alat This program was produced by the CodeWizardAVR V2.03.4 Standard Automatic Program Generator Copyright 1998-2008 Pavel Haiduc, HP InfoTech s.r.l. http://www.hpinfotech.com Project

More information

Keypad Interfacing. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Keypad Interfacing. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff Keypad Interfacing Typical keypads have 12 or 16 buttons Keypad A mechanical keypad simply consists of a set of vertical wires (one for each column) and a set of horizontal wires (one for each row) When

More information

The MCU s Pulse. Internal clock or oscillator to synchronize operation. One clock cycle = 1 TOSC = 1/fOSC. t TOSC

The MCU s Pulse. Internal clock or oscillator to synchronize operation. One clock cycle = 1 TOSC = 1/fOSC. t TOSC The MCU s Pulse Internal clock or oscillator to synchronize operation V 0 t TOSC One clock cycle = 1 TOSC = 1/fOSC Clock Cycle The minimum time to perform any operation is one instruction cycle TCY 1 TCY

More information

Real Time Operating Systems Application Board Details

Real Time Operating Systems Application Board Details Real Time Operating Systems Application Board Details Hardware Interface All labs involve writing a C program to generate an interface between a PC and an external Multi-Applications board. A 40-way ribbon

More information

Engineering Design Lab exercise 2 Nios II Processor Software Development

Engineering Design Lab exercise 2 Nios II Processor Software Development Engineering Design Lab exercise 2 Nios II Processor Software Development Note: To do this lab exercise you need the textbook and it s CD. Part 1 Designing systems with embedded processors requires both

More information

Write LED display data, in accordance with the address from the display from low to high, from low to high data byte operation.

Write LED display data, in accordance with the address from the display from low to high, from low to high data byte operation. The register stores transferred from an external device via the serial interface to the TM1637 data address 00H-05H bytes of six units, respectively, and SGE and GRID pin chip LED lights are connected

More information

21. PID control The theory of PID control

21. PID control The theory of PID control 1 21. PID control The PID (Proportional Integral Differential) controller is a basic building block in regulation. It can be implemented in many different ways, this example will show you how to code it

More information

Arrays and Loops. Programming for Engineers Winter Andreas Zeller, Saarland University

Arrays and Loops. Programming for Engineers Winter Andreas Zeller, Saarland University Arrays and Loops Programming for Engineers Winter 2015 Andreas Zeller, Saarland University Datatypes millis() has the type unsigned long integer values in [0 2 32 1] Usual integer numbers ( int ) are

More information

FACULTY OF ENGINEERING LAB SHEET

FACULTY OF ENGINEERING LAB SHEET FACULTY OF ENGINEERING LAB SHEET EMBEDDED SYSTEM DESIGN ECE3196 TRIMESTER 2 (2015/2016) : Development of a simple embedded system scheduler *Note: On-the-spot evaluation may be carried out during or at

More information

bs.c ss.c wifire_bs_comm.h/c wifire_ss_comm.h/c

bs.c ss.c wifire_bs_comm.h/c wifire_ss_comm.h/c Functionality and Implementation: Note: Below boxes specify the modules/methods which are implemented by Sameer n Shravan. First line indicate file name. The BLUE colored method/file indicates which we

More information

STRUCTURED DATA TYPE ARRAYS IN C++ ONE-DIMENSIONAL ARRAY TWO-DIMENSIONAL ARRAY

STRUCTURED DATA TYPE ARRAYS IN C++ ONE-DIMENSIONAL ARRAY TWO-DIMENSIONAL ARRAY STRUCTURED DATA TYPE ARRAYS IN C++ ONE-DIMENSIONAL ARRAY TWO-DIMENSIONAL ARRAY Objectives Declaration of 1-D and 2-D Arrays Initialization of arrays Inputting array elements Accessing array elements Manipulation

More information

LABORATORY MANUAL. ADVANCED EMBEDDED SYSTEMS M. Tech I Year II Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG.

LABORATORY MANUAL. ADVANCED EMBEDDED SYSTEMS M. Tech I Year II Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. LABORATORY MANUAL ADVANCED EMBEDDED SYSTEMS M. Tech I Year II Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. BALAJI INSTITUTE OF TECHNOLOGY & SCIENCE Laknepally, Narsampet, Warangal 1 LIST OF

More information

Embedded Systems and Software

Embedded Systems and Software Embedded Systems and Software Lab 6 Considerations Lab 6 Considerations, Slide 1 Big Picture Connect to internal ADC + 0-5 V - Sensor To COM port on PC LCD RTC Optional: LCD display Lab 6 Considerations,

More information

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath UNIT - I Introduction to C Programming Introduction to C C was originally developed in the year 1970s by Dennis Ritchie at Bell Laboratories, Inc. C is a general-purpose programming language. It has been

More information

ARM HOW-TO GUIDE Interfacing GPS with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GPS with LPC2148 ARM ARM HOW-TO GUIDE Interfacing GPS with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Primer Board... 3 GPS (Global Positioning Systems)... 3 Interfacing GPS... 4 Interfacing GPS with LPC2148... 5 Pin Assignment

More information

C library = Header files + Reserved words + main method

C library = Header files + Reserved words + main method DAY 1: What are Libraries and Header files in C. Suppose you need to see an Atlas of a country in your college. What do you need to do? You will first go to the Library of your college and then to the

More information

ECE 4510/5530 Microcontroller Applications Week 7

ECE 4510/5530 Microcontroller Applications Week 7 45/553 Microcontroller Applications Week 7 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences MISC Stuff Keypad revisited

More information