Ask a question from expert

Ask now

NIE2206: Embedded System Assignment

59 Pages9369 Words144 Views
   

University of Huddersfield

   

Laboratory Notes Part 1 (NIE2206)

   

Added on  2020-04-15

NIE2206: Embedded System Assignment

   

University of Huddersfield

   

Laboratory Notes Part 1 (NIE2206)

   Added on 2020-04-15

BookmarkShareRelated Documents
EMBEDDED SYSTEM
NIE2206: Embedded System Assignment_1
Table of ContentsLab - 1...................................................................................................................................................4Exercise - 1 Development of the system orientation of the Matrix E-Block................................4Objective.......................................................................................................................................4Working........................................................................................................................................4Salient Features of E-Blocks.......................................................................................................4Outcomes....................................................................................................................................11Exercise 2 - Application Orientation of the PPP programmer...................................................11Objective.....................................................................................................................................11Working......................................................................................................................................11Outcome.....................................................................................................................................14Exercise 3 - MCU family orientation using the PIC Microchip.................................................15Objective.....................................................................................................................................15Working......................................................................................................................................15Outcomes of the Experiment.....................................................................................................18Lab 2...................................................................................................................................................18Exercise 1 – PORTB timed lighting sequence..............................................................................20Aim.............................................................................................................................................20Procedure...................................................................................................................................20Outcomes....................................................................................................................................24Exercise 2 – Combining input and output...................................................................................24Aim.............................................................................................................................................24Procedure...................................................................................................................................24Outcomes....................................................................................................................................26Lab-3..................................................................................................................................................27Exercise -1 Demonstrate LCD display.........................................................................................27Aim.............................................................................................................................................27Procedure...................................................................................................................................27Outcomes....................................................................................................................................31Exercise 2 Animate the LCD display............................................................................................31Aim.............................................................................................................................................31Procedure...................................................................................................................................31Outcomes....................................................................................................................................36Exercise 3 – Display numerical value...........................................................................................36
NIE2206: Embedded System Assignment_2
Aim.............................................................................................................................................36Procedure...................................................................................................................................36Outcomes....................................................................................................................................40Lab-4..................................................................................................................................................40Exercise-1 creating a simple delay using Timer0 module...........................................................40Aim.............................................................................................................................................40Procedure...................................................................................................................................40Outcomes....................................................................................................................................42Exercise-2 increase longer delay in Timer0.................................................................................42Aim.............................................................................................................................................42Procedure...................................................................................................................................42Outcomes....................................................................................................................................44Exercise-3 creating one second delay...........................................................................................45Aim.............................................................................................................................................45Procedure...................................................................................................................................45Outcomes....................................................................................................................................47Exercise-4 creating the variable delay function...........................................................................47Aim.............................................................................................................................................47Procedure...................................................................................................................................47Outcomes....................................................................................................................................48Lab-5..................................................................................................................................................48Exercise-1 implementing timer0 overflow interrupt...................................................................48Aim.............................................................................................................................................48Procedure...................................................................................................................................48Outcomes....................................................................................................................................49Exercise-2 creating precise delays using interrupts....................................................................50Aim.............................................................................................................................................50Procedure...................................................................................................................................50Outcomes....................................................................................................................................50Exercise-3 adding background code functionality......................................................................50Aim.............................................................................................................................................50Procedure...................................................................................................................................51Outcomes....................................................................................................................................53Exercise-4 servicing multiple interrupts......................................................................................53Aim.............................................................................................................................................53
NIE2206: Embedded System Assignment_3
Procedure...................................................................................................................................53Outcomes....................................................................................................................................53References..........................................................................................................................................54
NIE2206: Embedded System Assignment_4
Lab - 1Exercise - 1 Development of the system orientation of the Matrix E-BlockObjectiveThe objective of this exercise 1 is to make a orientation with the development of PICsystem which is the combination of hardware and software tools that is used to develop,debug and execute the embedded system projects using c for the PIC16F877Amicrocontroller. WorkingE-blocks are known as the circuit boards which are smaller in size and it consists ablock of electronics which is found in the embedded system. This block consists of nearly 50circuit boards that contains LED boards and then other complex boards like deviceprogrammers, Bluetooth circuit and TCP/IP. E-blocks is combined into one to make adifferent varieties of systems which is used in teaching or understanding the concepts in it. Some other software, sensors, applications of the embedded system and informationabout those systems are available in this block. It consists of several devices like PIC, PIC24,ARM, Altera FPGA families and AVR which are used for programming purpose Theseblocks supports some standards of communication like SPI, I2C, TCp/IP, USB, LIN,Bluetooth, Wifi, GPS, GSM, ZigBee, RFID technology, MIDI, RC5, RS485 etc.The E-Block consists of a resistor which is used for variables and the light sensor fordoing analogue experiments. This block is also capable of holding sockets which is used forpermitting the users for interacting with the sensors that includes the range values andparameters such as pH, Temperature and Distance between the sensing devices (Ettler et al.,2015).Salient Features of E-BlocksE-Blocks are compatible with all the systems.It is capable of supporting more than 30 numbers of sensors.It has a On-Board light sensor.It consists of a On-board potential divider.Flow code macro is available in the E-blocks.The components that are contained in the E-blocks such as sensor board, LED boardand LCD board are described and explained below with its salient features.
NIE2206: Embedded System Assignment_5
Sensor BoardSensor Board consists of 9-way D-type plug, patch system, Link blocks, Screwterminals, Digital sensor and analogue sensor which are connected externally in the board,Potentiometer which is used for simulation by varying the analogue voltage of the board.Significant Features of Sensor BoardThe Sensor board consists of external sensors which has the complete range ofsensing.It has the photodiode which is fixed on the board.It consists of the downstream D-type connector.The sensor board is compatible with all types of Input and Output ports within therange of the E-block.The sensor board contains the easy programming code which is developed by the useof the flow code (Marwedel, n.d.).Circuit Diagram of Sensor Board
NIE2206: Embedded System Assignment_6
Description of the CircuitThe circuit of the sensor board consists of 4 main devices. The sensor board has aphotodiode which is used for enabling the measurements of the light. The board consists of 2types of connectors namely J3 and J4 which can be used for connecting the digital andanalogue sensors respectively. There is a potentiometer called RV1 which can be used forproviding a various ranges of analogue voltage values. This potentiometer is used for theprocess of simulation of any input values of the sensor. The sensor board contains a screwterminal which is included in E-blocks and it is permitted to connect +V and GND values ofthe system.LED BoardLED Board contains 9-way D-type plug, 8 x LEDs that starts from D0 and ends withD7 and 9-way D-type socket. The LED Board is used in the bus configuration. Theconnection between the E-block and the LED board should be performed carefully. If one ofthe lines in the bus is taken as an input value and then the LED circuit makes an effect on theline of the bus. The LED circuit can act as a inidicator which is used to indicate the status ofthe logic level of the bus configuration. The LED circuit has the disadvantage of usingseveral milli ampere values of current and the line of the bus has to be driven with low valueof the impedance source. The LED Circuit is not capable to check the status of the inputvalues of the analogue voltage (Mateosian, 2001). Significant Features of the LED BoardE-block is compatible in this LED Board.It contains two types of D-type connectors known as Upstream and downstream.It needs only low cost for purchasing it.This is easy to develop the code by the use of flow code.
NIE2206: Embedded System Assignment_7
It is compatible with all of the Input and Output ports.The LED Board is compatible with the voltage of 3.3.LCD BoardLCD Board is capable of connecting 8 LEDs to any of the Input or Output port in theupstream board which is used for indicating the status of the each and every lines on the port.Downstream boards can be connected with the LCD board by the use of 9-way D-typesocket. This downstream board is used for indicating the status of the lines of the bus whichis present in the E-block. The LCD board can be connected with the upstream boards by theuse of plugs that are 9-way D-type (Mateosian, 2001). Significant Features of the LCD BoardLCD Boards are simple to use.This is compatible with 3.3 voltage.It is compatible with any kind of input or output ports.It is used for the purpose of displaying the data immediately.It is also compatible with flow code.It needs only minimum cost to implement.It can be used in power saving mode also.Circuit of 9 way D type Connector
NIE2206: Embedded System Assignment_8

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Matrix E Block System Orientation
|62
|8987
|48

Study of Pyrheliometer to Calculate Direct Normal Irradiance and Global Horizontal Irradiance
|71
|15066
|477

Hydraulics and Pneumatics Lab - Unit 4 Lab Assignment 1
|38
|667
|487

Primary and Secondary Immunodeficiency Disorders and their Symptoms
|10
|1644
|361

Cashless society: Utopia or platform for scams
|72
|15321
|89

Dissertation on Health System (pdf)
|95
|28331
|27