Tuesday, July 23, 2019

A Cream Cracker Essay Example for Free

A Cream Cracker Essay Despite these similarities and minor differences one of the major differences between the two plays is that mum has an accident and as a result from that dies later. In George mum has an accident and falls down the stairs. This moment is very symbolic. After the bird rein acts the sound of Davids mum falling down the stairs, David becomes greatly dismayed as he realises his mother was all alone, and left to die for three days. At this point Judy tries to shut out the bird, and in doing so the memory of his mother by covering the cage in a cloth. This shows Judy as being very controlling over David which is reinforced when she says dont be silly, darling. You were wonderful with her and that she simply couldnt have his mother stay in a house with them, which shows that that was taken into consideration but denied by Judy. In A Cream Cracker Under the Settee Doris actually chooses to die and the play leads up to this choice. When Doris chooses to die this moment is also very symbolic. Are you all right? No. Im all right. When the policeman came along she wanted to ask for help but decided in the end that she would rather die and have her time than go to Stafford House. Stafford House is greatly regarded by Doris as a place where You go daft there, theres nowhere else for you to go but daft. Throughout the play she has made the impression that she never wants to go to Stafford House and at the end we find out she would rather die. As well as the similarities in the plot the two women are very similar. Both characters are old, widowed women who require the need of visitors. Both women are of working class. The dialect of the characters reinforces this, Doriss accent is that of a Northerner and reflects Alan Bennett as he was a Northerner himself and uses it in his characters. The language is informal and colloquial: I never saw no list or Thems her leaves, she also swears mildly oh hell, the flaming buffet when recounting the circumstances of her accident, but later uses the even less offensive Oh stink. She speaks very direct. At the end her thoughts wander more and more to the past making it seem more like a stream of consciousness. However, in George the dialogue is by David, Judy and George. Therefore, we can only assume that mum spoke like George because of his characterisation. If this is the case then we can come to conclusions that mum was of working class because of the dialect and dialogue of George. Georges voice is that of an old woman, plaintively complaining about loneliness, poverty and coldness. The language is very colloquial and informal, as in A Cream Cracker Under the Settee. However, there are key differences in these women as in A Cream Cracker Under the Settee the focus of the play is on Doris as she reveals herself in monologue whereas in George the focus of the play seems to be more on the relationship between David and his mum. The other differences between the women are to do with the impression we get. We know more about Doris than we do about Mum but from the information and description through Davids dialogue we understand Doris to be more independent and dominant than Mum. We understand that Doris is independent because from the beginning of the play she wants to the dusting herself and does not believe that her home help are doing there job. Her attitude towards Zulema shows us that she is quite stubborn and just because Zulema said she had dusted everywhere Doris immediately looks around to try and find a patch that she hasnt dusted. At first we may question Zulemas abilities but we soon realise that she wouldnt have time to clean everywhere as she has other peoples houses to clean and cannot spend too much time on each. This explains why later on when Doris says, Zulema wont touch them. Says if I want leaves swept Ive to contact the Parks Department. This may seem like a small and not a time consuming job but if Zulema was to sweep Doris leaves then everybody who she visits might ask for their leaves swept and this would make Zulema behind schedule and might eventually lose her job. In both plays there is an interesting use of shifting perspective for the audience. David and Judy present Davids mother and her situation in one way and then we are given a different perspective on the situation by George. We understand this because David and Judy are trying to fool themselves to believe that they did all they could to help his mother and that he had been wonderful with her. However, from what we understand from George is that she was all alone and when she was cold there was no one there to help her with the heating. There is also an interesting shift of perspective in A Cream Cracker Under the Settee. Although, Doris isnt trying to fool herself in the same way, we also get a sense of a second story or different version of events as she comments on other characters and her relationship with them for example when she talks about Wilfred. When Doris is talking about when she lost the baby she regards Wilfred as someone who seemed as if he didnt really care and didnt want a child in the first place. However, we realise that he probably did want the baby and only suggested alternatives, he started talking about getting a dog, to try and make her happier. This could be why Doris obsession with cleaning may have started because she would have had something to occupy her time with. Her obsession may have started here because when the midwife called Doris stillborn son dirty Doris says, He wasnt dirty, little thing; she disagrees and would have been traumatised by the ordeal of losing her baby. One of the most interesting similarities between the plays is the way they use visual symbolism. In George there are a number of symbolic moments during the play. Two of the most symbolic moments are when Judy covers up the cage and when David rips the cover back off. When Judy covers up the cage it symbolises when David never visited his mum and it seemed as if he was covering her up and also because at the beginning they seemed to fool themselves into believing that they did all they could. Therefore, they were covering up the real reason why his mother died. When he rips the sheet off it suggests that he wants to try and make things right because David doesnt want to cover George up as he did to his mum. It almost seems as if he wants his mum back so he can make it right to her. In A Cream Cracker Under the Settee there are also many symbolic moments. One of which is when Doris cracks the photograph of her and Wilfred. Cracked the photo. Were cracked, Wilfred. This is symbolic because it has fallen from the wall as a result of Doris endless campaign against dust, and the glass has cracked. This represents the destructive nature of Doris cleaning mania, the loss of Wilfred and particularly, with Doris choice to die at the end, the end of marriage both in Doris memory and on life. The fact that she holds on to the picture throughout the monologue may also suggest she is unwilling to let go of the past. One of the major differences arises from the medium each play was written for. George was written to be performed on stage as a stage play. It is non-realistic and bizarre because if it was written for a television programme or something more realistic there would not be a mynah bird talking. Also, because on a stage of the living room the bird would be constantly in view so the audience could not forget about it or ignore it as David and Judy ignored his mother. A Cream Cracker Under the Settee was written for a television drama especially for the actress Thora Hird. The play is more naturalistic and uses convention just as much but it is more subtle and therefore, not as obvious as it is in George. The close-ups enable the viewers to recognise the facial expressions and feel what Doris feels. Although both plays are hard-hitting and involve a lot of impact at the end I think that George has more impact on me because it is revealed more slowly and is seen through the eyes of a mynah bird which makes it more surreal and the moment when David is arguing with George sets the play up for a visual and clear ending of Davids mum lying at the bottom of the stairs on the floor for three days. I think that this play has more impact because it isnt just about mum and the isolation she was in but also the relationship she had with her son and the fact that he neglected her and her needs. Although I find George has more impact people may disagree because it is a shock when we realise that Doris has chosen to die. It is a very tense and shocking moment.

Monday, July 22, 2019

Physical Eduaction Essay Example for Free

Physical Eduaction Essay In society’s struggle against the growing obesity epidemic and the rising number of health related illnesses, it is becoming increasingly important to ensure children are being taught the significance of participating in regular physical activity and to also attain an understanding of the different aspects of physical education. Physical education can be defined as the understanding, development and teaching of the sociological, physiological and psychological aspect within sport and physical activity. Physical education helps students develop social skills and understanding which will ultimately enable the student to become a positive member of society. Physical education also allows students to develop their own skills and knowledge of sports and physical activities, which in turn will help promote a healthy, active lifestyle and potentially provide future career opportunities. Physical education has the potential to make significant contributions to the education and development of children and young people in many ways. see more:physical education in the philippines Physical Education is the main institution for the development of physical skills in children and young people. Educational theorist Telama, has highlighted the idea that schools are the main environment for many children to be physically active, whether it is through physical education programs or after-school activities (Telama et al, 1997). The physiological benefits of Physical Education are well established. Regular participation in physical activities can help lead to a longer and better quality of life, reduced risk from a number of health related diseases and many psychological or emotional problems. Regular physical exercise can reduce the risk of hear disease, type two diabetes and high blood pressure while also helps in the prevention of weight gain and depression or anxiety (Wuest Fisette, 2012). Basic movement skills that are developed through Physical Education programs are the foundations of almost all sporting and physical activities. Booth suggests that ‘there is evidence that those who have developed a strong foundation in fundamental movement skills are more likely to be active, both during childhood and later in life’ (Okely et al, 2001). Motorlogical benefits can also be seen through Physical Education in the form of developing important movement skills, which are needed throughout day-to -day life. Such movement skills include: flexibility, agility, strength, speed and hand-eye coordination. Through a relevant and efficient Physical Education program, students have the potential to develop skills and technique, which may provide possible career pathways later in life. The sociological benefits of Physical Education provide students with the tools to become an active and influential member of society. Physical education theorist, Svoboda states that ‘numerous studies have demonstrated that appropriately structured and presented activities can make a contribution to the development of pro-social behavior’ (Shephard, 1997). Students who participate in physical education have the opportunity to develop important social skills while working in a collaborative environment; this is the fundamental for building and maintaining friendships and relationships through life. Evidence suggests the Physical Education has the potential to bring individuals from a variety of social and economic backgrounds together in a shared interest. This ultimately offers a sense of belonging to a team of club, provides the opportunity to develop values and competencies, and helps develop social networks (Bailey, 2005). Academic benefits and positive behavioral im provements can also be attributed to Physical Education. A study in France during the early 1950’s found that children who participated in regular physical activity showed fewer disciplinary problems and had greater capacity for concentration. In more recent studies, evidence indicates that again these students showed positive behavioral improvements are now also showing improvements in academic performance (Shephard, 1997) In addition to the physiological and sociological benefits of Physical Education, students can also psychologically benefits from regular physical activity. Wuest and Fisette suggest that ‘participation in exercise promotes positive thought and feelings. These serve to counteract negative thoughts and feelings as well as mood states associated with depression and anxiety’ (Wuest Fisette, 2012). Psychological benefits of participating in physical activity include: a reduced state of anxiety, improved mood and emotions, alleviating symptoms associated with mild depression and an improvement towards social interactions and relationships. A positive relationship between exercise and psychological states is clearly evident, with various research showing different explanations on how this relationship occurs. Physical Education is an imperative foundation in the development of all students. Physical Education provides the social and physiological constructs on how to not only become an active, connected member of society, but how to also lead a healthy and active life while reducing the risk of serious illnesses. Furthermore, in reducing the likelihood of developing mental illnesses such as depression and anxiety. Physical Education also carries significant psychological benefits. Physical Education has the potential to make substantial contributions to the education, development and wellbeing of all students. In each area discussed; physiological, sociological and psychological, there is evidence that proves Physical Education can have a positive and profound effect.

