Question

In: Physics

write down discussion/result and application of the patient condition system by using PIC box when the...

write down discussion/result and application of the patient condition system by using PIC box when the question is displayed on the LCD the question is ''how you feel today?'' after that, we have three options 1 is very well 2 well 3 sick.

Solutions

Expert Solution

PIC box can be used for interfacing LCD Display
the first function should be to remove the lag 
void Lcd_Start()
{
  Lcd_SetBit(0x00);
  for(int i=1065244; i<=0; i--)  NOP();  
  Lcd_Cmd(0x03);
    __delay_ms(5);
  Lcd_Cmd(0x03);
    __delay_ms(11);
  Lcd_Cmd(0x03); 
  Lcd_Cmd(0x02); //02H is used for Return home -> Clears the RAM and initializes the LCD
  Lcd_Cmd(0x02); //02H is used for Return home -> Clears the RAM and initializes the LCD
  Lcd_Cmd(0x08); //Select Row 1
  Lcd_Cmd(0x00); //Clear Row 1 Display
  Lcd_Cmd(0x0C); //Select Row 2
  Lcd_Cmd(0x00); //Clear Row 2 Display
  Lcd_Cmd(0x06);
}

To set the cursor use the function so that the cursor is in specific domain to print at particular space in LCD

void Lcd_Set_Cursor(char a, char b)
{
    char temp,z,y;
    if(a== 1)
    {
      temp = 0x80 + b - 1; //80H is used to move the cursor
        z = temp>>4; //Lower 8-bits
        y = temp & 0x0F; //Upper 8-bits
        Lcd_Cmd(z); //Set Row
        Lcd_Cmd(y); //Set Column
    }
    else if(a== 2)
    {
        temp = 0xC0 + b - 1;
        z = temp>>4; //Lower 8-bits
        y = temp & 0x0F; //Upper 8-bits
        Lcd_Cmd(z); //Set Row
        Lcd_Cmd(y); //Set Column
    }
}

to print the values for 1.Very well

2.well

3.sick

use the function:

void Lcd_Print_Char(char data)  //Send 8-bits through 4-bit mode
{
   char Lower_Nibble,Upper_Nibble;
   Lower_Nibble = data&0x0F;
   Upper_Nibble = data&0xF0;
   RS = 1;             // => RS = 1
   Lcd_SetBit(Upper_Nibble>>4);             //Send upper half by shifting by 4
   EN = 1;
   for(int i=2130483; i<=0; i--)  NOP(); 
   EN = 0;
   Lcd_SetBit(Lower_Nibble); //Send Lower half
   EN = 1;
   for(int i=2130483; i<=0; i--)  NOP();
   EN = 0;

here as we neeed not display the string in output hence we can avoid the function for string printing.We have to just display the numeric fields in output.


Related Solutions

Create a schematic of a circuit using and write C program to run on a PIC...
Create a schematic of a circuit using and write C program to run on a PIC 16F88 that will flash between a red and green LED at 5Hz with the green on 75% of the time and the red on 25% of the time.
Which condition would result in invalidating and application of break-even analysis? 1. The variable cost to...
Which condition would result in invalidating and application of break-even analysis? 1. The variable cost to produce a unit is within one percent of sale price 2. The purchasing department both offera quantity discounts to customers ans receives quantity discounts from suppliers 3. The variable cost to produce a unit is less that one percent of the fixed cost to run the plant
Write down your own verbal description for a dynamical system, and write down the equations for...
Write down your own verbal description for a dynamical system, and write down the equations for the dynamical system. (It is fine if this system is very simple! It is also fine if the scenario is not very realistic, as long as the equations match the description!)   
Write down the Samuelson’s condition for the optimal provision of a public good. Use an example...
Write down the Samuelson’s condition for the optimal provision of a public good. Use an example to explain your understanding of it.
(3). Write down the Samuelson’s condition for the optimal provision of a public good. Use an...
(3). Write down the Samuelson’s condition for the optimal provision of a public good. Use an example to explain your understanding of it.
Write down the condition for thin film interference. Calculate the position (angular) and the distance between...
Write down the condition for thin film interference. Calculate the position (angular) and the distance between the 3rd and 4th dark lines of the interference pattern on the screen when the slits are spaced 0.450 mm apart and are placed 80.0 cm from the screen. The slits are illuminated with coherent light of wavelength 550nm. Also calculate the distance between the 3rd and 4th dark lines when the entire apparatus was immersed in water. How this separation compares with separation...
Choose an application domain. Choose an App to develop in the domain. Write these down. domain...
Choose an application domain. Choose an App to develop in the domain. Write these down. domain :(a) Public Health / Persuasion for Mask Wearing or Public Health / Mass Vaccination Initiative, if possible , For concrete use cases and scenarios, personalize or customize the best, most suitable, appropriate choice for a specific class or segment of users or end-users.
write down the java code for garden sprinkler system.
write down the java code for garden sprinkler system.
Write down all body wires that will be placed on patient in a Polysomnography (PSG).
Write down all body wires that will be placed on patient in a Polysomnography (PSG).
Derive the steady state cornering equation. And write down the condition for neutral steer. #Subject VEHICLE...
Derive the steady state cornering equation. And write down the condition for neutral steer. #Subject VEHICLE DYNAMICS
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT