Amend some programmes to make them look 100% original - Embedded Systems-logbook
$100-400 USD
Completed
Posted over 8 years ago
$100-400 USD
Paid on delivery
I have already got the completed programmes but they need to be amended to look original bc they are done by my classmate. !!!!! The attached Zip is all the files !
you are to do the last exercise of every lab session written in the PDF file. I have picked out the parts that you have to do in the word document.
The deadline is this Thursday 17th 12:00pm December
Embedded Systems NIE2206 (Term 1)
(Undergraduate)
Laboratory Notes
1 Laboratory No. 1: PIC Development System 1.1 Aim
1.3.6 Exercise 6
The source-level simulator is used to assist you in debugging your C codes. It is particularly useful when you don’t have access to E-Block development hardware. You are encouraged to read about MikroC source-level simulator, PIC microcontrollers and their programming in C.
The following e-books from the manufacturer of MikroC are excellent source of information.
PIC Microcontrollers [login to view URL]
PIC Microcontrollers – Programming in C [login to view URL]
You can find many other books on PIC microcontrollers in the library.
2.4.3 Exercise 3
Write a C program to:
Read switches connected to bits 0 and 1 of PORTD and take the following actions depending on the status of these bits;
1. Display 0xF0 on the leds connected to PORTB if the switches are set as: 00
2. Display 0x0F on the leds if the switches are set as: 01
3. Display 0xAA and 0x55, consecutively with a short delay between each displays, if the switches are set as: 10
4. Clear the display when the switches are set as: 11 Note that you need to press both switches at the same time.
3 Laboratory No. 3: Liquid Crystal Display (LCD) 3.1 Aim
Laboratory Exercises
Before you start writing programs for LCD you should copy LCDdrive877A.c and LCDdrive.h to your drive/directory. You could download these files from J:\Embedded Systems. Set XT/RC switch on the Matrix Multimedia board to XT and configure the PICmicro to XT in PPP. Save the programs on your drive.
3.5.4 Exercise 4 Copy [login to view URL] from J:\Embedded Systems to your drive. Run the program and observe
how the characters scroll on the LCD display. Any ideas on how this is done?
Dr. Haydn Martin 16
4 Laboratory No. 4: Timer 0 4.1 Aim
4.3 Programming Timer 0
The structure of a timer program essentially involves in:
5. Configuring Timer mode in OPTION_REG register.
6. Loading TMR0 in Bank 0 with the required value.
7. Detecting TMR0 overflow using either polling or interrupt methods.
4.4 Laboratory Exercises
Use MikroC cross compiler to program PIC16F877A. Note that the PIC oscillator mode (XTAL/RC) has to be set prior to compilation. The mode is set from the PPP Configure PICmicro option.
4.4.3 Exercise 3
Write a generic delay routine using Timer 0 to produce any number of seconds of delay. The prototype for this function could look like void del (unsigned char);
The equivalent function in MikroC is Delay_ms(const time_in_ms); For example Delay_ms(1000); produces 1 second delay.
Develop a program to test your function.
5 Laboratory No. 5: Interrupts (Part 1) 5.1 Aim
5.3 Programming interrupts
5.4.3 Exercise 3
Modify the program you have written for Exercise 2 so that:
14. Leds connected to PORTD increment continuously.
15. Led on bit 7 of PORTB flashes every time TMR0 overflows.
16. Enable interrupt on RB0/INT pin so that the leds on PORTD are cleared whenever the switch connected to bit 0 of PORTB is pressed.
Note: This Exercise requires managing two interrupts in the ISR. i.e. Timer and RB0/INT. Use if-else statements to identify which device has caused the interrupt. Check T0IF and INTF.