Sunday, July 21, 2019

Issues in Industrial Relations and Human Resource Management

Issues in Industrial Relations and Human Resource Management Xu Jinhuang Definition of Industrial Relations Industrial Relations focus on economic point of view, employees is a part of production and the legislation of employment term dominated by demand and supply economics. (Singh and Kumar, 2011). (Kelly) added that industrial relations is a process of creating rule and regulation to ensure the relationship in workplace and industry. The Singapore Industrial Relations During the 1950’s to early 1960’s Singapore face sky high unemployment rate and social unrest before gaining independence in 1965. Singapore has a well-established Industrial relation and stable labour management system it is well known that Singapore’s phenomenal economic growth after gaining independence was the result of the stable labour policy. Contribution to Economy In it economic development, Singapore government has pro-actively played a role in amending and regulating policy within the industrial. The Singapore Industrial relations act legislation started in 15th August 1968 (Eresources.nlb.gov.sg, 2015), to establish a clear guideline of employer’s management right and allow employees to reach their full potential while earning a better income and life. After The Industrial Relations Act has being implemented, the Employment Act was pass on next to fully provide a legal platform for employees and employers to follow and boost the labour relations, this legal act also aims to provide a steady, low cost and flexible industrial relation system to attract foreign organizations to invest in Singapore. The Employment Act preserved in regulation that wage negotiations should be based on economic growth and efficiency, rather than on unrealistic philosophies of justice (Bercuson and Carling). A tripartite industrial relations arrangement was also made with merge decision making base on entire phases of economic and social development which helped ensure in an environment of stability. (Singh and Kumar, 2011). In 1979 the PAP has implemented legal restrictions on collective bargaining, which include trade unions into the NTUC (National Trades Union Congress) and lastly consist of employers with NTUC through NWC (Nation Wage Council) which was establish in 1972 to make sure orderly wage increases and institutionalization of a flexible wage system that started in 1985 which combine wage increases to profits and productivity (TAN and BALAKRISHNAN, 2005). The NWC also made it compulsory for employer to made contribution to employees Central Provident Fund (CPF) which can be used for healthcare, retirement and house loan another Skills Development Fund (SDF) is for employees to further upgrade their skill and knowledge thru attending courses. These enhance them to become productive and updated. These measures were authorized by government for businesses to give part of their revenues to employees. The resulted in the citizens increase in their standard of living, healthcare, learning and employment rate (Rowley and Benson). (Bercuson and Carling) added that the NWC also recommended quantitative wage although it wasn’t bind in economy wide movements in typical earning is closely reflected. During 1998, the government rename Ministry of Labour to Ministry of Manpower (MOM) the objective was to create a globally competitive workforce that can achieve sustainable economic growth for it citizens, this result in Singapore being well recognized as a global developed industrialise economies. The government also used the wage reform policy and facilitate flexible Human Resource Management (Leggett, 2005). Conclusion Singapore economy is consider successful this was depended on highly developed and capable government that consistently update and amend the system and set the objective based on social and economic. Under the dominant political ruling, PAP bring a strike free and harmony industrial relations condition. Reference Kelly, D. Researching industrial relations Bibliography: Kelly, Di. Researching Industrial Relations. Leichardt, NSW: Federation Press, 1999. Print. ERESOURCES.NLB.GOV.SG Industrial Relations (Amendment) Act is enacted Singapore History Bibliography:Eresources.nlb.gov.sg, (2015).Industrial Relations (Amendment) Act is enacted Singapore History. [Online] Available at: http://eresources.nlb.gov.sg/history/events/d7778e3e-1d07-457d-8cb4-6b27c0b8eb6d [Accessed 19 Feb. 2015]. SINGH, P. N. AND KUMAR, N. Employee relations management Bibliography:Singh, P. and Kumar, N. (2011).Employee relations management. New Delhi: Pearson Education South Asia. LEGGETT, C. The fourth transformation of Singapore’s industrial relations Bibliography:Leggett, C. (2005).The fourth transformation of Singapore’s industrial relations. Degree. University of South Australia. Tan, E. S. AND BALAKRISHNAN, P. Globalization and National Industrial Relations Systems: Theoretical Implications from the Singapore Case Bibliography:TAN, E. and BALAKRISHNAN, P. (2005).Globalization and National Industrial Relations Systems: Theoretical Implications from the Singapore Case. National University of Singapore Universiti Malaysia Sabah (UMS). Bercuson, K. and Carling, R. G. Singaporea case study in rapid development Bibliography: Bercuson, Kenneth, and Robert G Carling. SingaporeA Case Study in Rapid Development. Washington, DC: International Monetary Fund, 1995. Print. Rowley, C. and Benson, J. The management of human resources in the Asia Pacific region Bibliography: Rowley, Chris, and John Benson. The Management of Human Resources in the Asia Pacific Region. London: F. Cass, 2004. Print. Top of Form Bottom of Form Confirmation Certificate Congratulations! You have successfully completed the Library Plagiarism Quiz. Student Name: Xu Jinhuang Student Number: 13207569 Date: 30 June 2014 THIS IS TO CERTIFY THAT (signature)†¦Ã¢â‚¬ ¦Ã¢â‚¬ ¦Ã¢â‚¬ ¦Ã¢â‚¬ ¦Ã¢â‚¬ ¦Ã¢â‚¬ ¦Ã¢â‚¬ ¦Ã¢â‚¬ ¦ HAS COMPLETED THE PLAGIARISM QUIZ Remember that the confirmation certificate is a statement by you that you understand plagiarism and know how to avoid it. If you think that you do not understand plagiarism and how to avoid it after working through this tutorial, you should confer with your module coordinator, no matter what score you have obtained on the test. Please print out this page and attach a copy of the certificate to the final page in all assignments you submit on each module as part of your programme (It is your responsibility to print the certificate, complete the information, sign it, and keep a copy of it for your records) 1

Saturday, July 20, 2019

Acute Diverticulitis Essay -- Diseases, Disorders

On my third day of clinical course I had an African America patient age 72, female, a retired high school teacher who was admitted for an Acute Diverticulitis with Perforation. She is diabetic and had a medical and surgical history of diverticulitis, High Cholesterol, Non-Insulin-Dependent Diabetes Mellitus (NIDDM), Hysterectomy, and Scoliosis. She has been on clear liquid diet since she was admitted then she was Nothing by Mouth NPO for the CT scan for that day. When I got the assignment that I was going to be taking care of a patient with an acute diverticulitis, the first thing on my mind was that she will be in a severe abdominal pain, high fever due to infection because my aunty had same disease. To my surprise, she claimed a 0 /10 on a 0-10 pain scale. Her blood sugar and vital signs were normal except for respiratory that was 22. All her laboratory test results were normal including WBC. Patient concern was that she couldn’t have a bowel movement. She was me dicated on Colace- a stool softener, morphine for pain, sulfran for nausea, and azactam an antibiotics. Diverticulosis is a disease from the diverticulum. This is when the colon wall is been outpunched through the mucosa. These are small mucosal herniation bulging via smooth muscle and layers of the intestine along vasa recta formed opening in colon’s wall. Diverticulitis causes is still unknown but develop after a micro or macro perforation of diverticulum. Peritonitis is an end result from an intestinal rupture in the case of a large perforation. Clinically, diverticulosis could be asymptomatic or symptomatic, they are uncomplicated with no evidence of bleeding or inflammation. Signs and symptoms includes palpable mass and tenderness mostly i... ...an seven 6-ounce of glasses of fluid each day most especially for patients on pharmaceutical fiber supplements. Works Cited Ferzoco, K.H. (2010). Small bowel diverticulitis. The New England Journal of Medicine. 327: 302-7 Juchems, A.A. (2010). Long-term management of diverticulitis in young patients. Diseases of the Colon & Rectum. 58:627-629. Marinella, L.B. et al: (2010). Acute Diverticulitis. The New England Journal of Medicine. 327: 1521-1526 Painter, P.V. (2009). Diverticulitis. Gastroenterology Clinics of North America. 18:357-385. Spivak, W.K., & deSouza, J.M. (2008). Diverticulitis of the right colon. Digestive diseases and sciences. 49: 350-358 Wilcox, C.V. (2009). Limitation in the CT diagnosis of acute diverticulitis: Comparison of CT, contrast enema, pathologic findings in 16 patients. American Journal of Roentgenology. 201:381-385.

Mafia - Original Writing :: Papers

Mafia - Original Writing â€Å"Bang, bang, bang!† Francesco fell to the ground with a thunderous thud. His body on top of Fabio’s, who was taken out only moments earlier. Marco was the only one left; this attack has completely gone wrong. He hid behind a crate in the dark room, surrounded by five other men, all his compatriots have been killed or seriously injured. â€Å"Bang, bang† Marco shot blankly around the room; his inexperienced had just cost him dearly, those two shots gave a clear indication of his whereabouts. One of the men crept up behind him, and smashed his solar plexus with a baseball bat. Soon all five men were circling around him; an elbow struck him in the face, at this point his vision was blurred he couldn’t see clearly anymore. Shortly after the attack towards his face, he received a huge blow in the kidney area, he slowly went down. He could hear the chatter amongst the five men; he could hear their footsteps walking away from him. Marco’s once gigantic figure, lay there motionless, in too much pain to move any part of his body. Thoughts started rushing through his head, the events of the past week, has completely changed his life. A week ago, 16th July 1928, Marco Camoranesi was an ordinary man, earning average income, as a taxi driver in the busy street of New York. That night at about 1:30 in the morning, two middle-aged men entered his taxi. Marco approached them in his usual friendly way, but he soon realized that these men weren’t your ordinary New-Yorker. â€Å"Just loose those two cars behind us, you will be rewarded.† Marco was frightened, he knew that there were Mafia gangs around where he lived, but he was one of those people that thought that he was never going to see or be involved in their activities. â€Å"B†¦..but†¦Ã¢â‚¬  Marco stutters, but he had no chance to finish, as one of the men behind him put a gun on his head, â€Å"Drive!!!† Marco had no

Friday, July 19, 2019

The Fat Lady Essay -- Character Analysis, Dr. Yalom, Betty

The Fat Lady Book Report In the third story of Loves Executioner: â€Å"The Fat lady† , Dr.Yalom decides to treat a twenty-seven year old overweight woman named, Betty. Though Dr. Yalom was reluctant to treat Betty at first due to her being obese, Dr. Yalom decides to put aside his counter-transference issues and views treating Betty as a way to improve his skills as a therapist. Not only does Dr.Yalom learn throughout treating Betty that there was more substance to her than he had initially anticipated, but he connects with betty while overcoming his counter-transference issues,helping Betty uncover the pathology of her depression and discovering her identity. First and foremost is Dr.Yaloms first meeting and reactions toward Betty. During first initial meeting, Dr. Yalom is taken back by Betties physical appearance as Dr.Yalom goes into explicit detail for his distaste for fat woman as he states, â€Å"I always been repelled by fat women. I find them disgusting: their absurd sidewise waddle, their absence of body contour,breasts,laps,buttock,shoulders,jawlines,cheekbones, everything I like to see in a woman obscured in an avalanche of flesh.† (Yalom, 2000 p. 94) Dr. Yalom proceeds asking the the typical questions what is troubling her as Betty tells Dr.Yalom that she is depressed and her eating has been out of control. Dr. Yalom, realizing his counter transference issues may make it hard for him to relate or even treat Betty, instead he views Betty as a challenge of being able to overcome his aversion toward fat women as a way of better helping future patients. In the next few sessions Dr.Yalom finds Betties endless chatter about her life extremely unmoving. Dr.Yalom describes their talks as, â€Å"cocktail chatter† with no real substa... ...Yalom, 2000) Betty then inquires about those changes as Dr.Yalom embarrassing admits he did not feel comfortable with obese people. Betty berates Dr.Yalom telling him that he never once touched her in the whole therapy session, let alone look at her directly for the first six months. Betty also tells Dr.Yalom, Ironically, Betty tells him how she cant stand fat people either and thats why she has a distaste for groups. Dr.Yalom then gives her a hug, surprised that he is able to put his arms around the once obese two hundred and fifty pound woman. Not only in the end did Dr.Yalom learn to move past his counter-transferense issues he had with fat women, but he grew with his patient as they both took something away from therapy, Dr.Yalom being empathetic and moving past Bettys intital obese appearance, and Betty appreciating life in the now and becoming a real identity.

Thursday, July 18, 2019

Reid Based Prepaid Energy Mater

chapter 1 [pic] 1. 1 Objectives of the Study Prepaid energy meter are being used worldwide to improve the collection of funds for the energy used. Weather it is developed nation or developing nation all electricity boards are facing two major issues 1. Power Theft 2. Collection of funds In the existing system the above two problems are non predictable and time consuming process respectively. To overcome these things in the proposed system Cal cards has developed and implemented as RFID based pre-paid energy meter. Cal card take information management to new heights with RFID technology.Using the state of the art technology, we can now write data into the RFID tag electronically. Using dual Authentication, Stream Encryption and other security features we restrict access to un-authorized personnel for any particular information. In this project three units are important they are RFID Card, RFID Reader and Writer. Tags are programmable and they may be read or read/write i. e. the inform ation stored in the tag’s memory cannot be changed or can be updated as required. The reader powers the antenna to generate radio frequency waves to transmit a signal that activates the tag and allows data to come into or leave the tag’s memory.This card can be designed to hold all amount details including Name of the family head, ID number, resident address and amount has been recharged. chapter 2 [pic] 2. 1 Methodology of the study Methodology: This System assigns a unique card number for each house. A particular house person places the RFID card within 5cm distance from the RFID Reader. The RFID Reader reads down the time, date and for how much amount it was recharged. The success of recharge will be indicated on the LCD display with buzzer acknowledgement sound.The display also indicates the current energy utilization. The Interface software is responsible for energy utilization record processing and calculation amount for the utilized energy. 2. 2 EMBEDDED SYSTEM: Embedded System is a combination of hardware and software used to achieve a single specific task. An embedded system is a microcontroller-based, software driven, reliable, real-time control system, autonomous, or human or network interactive, operating on diverse physical variables and in diverse environments and sold into a competitive and cost conscious market.An embedded system is not a computer system that is used primarily for processing, not a software system on PC or UNIX, not a traditional business or scientific application. High-end embedded & lower end embedded systems. High-end embedded system – Generally 32, 64 Bit Controllers used with OS. Examples Personal Digital Assistant and Mobile phones etc . Lower end embedded systems – Generally 8,16 Bit Controllers used with an minimal operating systems and hardware layout designed for the specific purpose. Examples Small controllers and devices in our everyday life like Washing Machine, Microwave Ovens, where th ey are embedded in.SYSTEM DESIGN CALLS:[pic] THE EMBEDDED SYSTEM DESIGN CYCLE: [pic] â€Å"V Diagram† In this place we need to discuss the role of simulation software, real-time systems and data acquisition in dynamic test applications. Traditional testing is referred to as â€Å"static† testing where functionality of components is tested by providing known inputs and measuring outputs. Today there is more pressure to get products to market faster and reduce design cycle times. This has led to a need for â€Å"dynamic† testing where components are tested while in use with the entire system – either real or simulated.Because of cost and safety concerns, simulating the rest of the the system with real-time hardware is preferred to testing components in the actual real system. The diagram shown on this slide is the â€Å"V Diagram† that is often used to describe the development cycle. Originally developed to encapsulate the design process of software applications, many different versions of this diagram can be found to describe different product design cycles. Here we have shown one example of such a diagram representing the design cycle of embedded control applications common to automotive, aerospace and defense applications.In this diagram the general progression in time of the development stages is shown from left to right. Note however that this is often an iterative process and the actual development will not proceed linearly through these steps. The goal of rapid development is to make this cycle as efficient as possible by minimizing the iterations required for a design. If the x-axis of the diagram is thought of as time, the goal is to narrow the â€Å"V† as much as possible and thereby reduce development time. The y-axis of this diagram can be thought of as the level at which the system components are considered.Early on in the development, the requirements of the overall system must be considered. As the system is divided into sub-systems and components, the process becomes very low-level down to the point of loading code onto individual processors. Afterwards components are integrated and tested together until such time that the entire system can enter final production testing. Therefore the top of the diagram represents the high-level system view and the bottom of the diagram represents a very low-level view. Notes: †¢ V diagram describes lots of applications—derived from software development. Reason for shape, every phase of design requires a complimentary test phase. High-level to low-level view of application. †¢ This is a simplified version. †¢ Loop Back/ Iterative process, X-axis is time (sum up). Characteristics of Embedded System: †¢ An embedded system is any computer system hidden inside a product other than a computer †¢ There will encounter a number of difficulties when writing embedded system software in addition to those we encounter when we wr ite applications – Throughput – Our system may need to handle a lot of data in a short period of time. Response–Our system may need to react to events quickly – Testability–Setting up equipment to test embedded software can be difficult – Debugability–Without a screen or a keyboard, finding out what the software is doing wrong (other than not working) is a troublesome problem – Reliability – embedded systems must be able to handle any situation without human intervention – Memory space – Memory is limited on embedded systems, and you must make the software and the data fit into whatever memory exists – Program installation – you will need special tools to get your oftware into embedded systems – Power consumption – Portable systems must run on battery power, and the software in these systems must conserve power – Processor hogs – computing that requires large amount s of CPU time can complicate the response problem – Cost – Reducing the cost of the hardware is a concern in many embedded system projects; software often operates on hardware that is barely adequate for the job. †¢ Embedded systems have a microprocessor/ microcontroller and a memory. Some have a serial port or a network connection. They usually do not have keyboards, screens or disk drives.APPLICATIONS: 1. Military and aerospace embedded software applications 2. Communication Applications 3. Industrial automation and process control software CLASSIFICATION: †¢ Real Time Systems. †¢ RTS is one which has to respond to events within a specified deadline. †¢ A right answer after the dead line is a wrong answer RTS CLASSIFICATION: †¢ Hard Real Time Systems †¢ Soft Real Time System HARD REAL TIME SYSTEM: †¢ â€Å"Hard† real-time systems have very narrow response time. †¢ Example: Nuclear power system, Cardiac pacemaker. SOFT RE AL TIME SYSTEM: â€Å"Soft† real-time systems have reduced constrains on â€Å"lateness† but still must operate very quickly and repeatable. †¢ Example: Railway reservation system – takes a few extra seconds the data remains valid. LANGUAGES USED: †¢ C †¢ C++ †¢ Java †¢ Linux †¢ Ada †¢ Assembly MPLAB FEATURES: MPLAB Integrated Development Environment (IDE) is a free, integrated toolset for the development of embedded applications employing Microchip's PIC ® and dsPIC ® microcontrollers. MPLAB Integrated Development Environment (IDE) is a free, integrated toolset for the development of embedded applications employing Microchip's PIC ® and dsPIC ® microcontrollers.MPLAB IDE runs as a 32-bit application on MS Windows ®, is easy to use and includes a host of free software components for fast application development and super-charged debugging. MPLAB IDE also serves as a single, unified graphical user interface for additio nal Microchip and third party software and hardware development tools. Moving between tools is a snap, and upgrading from the free software simulator to hardware debug and programming tools is done in a flash because MPLAB IDE has the same user interface for all tools.MPLAB IDE’s SIM, high speed software simulator for PIC and dsPIC (Digital Signal Processing PIC Microcontroller) devices with peripheral simulation, complex stimulus injection and register logging. CHAPTER 3 [pic] 3. 1 Block Diagram of RFID PREPAID energy meter BLOCK DIAGRAM 3. 2 Description of the Block Diagram The AC main Block is the power supply which is of single phase 230V ac. This should be given to step down transformer to reduce the 230V ac voltage to low voltage. i. e. , to 6V or 12V ac this value depends on the transformer inner winding. The output of the transformer is given to the rectifier circuit.This rectifier converts ac voltage to dc voltage. But the voltage may consist of ripples or harmonics. To avoid these ripples the output of the rectifier is connected to filter. The filter thus removes the harmonics. This is the exact dc voltage of the given specification. But the controller operates at 5V dc and the relays and driver operates at 12V dc voltage. So we need a regulator to reduce the voltage. 7805 regulator produces 5V dc. The 7805 regulator produces 5V dc and this voltage is given to PIC micro controller and sensors. The outputs of the sensors are also given to PIC micro controller.LCD, Keypad unit, SMART CARD read and write unit are connected to the controller. The controller reads the SMART CARD data from SMART CARD reader. The controller displays the data on LCD, depends upon the energy consumption the amount will be reduced. [pic] 3. 3 circuit diagram of RFID PREPAID energy meter: [pic] 3. 4 Circuit Description POWER SUPPLY: Power supply unit consists of Step down transformer, Rectifier, Input filter, Regulator unit, Output filter. The Step down Transformer is us ed to step down the main supply voltage from 230V AC to lower value.This 230 AC voltage cannot be used directly, thus it is stepped down. The Transformer consists of primary and secondary coils. To reduce or step down the voltage, the transformer is designed to contain less number of turns in its secondary core. The output from the secondary coil is also AC waveform. Thus the conversion from AC to DC is essential. This conversion is achieved by using the Rectifier Circuit/Unit. The Rectifier circuit is used to convert the AC voltage into its corresponding DC voltage. There are Half-Wave, Full-Wave and bridge Rectifiers available for this specific function.The most important and simple device used in Rectifier circuit is the diode. The simple function of the diode is to conduct when forward biased and not to conduct in reverse bias. The Forward Bias is achieved by connecting the diode’s positive with positive of the battery and negative with battery’s negative. The effi cient circuit used is the Full wave Bridge rectifier circuit. The output voltage of the rectifier is in rippled form, the ripples from the obtained DC voltage are removed using other circuits available. The circuit used for removing the ripples is called Filter circuit.Capacitors are used as filter. The ripples from the DC voltage are removed and pure DC voltage is obtained. And also these capacitors are used to reduce the harmonics of the input voltage. The primary action performed by capacitor is charging and discharging. It charges in positive half cycle of the AC voltage and it will discharge in negative half cycle. Here we used 1000 µF capacitor. So it allows only AC voltage and does not allow the DC voltage. This filter is fixed before the regulator. Thus the output is free from ripples. Regulator regulates the output voltage to be always constant.The output voltage is maintained irrespective of the fluctuations in the input AC voltage. As and then the AC voltage changes, th e DC voltage also changes. Thus to avoid this Regulators are used. Also when the internal resistance of the power supply is greater than 30 ohms, the output gets affected. Thus this can be successfully reduced here. The regulators are mainly classified for low voltage and for high voltage. Here we used 7805 positive regulators. It reduces the 6V dc voltage to 5V dc Voltage. The Filter circuit is often fixed after the Regulator circuit. Capacitor is most often used as filter.The principle of the capacitor is to charge and discharge. It charges during the positive half cycle of the AC voltage and discharges during the negative half cycle. So it allows only AC voltage and does not allow the DC voltage. This filter is fixed after the Regulator circuit to filter any of the possibly found ripples in the output received finally. Here we used 0. 1 µF capacitor. The output at this stage is 5V and is given to the Microcontroller Microcontroller and sensors are operated at 5V dc voltage. The output of the 7805 regulator is connected to PIC 16f877A microcontroller. Controller CircuitThe PIC 16f877A microcontroller is a 40-pin IC. The first pin of the controller is MCLR pin and the 5V dc supply is given to this pin through 10K? resistor. This supply is also given to 11th pin directly. The 12th pin of the controller is grounded. A tank circuit consists of a 4 MHZ crystal oscillator and two 22pf capacitors is connected to 13th and 14th pins of the PIC. The circuit consists of MAX-232 IC. It is a 16-pin dual in package IC. The 11th and 12th pins of MAX-232 IC are connected to the 25th and 26th pins of the PIC microcontroller. These are receiver OUT and Transmitter IN pins respectively.LCD is connected to the RC0 to RD7 pins of the PIC microcontroller. 13th, 14th and 15th pins of the MAX-232 IC are connected to the smart card read Buffer. The Keypad unit connected to the RB0 to RB3 pins of the PIC micro controller. The keypad unit consists of 4 switches. One is for menu, sec ond is Exit, third one is for Clear and the other is for Day Increment. MAX-232 IC is used to convert the voltage from 5V to 10V and 10V to 5V. This IC is used to communicate with the PC. It also acts as voltage converter. The LCD used here is to display the Attendance details. [pic] 3. 5 CIRCUIT OPERATIONThe input of the circuit is taken from the main. It is a single phase 230V ac voltage. This 230 AC voltage cannot be used directly, thus it is stepped down. The Step down Transformer is used to step down the main supply voltage from 230V AC to lower value. Because the microcontroller and sensors are operated at +5V dc voltage and relays and drivers will be operate at +12V dc voltage. So first this 230C AC voltage should be stepped down and then it should be converted to dc. After converting to dc it is applied to controller, sensors, relays and drivers. In this project we used 230/12V step down transformer.In this circuit we used two regulators. 7805 regulator for producing 5V dc, and 7812 regulators for 12V dc voltage. The output of 7805 regulators is given to PIC microcontroller and three sensors. The output of the 7812 regulator is connected to driver IC and a Relay. The main parts of this project are smart card and PIC micro controller. The coding will be installed to microcontroller through PIC Flash micro systems compiler unit. The crystal oscillator is used to generate the clock pulses to the PIC micro controller. The speed of the microcontroller depends upon the value of the crystal oscillator.In this project we used the 4 MHz crystal oscillator. Whenever recharged smart card shown in front of the reader the data from card will be read and send to controller through reader. The controller confirms whether it is old or new card. After this it will automatically open the lock to use EB power supply. If the wrong card shown, controller activate the alarm. Depends on the energy consumption the amount will reduced by the controller, when its come to below zero the controller automatically cut down the EB power supply through driver unit. In the driver unit ULN2003 is used as driver to driver the 12v relay.We inserted the process into the controller through coding. Coding was developed in Embedded ‘C’ Language. CHAPTER 4 [pic] 4. 1 Hardware Requirements: 1. Power supply unit 2. Microcontroller 3. MAX-232 IC 4. LCD 5. Keypad Unit 4. 2 POWER SUPPLY UNIT: Circuit Diagram [pic] Power supply unit consists of following units i) Step down transformer ii) Rectifier unit iii) Input filter iv) Regulator unit v) Output filter 4. 3. 1 Stepdown transformer: The Step down Transformer is used to step down the main supply voltage from 230V AC to lower value. This 230 AC voltage cannot be used directly, thus it is stepped down.The Transformer consists of primary and secondary coils. To reduce or step down the voltage, the transformer is designed to contain less number of turns in its secondary core. The output from the secondary coil is a lso AC waveform. Thus the conversion from AC to DC is essential. This conversion is achieved by using the Rectifier Circuit/Unit. 4. 3. 2 Rectifier Unit: The Rectifier circuit is used to convert the AC voltage into its corresponding DC voltage. There are Half-Wave, Full-Wave and bridge Rectifiers available for this specific function. The most important and simple device used in Rectifier circuit is the diode.The simple function of the diode is to conduct when forward biased and not to conduct in reverse bias. The Forward Bias is achieved by connecting the diode’s positive with positive of the battery and negative with battery’s negative. The efficient circuit used is the Full wave Bridge rectifier circuit. The output voltage of the rectifier is in rippled form, the ripples from the obtained DC voltage are removed using other circuits available. The circuit used for removing the ripples is called Filter circuit. 4. 3. 3 Input Filter: Capacitors are used as filter.The ri pples from the DC voltage are removed and pure DC voltage is obtained. And also these capacitors are used to reduce the harmonics of the input voltage. The primary action performed by capacitor is charging and discharging. It charges in positive half cycle of the AC voltage and it will discharge in negative half cycle. So it allows only AC voltage and does not allow the DC voltage. This filter is fixed before the regulator. Thus the output is free from ripples. 4. 3. 4 Regulator unit: [pic] 7805 Regulator Regulator regulates the output voltage to be always constant.The output voltage is maintained irrespective of the fluctuations in the input AC voltage. As and then the AC voltage changes, the DC voltage also changes. Thus to avoid this Regulators are used. Also when the internal resistance of the power supply is greater than 30 ohms, the output gets affected. Thus this can be successfully reduced here. The regulators are mainly classified for low voltage and for high voltage. Furth er they can also be classified as: i) Positive regulator 1—> input pin 2—> ground pin 3—> output pin It regulates the positive voltage. ii) Negative regulator —> ground pin 2—> input pin 3—> output pin It regulates the negative voltage. 4. 3. 5 Output Filter: The Filter circuit is often fixed after the Regulator circuit. Capacitor is most often used as filter. The principle of the capacitor is to charge and discharge. It charges during the positive half cycle of the AC voltage and discharges during the negative half cycle. So it allows only AC voltage and does not allow the DC voltage. This filter is fixed after the Regulator circuit to filter any of the possibly found ripples in the output received finally. Here we used 0. 1 µF capacitor.The output at this stage is 5V and is given to the Microcontroller. 4. 4 MICRO CONTROLLER: A computer-on-a-chip is a variation of a microprocessor which combines the processor core (CPU), some memory, and I/O (input/output) lines, all on one chip. The computer-on-a-chip is called the microcomputer whose proper meaning is a computer using a (number of) microprocessor(s) as its CPUs, while the concept of the microcomputer is known to be a microcontroller. A microcontroller can be viewed as a set of digital logic circuits integrated on a single silicon chip. This chip is used for only specific applications. . 4. 1 ADVANTAGES OF USING A MICROCONTROLLER OVER MICROPROCESSOR: A designer will use a Microcontroller to 1. Gather input from various sensors 2. Process this input into a set of actions 3. Use the output mechanisms on the Microcontroller to do something useful 4. RAM and ROM are inbuilt in the MC. 5. Cheap compared to MP. 6. Multi machine control is possible simultaneously. Examples: 8051 (ATMAL), PIC (Microchip), Motorola (Motorola), ARM Processor, Applications: Cell phones, Computers, Robots, Interfacing to two pc’s. 4. 4. 2 Microcontroller Core Features: †¢ High-per formance RISC CPU. Only 35 single word instructions to learn. †¢ All single cycle instructions except for program branches which are two cycle. †¢ Operating speed: DC – 20 MHz clock input DC – 200 ns instruction cycle. †¢ Up to 8K x 14 words of FLASH Program Memory, Up to 368 x 8 bytes of Data Memory (RAM) Up to 256 x 8 bytes of EEPROM data memory. †¢ Pin out compatible to the PIC16C73B/74B/76/77 †¢ Interrupt capability (up to 14 sources) †¢ Eight level deep hardware stack †¢ Direct, indirect and relative addressing modes. †¢ Power-on Reset (POR). †¢ Power-up Timer (PWRT) and Oscillator Start-up Timer (OST). Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation. †¢ Programmable code-protection. †¢ Power saving SLEEP mode. †¢ Selectable oscillator options. †¢ Low-power, high-speed CMOS FLASH/EEPROM technology. †¢ Fully static design. †¢ In-Circuit Serial Programming (ICSP ) . †¢ Single 5V In-Circuit Serial Programming capability. †¢ In-Circuit Debugging via two pins. †¢ Processor read/write access to program memory. †¢ Wide operating voltage range: 2. 0V to 5. 5V. †¢ High Sink/Source Current: 25 mA. †¢ Commercial and Industrial temperature ranges. †¢ Low-power consumption.In this project we used PIC 16f877A microcontroller. PIC means Peripheral Interface Controller. The PIC family having different series. The series are 12- Series, 14- Series, 16- Series, 18- Series, and 24- Series. We used 16 Series PIC microcontroller. 3. PIC MICROCONTROLLER 16F877A 1. INTRODUCTION TO PIC MICROCONTROLLER 16F877A The PIC 16f877A microcontroller is a 40-pin IC. The first pin of the controller is MCLR pin and the 5V dc supply is given to this pin through 10K? resistor. This supply is also given to 11th pin directly. The 12th pin of the controller is grounded.A tank circuit consists of a 4 MHZ crystal oscillator and two 22pf capacitor s is connected to 13th and 14th pins of the PIC. 2. FEATURES OF PIC MICROCONTROLLER 16F877A †¢ Operating frequency: DC-20Mhz. †¢ Flash program memory (14 bit words):8K †¢ Data memory (in bytes): 368 †¢ EEPROM Data memory (in bytes):256 †¢ Interrupts: 15 †¢ I/o ports: A, B, C, D, E †¢ Timers: 3 †¢ Analog comparators: 2 †¢ Instructions: 35 4. 3. 3 pin diagram of pic 16f874a/877a: [pic] 4. 3. 4 FUNCTIONAL BLOCK DIAGRAM OF PIC 16F877A [pic] 4. 4 LCD Display: Liquid crystal display (LCD) has material which combines the properties of both liquid and crystals.They have a temperature range within which the molecules are almost as mobile as they would be in a liquid, but are grouped together in an order form similar to a crystal. LCD DISPLAY: [pic] More microcontroller devices are using ‘smart LCD' displays to output visual information. The following discussion covers the connection of a Hitachi LCD display to a PIC microcontroller. LCD disp lays designed around Hitachi's LCD HD44780 module, are inexpensive, easy to use, and it is even possible to produce a readout using the 8 x 80 pixels of the display.Hitachi LCD displays have a standard ASCII set of characters plus Japanese, Greek and mathematical symbols. For an 8-bit data bus, the display requires a +5V supply plus 11 I/O lines. For a 4-bit data bus it only requires the supply lines plus seven extra lines. When the LCD display is not enabled, data lines are tri-state which means they are in a state of high impedance (as though they are disconnected) and this means they do not interfere with the operation of the microcontroller when the display is not being addressed. The LCD also requires 3 â€Å"control† lines from the microcontroller. Enable (E) |This  line allows access to the display through R/W and RS lines. When this line is low, the LCD is disabled and | | |ignores signals from R/W and RS. When (E) line is high, the LCD checks the state of the two c ontrol lines and | | |responds accordingly. | |Read/Write (R/W) |This line determines the direction of data between the LCD and microcontroller. When it is low, data is written | | |to the LCD. When it is high, data is read from the LCD. |Register select (RS) |With the help of this line, the LCD interprets the type of data on data lines. When it is low, an instruction is | | |being written to the LCD. When it is high, a character is being written to the LCD. | Logic status on control lines: E  Ã‚  Ã‚  Ã‚   0 Access to LCD disabled 1 Access to LCD enabled R/W 0 Writing data to LCD 1 Reading data from LCD RS  Ã‚  Ã‚   0 Instruction 1 Character Writing data to the LCD is done in several steps: Set R/W bit to low Set RS bit to logic 0 or 1 (instruction or character) Set data to data lines (if it is writing) Set E line to highSet E line to low Read data from data lines (if it is reading). Reading data from the LCD is done in the same way, but control line R/W has to be high. When we send a high to the LCD, it will reset and wait for instructions. Typical instructions sent to LCD display after a reset are: turning on a display, turning on a cursor and writing characters from left to right. When the LCD is initialized, it is ready to continue receiving data or instructions. If it receives a character, it will write it on the display and move the cursor one space to the right. The Cursor marks the next location where a character will be written.When we want to write a string of characters, first we need to set up the starting address, and then send one character at a time. Characters that can be shown on the display are stored in data display (DD) RAM. The size of DDRAM is 80 bytes. |The LCD display also possesses 64 bytes of Character-Generator (CG)|[pic] | |RAM. This memory is used for characters defined by the user. Data | | |in CG RAM is represented as an 8-bit character bit-map.Each | | |character takes up 8 bytes of CG RAM, so the total number of | | |ch aracters, which the user can define, is eight. In order to read | | |in the character bit-map to the LCD display, we must first set the | | |CG RAM address to starting point (usually 0), and then write data | | |to the display.The definition of a ‘special' character is given in| | |the picture. | | Before we access DD RAM after defining a special character, the program must set the DD RAM address. Writing and reading data from any LCD memory is done from the last address which was set up using set-address instruction. Once the address of DD RAM is set, a new written character will be displayed at the appropriate place on the screen.Until now we discussed the operation of writing and reading to an LCD as if it were an ordinary memory. But this is not so. The LCD controller needs 40 to 120 microseconds (uS) for writing and reading. Other operations can take up to 5 mS. During that time, the microcontroller can not access the LCD, so a program needs to know when the LCD is bu sy. We can solve this in two ways. One way is to check the BUSY bit found on data line D7. This is not the best method because LCD's can get stuck, and program will then stay forever in a loop checking the BUSY bit. The other way is to introduce a delay in the program.The delay has to be long enough for the LCD to finish the operation in process. Instructions for writing to and reading from an LCD memory are shown in the previous table. At the beginning we mentioned that we needed 11 I/O lines to communicate with an LCD. However, we can communicate with an LCD through a 4-bit data bus. Thus we can reduce the total number of communication lines to seven. The wiring for connection via a 4-bit data bus is shown in the diagram below. In this example we use an LCD display with 2Ãâ€"16 characters, labeled LM16X212 by Japanese maker SHARP.The message ‘character' is written in the first row: and two special characters ‘~' and ‘}' are displayed. In the second row we have p roduced the word ‘mikroElektronika'. INTERFACING PIC MICROCONTROLLER TO LCD: [pic] 4. 5 DESIGN OF EMBEDDED SYSTEM Like every other system development design cycle embedded system too have a design cycle. The flow of the system will be like as given below. For any design cycle these will be the implementation steps. From the initial state of the project to the final fabrication the design considerations will be taken like the software consideration and the hardware components, sensor, input and output.The electronics usually uses either a microprocessor or a microcontroller. Some large or old systems use general-purpose mainframe computers or minicomputers. User Interfaces: User interfaces for embedded systems vary widely, and thus deserve some special comment. User interface is the ultimate aim for an embedded module as to the user to check the output with complete convenience. One standard interface, widely used in embedded systems, uses two buttons (the absolute minimum) to control a menu system (just to be clear, one button should be â€Å"next menu entry† the other button should be â€Å"select this menu entry†).Another basic trick is to minimize and simplify the type of output. Designs sometimes use a status light for each interface plug, or failure condition, to tell what failed. A cheap variation is to have two light bars with a printed matrix of errors that they select- the user can glue on the labels for the language that he speaks. For example, most small computer printers use lights labeled with stick-on labels that can be printed in any language. In some markets, these are delivered with several sets of labels, so customers can pick the most comfortable language.In many organizations, one person approves the user interface. Often this is a customer, the major distributor or someone directly responsible for selling the system. PLATFORM: There are many different CPU architectures used in embedded designs such as ARM, MIPS, Coldfir e/68k, PowerPC, X86, PIC, 8051, Atmel AVR, H8, SH, V850, FR-V, M32R etc. This in contrast to the desktop computer market, which as of this writing (2003) is limited to just a few competing architectures, mainly the Intel/AMD x86, and the Apple/Motorola/IBM PowerPC, used in the Apple Macintosh.With the growing acceptance of Java in this field, there is a tendency to even further eliminate the dependency on specific CPU/hardware (and OS) requirements. Standard PC/104 is a typical base for small, low-volume embedded and rugged zed system design. These often use DOS, Linux or an embedded real-time operating system such as QNX or Inferno. A common configuration for very-high-volume embedded systems is the system on a chip, an application-specific integrated circuit, for which the CPU was purchased as intellectual property to add to the IC's design.A related common scheme is to use a field-programmable gate array, and program it with all the logic, including the CPU. Most modern FPGAs are designed for this purpose. Tools: Like typical computer programmers, embedded system designers use compilers, assemblers, and debuggers to develop embedded system software. However, they also use a few tools that are unfamiliar to most programmers. Software tools can come from several sources: †¢ Software companies that specialize in the embedded market. †¢ Ported from the GNU software development tools.Sometimes, development tools for a personal computer can be used if the embedded processor is a close relative to a common PC processor. Embedded system designers also use a few software tools rarely used by typical computer programmers. One common tool is an â€Å"in-circuit emulator† (ICE) or, in more modern designs, an embedded debugger. This debugging tool is the fundamental trick used to develop embedded code. It replaces or plugs into the microprocessor, and provides facilities to quickly load and debug experimental code in the system. A small pod usually prov ides the special electronics to plug into the system.Often a personal computer with special software attaches to the pod to provide the debugging interface. Another common tool is a utility program (often home-grown) to add a checksum or CRC to a program, so it can check its program data before executing it. An embedded programmer that develops software for digital signal processing often has a math workbench such as MathCad or Mathematica to simulate the mathematics. Less common are utility programs to turn data files into code, so one can include any kind of data in a program. A few projects use Synchronous programming languages for extra reliability or digital signal processing.DEBUGGING: Debugging is usually performed with an in-circuit emulator, or some type of debugger that can interrupt the microcontroller's internal microcode. The microcode interrupt lets the debugger operate in hardware in which only the CPU works. The CPU-based debugger can be used to test and debug the el ectronics of the computer from the viewpoint of the CPU. This feature was pioneered on the PDP-11. As the complexity of embedded systems grows, higher level tools and operating systems are migrating into machinery where it makes sense.For example, cell phones, personal digital assistants and other consumer computers often need significant software that is purchased or provided by a person other than the manufacturer of the electronics. In these systems, an open programming environment such as Linux, OSGi or Embedded Java is required so that the third-party software provider can sell to a large market. OPERATING SYSTEM: Embedded systems often have no operating system, or a specialized embedded operating system (often a real-time operating system), or the programmer is assigned to port one of these to the new system.BUILT- IN SELF- TEST: Most embedded systems have some degree or amount of built-in self-test. There are several basic types. 1. Testing the computer. 2. Test of peripheral s. 3. Tests of power. 4. Communication tests. 5. Cabling tests. 6. Rigging tests. 7. Consumables test. 8. Operational test. 9. Safety test. START UP: All embedded systems have start-up code. Usually it disables interrupts, sets up the electronics, tests the computer (RAM, CPU and software), and then starts the application code. Many embedded systems recover from short-term power failures by restarting (without recent self-tests).Restart times under a tenth of a second are common. Many designers have found a few LEDs useful to indicate errors (they help troubleshooting). A common scheme is to have the electronics turn on all of the LED(s) at reset (thereby proving that power is applied and the LEDs themselves work), whereupon the software changes the LED pattern as the Power-On Self Test executes. After that, the software may blink the LED(s) or set up light patterns during normal operation to indicate program execution progress or errors. This serves to reassure most technicians/eng ineers and some users.An interesting exception is that on electric power meters and other items on the street, blinking lights are known to attract attention and vandalism. CHAPTER 5 [pic] 5. 1 Software Tools: 1. MPLAB 2. Protel 3. Propic 4. HI-Tech PIC C Compiler 5. 2 MPLAB Integration: MPLAB Integrated Development Environment (IDE) is a free, integrated toolset for the development of embedded applications employing Microchip's PIC micro and dsPIC microcontrollers. MPLAB IDE runs as a 32-bit application on MS Windows, is easy to use and includes a host of free software components for fast application development and super-charged debugging.MPLAB IDE also serves as a single, unified graphical user interface for additional Microchip and third party software and hardware development tools. Moving between tools is a snap, and upgrading from the free simulator to MPLAB ICD 2 or the MPLAB ICE emulator is done in a flash because MPLAB IDE has the same user interface for all tools. Choose MPLAB C18, the highly optimized compiler for the PIC18 series microcontrollers, or try the newest Microchip's language tools compiler, MPLAB C30, targeted at the high performance PIC24 and dsPIC digital signal controllers.Or, use one of the many products from third party language tools vendors. They integrate into MPLAB IDE to function transparently from the MPLAB project manager, editor and compiler. 5. 3 INTRODUCTION TO EMBEDDED ‘C’: Ex: Hitec – c, Keil – c HI-TECH Software makes industrial-strength software development tools and C compilers that help software developers write compact, efficient embedded processor code. For over two decades HI-TECH Software has delivered the industry's most reliable embedded software development tools and compilers for writing efficient and compact code to run on the most popular embedded processors.Used by tens of thousands of customers including General Motors, Whirlpool, Qualcomm, John Deere and many others, HI-TECH's reliable development tools and C compilers, combined with world-class support have helped serious embedded software programmers to create hundreds of breakthrough new solutions. Whichever embedded processor family you are targeting with your software, whether it is the ARM, PICC or 8051 series, HI-TECH tools and C compilers can help you write better code and bring it to market faster. HI-TECH PICC is a high-performance C compiler for the Microchip PIC micro 10/12/14/16/17 series of microcontrollers.HI-TECH PICC is an industrial-strength ANSI C compiler – not a subset implementation like some other PIC compilers. The PICC compiler implements full ISO/ANSI C, with the exception of recursion. All data types are supported including 24 and 32 bit IEEE standard floating point. HI-TECH PICC makes full use of specific PIC features and using an intelligent optimizer, can generate high-quality code easily rivaling hand-written assembler. Automatic handling of page and bank selection f rees the programmer from the trivial details of assembler code. 5. 4 Embedded C Compiler: ? ANSI C – full featured and portable Reliable – mature, field-proven technology ? Multiple C optimization levels ? An optimizing assembler ? Full linker, with overlaying of local variables to minimize RAM usage ? Comprehensive C library with all source code provided ? Includes support for 24-bit and 32-bit IEEE floating point and 32-bit long data types ? Mixed C and assembler programming ? Unlimited number of source files ? Listings showing generated assembler ? Compatible – integrates into the MPLAB IDE, MPLAB ICD and most 3rd-party development tools ? Runs on multiple platforms: Windows, Linux, UNIX, Mac OS X, Solaris Embedded Development Environment:PICC can be run entirely from the. This environment allows you to manage all of your PIC projects. You can compile, assemble and link your embedded application with a single step. Optionally, the compiler may be run directly from the command line, allowing you to compile, assemble and link using one command. This enables the compiler to be integrated into third party development environments, such as Microchip's MPLAB IDE. 5. 5 Embedded system tools: 5. 5. 1 Assembler: An assembler is a computer program for translating assembly language — essentially, a mnemonic representation of machine language — into object code.A cross assembler (see cross compiler) produces code for one type of processor, but runs on another. The computational step where an assembler is run is known as assembly time. Translating assembly instruction mnemonics into opcodes, assemblers provide the ability to use symbolic names for memory locations (saving tedious calculations and manually updating addresses when a program is slightly modified), and macro facilities for performing textual substitution — typically used to encode common short sequences of instructions to run inline instead of in a subroutine.Assemb lers are far simpler to write than compilers for high-level languages. Assembly language has several benefits: †¢ Speed: Assembly language programs are generally the fastest programs around. †¢ Space: Assembly language programs are often the smallest. †¢ Capability: You can do things in assembly which are difficult or impossible in High level languages. †¢ Knowledge: Your knowledge of assembly language will help you write better programs, even when using High level languages. An example of an assembler we use in our project is RAD 51. . 5. 2 Simulator: Simulator is a machine that simulates an environment for the purpose of training or research. We use a UMPS simulator for this purpose in our project. 5. 5. 3 UMPS: Universal microprocessor program simulator simulates a microcontroller with its external environment. UMPS is able to simulate external components connected to the microcontroller. Then, debug step is dramatically reduced. UMPS is not dedicated to only one microcontroller family, it can simulate all kind of microcontrollers.The main limitation is to have less than 64K-Bytes of RAM and ROM space and the good microcontroller library. UMPS provide all the facilities other low-cost simulator does not have. It offers the user to see the â€Å"real effect† of a program and a way to change the microcontroller family without changing IDE. UMPS provide a low-cost solution to the problems. UMPS is really the best solution to your evaluation. 5. 5. 4 UMPS key features: -The speed, UMPS can run as fast as 1/5 the real microcontroller speed. No need to wait 2 days to see the result of a LCD routine access.All the microcontroller parts are simulated, interrupts, communication protocol, parallel handshake, timer and so on. – UMPS have an integrated assembler/disassembler and debugger. It is able to accept an external assembler or compiler. It has a text editor which is not limited to 64K-bytes and shows keyword with color. It can a lso communicate with an external compiler to integrate all the debug facilities you need. – UMPS is universal, it can easily be extended to other microcontroller with a library. Ask us for toolkit development. – External resource simulation is not limited.It can be extended to your proper needs by writing your own DLL. – UMPS allows you to evaluate at the lowest cost the possibility to build a microcontroller project without any cable. – UMPS include a complete documentation on each microcontroller which describe special registers and each instruction 5. 5. 5 Compiler: A compiler is a program that reads a program in one language, the source language and translates into an equivalent program in another language, the target language. The translation process should also report the presence of errors in the source program. Source Program |> |  Compiler |> |Target Program | |   |   |v |   |   | |   |   |Error Messages |   |   | There are two parts of compilation. The analysis part breaks up the source program into constant piece and creates an intermediate representation of the source program. The synthesis part constructs the desired target program from the intermediate representation. 5. 5. 6 The cousins of the compiler are: 1. Preprocessor. 2.Assembler. 3. Loader and Link-editor. A naive approach to that front end might run the phases serially. 1. Lexical analyzer takes the source program as an input and produces a long string of tokens. 2. Syntax Analyzer takes an out of lexical analyzer and produces a large tree. Semantic analyzer takes the output of syntax analyzer and produces another tree. Similarly, intermediate code generator takes a tree as an input produced by semantic analyzer and produces  intermediate code 5. 5. 7 Phases of compiler: The compiler has a number of phases plus symbol table manager and an error handler.    |   |Input Source Program |   |   | |   |   |v |   |   | |   |   |Lexical Analyzer |   |   | |   |   |v |   |   | |   |   |Syntax Analyzer |   |   | |   |   |v |   |   | |Symbol Table Manager |   |Semantic Analyzer |   |  Error Handler | |   |   |v |   |   | |   |   |Intermediate Code |   |   | | | |Generator | | | |   |   |v |   |   | |   | Code Optimizer |   |   | |   |   |v |   |   | |   |   |Code Generator |   |   | |   |   |v |   |   | |   |   |Out Target Program |   |   | 5. 6 FABRICATION DETAILS The fabrication of one demonstration unit is carried out in the following sequence. ? Finalizing the total circuit diagram, listing out the components and sources of procurement. ? Procuring the components, testing the components and screening the components. ? Making layout, repairing the interconnection diagram as per the circuit diagram. Assembling the components as per the component layout and circuit diagram and soldering components. ? Integrating t he total unit, intertwining the unit and final testing the unit. CHAPTER 7 CONCLUSION The System RFID BASED ENERGY is developed and operated successfully in the laboratory. The prepaid energy meter was working properly and perfectly. The circuit having potential and current transformers which gives the power consumption in analog form. This is converted to digital and the converted one is again converted into KWH form i. e one unit. According to the tariff rates stored in the microcontroller, The consumed units and cost are displayed on the LCD. Future enhancements: Our project is just to caluculate the reading i. consumed power and caluculate the cost and then display the cost on the LCD. In future this circuit can also be used as a prepaid energy meter using a smart type arrangement. For we want to add a smart card reader and relay in extra. Due to this every customer has a smart card with some credits and after completing these credits we again go to EB and recharge the card. The energy meter reading can be send to the EB by implementing small kind of SCADA system, using this the readings can be straightly monitor by the EB. CODE: #include;pic. h; #include†lcd_16x4. c† __CONFIG(XT & WDTDIS & PWRTDIS & BORDIS & LVPDIS & WRTEN & DEBUGDIS & DUNPROT & UNPROTECT); void init(); oid ADC_VTG_CT(); void ADC_VTG_CT1(); void disp_meter(); void delay(); write_eeprom(unsigned char add,unsigned int data); unsigned int read_eeprom(unsigned char add); unsigned int i, j,bal,gsmcost, curt,vltg,crt,tmp,tmp1,k,fcrt,escp,cap_time,testeng,Engeeprom,tempvalue,ROTabv100=0,ROTupt100=0; bank2 unsigned char mill_count,tick1=0,h[15],rec=0; bank1 unsigned char sec, min,hr,check1,VHUDS,VTENS,VONES,CHUDS, CTENS, CONES,COLACK,COTENTH, ETHOD,EHUDS,ETENS,EONES,COTHOD,COHUDS,COTENS,COONES,EEONES,EETHOD,EETENS,EEHUDS,EELACK,EETENTH,unteeprom,unit,var=0,u11,u12,u13; unsigned char tm,tt,th,ctl; float cpwt1,cpwt2,Energy,Cost_engy,Cost; bit check_dev,card_present; ank2 unsigned char q t,msg,n,set1=0,set2=0,set3=0,set,set4=0,tab,cap,cap1,cap2,eeprom_erase_cnt; unsigned interrupt isr(void) { if(TMR1IF) { TMR1IF=0; mill_count++; //mill_count, scan_count, keypress, check, keyok,key if(mill_count;=25) { mill_count=0; sec++; if(sec;=59) { tick1=1; sec =0; ctl=1; min++; if(min;59) { min=0; hr++; if(hr;23) { hr=0; } } } }//mill_count }//TMR1IF if(RCIF==1) { h[rec]=RCREG; rec++; if(rec==12) { card_present=1; rec=0; } RCIF=0; } } void main() { init(); RC4=0; while(1) { lcd_move(0,0); lcd_puts(â€Å"Energy Meter†); RC4=0; if(card_present==1) { lcd_move(1,0); lcd_puts(â€Å"Recharged:†); if(h[9]==51) { lcd_move(1,10); lcd_puts(â€Å"Rs. 100†); or(j=0;j;=45000;j++); for(j=0;j;=45000;j++); gsmcost= 100; set1=1; card_present==0; lcd_clear(); } if(h[9]==56) { lcd_move(1,10); lcd_puts(â€Å"Rs. 50 â€Å"); for(j=0;j;=45000;j++); for(j=0;j;=45000;j++); gsmcost= 50; set1=1; card_present==0; lcd_clear(); } } while(set1==1) //&& SW==1) { //while(SW==1); lcd_mov e(0,0); lcd_puts(â€Å"Energy Meter†); COLACK =read_eeprom(0x00); COTENTH =read_eeprom(0x01); COTHOD =read_eeprom(0x02); COHUDS =read_eeprom(0x03); COTENS =read_eeprom(0x04); COONES =read_eeprom(0x05); Engeeprom = ((COLACK*100000)+(COTENTH*10000)+(COTHOD*1000)+(CHUDS *100)+(COTENS *10)+COONES); unteeprom =read_eeprom(0x06); ROTupt100 =read_eeprom(0x07);ROTabv100 =read_eeprom(0x08); disp_meter(); RC4=1; DelayMs(10); ADC_VTG_CT(); } while(set2) { lcd_move(0,0); //lcd_putn(check1); disp_meter(); ADC_VTG_CT1(); lcd_move(0,0); lcd_puts(â€Å"vtg:†); lcd_write(VHUDS+0x30); lcd_write(VTENS+0x30); lcd_write(VONES+0x30); lcd_move(0,8); lcd_puts(â€Å"crt:†); lcd_write(CHUDS+0x30); lcd_puts(â€Å". â€Å"); lcd_write(CTENS+0x30); lcd_write(CONES+0x30); RC4=1; DelayMs(10); if(curt) { tm = min – cap_time; //check1=1; if(min ; 58) { th++; } tt = (th*60)+tm; if(ctl==1) { ctl=0; //check1=2; Energy = ((vltg * curt *(float)tt)/100000); Energy = Energy*1000; testeng = (i nt)Energy; Energy = Energy/1000; Cost = Energy * cpwt1;Cost_engy = Cost + Cost_engy; bal = gsmcost – Cost_engy ; Cost_engy = Cost_engy*1000; Engeeprom = (int)Cost_engy; //bal = gsmcost – Engeeprom ; fcrt =bal; COLACK = fcrt/100000; fcrt=fcrt%100000; COTENTH=fcrt/10000; fcrt=fcrt%10000; COTHOD=fcrt/1000; fcrt=fcrt%1000; COHUDS=fcrt/100; fcrt=fcrt%100; COTENS=fcrt/10; fcrt=fcrt%10; COONES=fcrt; write_eeprom(0x00,COLACK); write_eeprom(0x01,COTENTH); write_eeprom(0x02,COTHOD); write_eeprom(0x03,COHUDS); write_eeprom(0x04,COTENS); write_eeprom(0x05,COONES); DelayMs(2); Cost_engy = Cost_engy/1000; if(Energy;0. 900) { Energy = 0; unit++; unteeprom = unit; write_eeprom(0x06,unteeprom); DelayMs(2); if(unit==100) { cpwt1 = cpwt2; nit = 0; } } } } else { set1=1; set2=0; lcd_clear(); } /*if(SW==1) { while(SW==1); RC4=0; set1=0; set2=0; lcd_clear(); } */ }//while(set2) }//while(1) }//main() void init() { TRISA = 0xFF; TRISB = 0xF0; TRISC = 0x80; PORTB = 0x00; ADCON1=0X82; GIE=PEIE= TMR1IE=RCIE=1; TMR1L=0X17; TMR1H=0XFC; SPBRG=25; BRGH=1; RCSTA=0X90; TXSTA=0X24; cpwt1 = . 4; Cost_engy = 0; unit = 0; unteeprom = 0; Engeeprom = 0; eeprom_erase_cnt=read_eeprom(0x10); if(eeprom_erase_cnt;5) { eeprom_erase_cnt=0; write_eeprom(0x10,0); write_eeprom(0x00,0); write_eeprom(0x01,0); write_eeprom(0x02,0); write_eeprom(0x03,0); write_eeprom(0x04,0); write_eeprom(0x05,0); } else { eprom_erase_cnt++; write_eeprom(0x10,eeprom_erase_cnt); } lcd_init(); //set1=1; T1CON=0X01; DelayMs(10); } void disp_meter() { if(set1) { lcd_move(1,0); lcd_puts(â€Å"U:†); lcd_putn(unteeprom); } if(set2) { fcrt =testeng; ETHOD=fcrt/1000; fcrt=fcrt%1000; EHUDS=fcrt/100; fcrt=fcrt%100; ETENS=fcrt/10; fcrt=fcrt%10; EONES=fcrt; lcd_move(1,0); lcd_puts(â€Å"E:†); lcd_write(ETHOD+0x30); lcd_puts(â€Å". â€Å"); lcd_write(EHUDS+0x30); lcd_write(ETENS+0x30); lcd_write(EONES+0x30); } lcd_move(1,8); lcd_puts(â€Å"C:†); if(COLACK) { lcd_write(COLACK+0x30); lcd_write(COTENTH+0x30); lcd_write(COTHOD+0x30); } else if(COTENTH) { lcd_write(COTENTH+0x30); lcd_write(COTHOD+0x30); //lcd_puts(â€Å". ); lcd_write(COHUDS+0x30); lcd_write(COTENS+0x30); //lcd_write(COONES+0x30); } else { lcd_write(COTHOD+0x30); lcd_puts(â€Å". â€Å"); lcd_write(COHUDS+0x30); lcd_write(COTENS+0x30); lcd_write(COONES+0x30); } /*********************AT COMMANDS********gsm energy meter coding********* if(tick1==1) { tick1=0; u11=unteeprom/100; u12=(unteeprom%100)/10; u13=unteeprom%10; sendtopc1(â€Å"AT†); TXREG=13; while(! TXREG); delay(); for(k=0; k