answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: C program to generate a frequency of 100khz on p1.3 using timer1 mode0?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What does a flasher circuit in a ladder logic program look like?

Timer1 Timer2 Done Timing ---|/|---------|/|---------[Timer On - Timer 1]--- Timer2 Timer1 Done Timing ---|/|---------|/|---------[Timer On - Timer 2]--- Timer1 Timing Flash --| |--------------------( )------- Adjust the preset time for timer1 to change your "flash on" duration. Adjust the preset time for timer2 to change your "flash off" duration.


What does the 'does not exist in current context' error mean in c sharp?

It means you are trying to modify an entity from outwith the scope of that entity. The following shows an example: public void button1_Click(object sender, EventArgs e) { int x = 42; timer1.Start(); } public void timer1_Tick(object sender, EventArgs e) { if (x==42) // error: x does not exist in current context { // do something... } } Here, the x variable is declared local to the button1_Click event. That is; it is scoped to that function and is only accessible within the context of that function. The timer1_Tick event is a separate function, outwith the scope of the button1_Click event. As such, the timer1_Tick function cannot access x. In order for both functions to access variable x, that variable must be declared in a scope that is accessible to both functions. Given that both functions are members of the same class, it would make sense to declare x at class scope: int x = 0; public void button1_Click(object sender, EventArgs e) { x = 42; timer1.Start(); } public void timer1_Tick(object sender, EventArgs e) { if (x==42) { // do something... } } Note that the point of declaration defines the scope of the declared entity and that the scope defines the context in which that entity is visible.


How do you block a moving image in visual basic 6.0?

Visual Basic provides a large variety of graphics operation by which we can make an application with graphics. In traditional languages graphics are usually distinguished from est, but in VB every thing placed on form is considered as to be graphical that is the reason that we specify the left, top, currentS, currentY properties for allmost the controls based on form. There for we can also move an image in the visual basic's Form. For this we can use the property of that image is Left, Top. The Left property of image says it to move left or right side. When we increament the Left property value then it moves in right of its current location while when we decreament the Left Property value then it moves in left of its current location. For example- We take a timer on the form and set its following property Interval=1000 Enabled=True Name= Timer1 Also take a image on form with the help of image control and set its property- Left=100 top=100 name=image1 Code for moving an image on the form Private Sub Timer1_timer() image1.Left=image1.Left + 100 image1.Top=Image1.Top + 100 End Sub This effect on the form , The image move the left-up-corner to right-down-corner.


Related questions

What does a flasher circuit in a ladder logic program look like?

Timer1 Timer2 Done Timing ---|/|---------|/|---------[Timer On - Timer 1]--- Timer2 Timer1 Done Timing ---|/|---------|/|---------[Timer On - Timer 2]--- Timer1 Timing Flash --| |--------------------( )------- Adjust the preset time for timer1 to change your "flash on" duration. Adjust the preset time for timer2 to change your "flash off" duration.


No of interrupts of 8051 excluding reset?

1.The excluding interrupts are INT0 & INT1 2.The Timer0 and Timer1 are interrupts are generated by TF0 and TF1


What does the number 16F877A in PIC stands for?

"16" is probably for some 16-bit operations (Timer1, Capture, Compare, PWM modules). "F" maybe stands for Flash Memory. The other symbols have no rational explanation.


What does the 'does not exist in current context' error mean in c sharp?

It means you are trying to modify an entity from outwith the scope of that entity. The following shows an example: public void button1_Click(object sender, EventArgs e) { int x = 42; timer1.Start(); } public void timer1_Tick(object sender, EventArgs e) { if (x==42) // error: x does not exist in current context { // do something... } } Here, the x variable is declared local to the button1_Click event. That is; it is scoped to that function and is only accessible within the context of that function. The timer1_Tick event is a separate function, outwith the scope of the button1_Click event. As such, the timer1_Tick function cannot access x. In order for both functions to access variable x, that variable must be declared in a scope that is accessible to both functions. Given that both functions are members of the same class, it would make sense to declare x at class scope: int x = 0; public void button1_Click(object sender, EventArgs e) { x = 42; timer1.Start(); } public void timer1_Tick(object sender, EventArgs e) { if (x==42) { // do something... } } Note that the point of declaration defines the scope of the declared entity and that the scope defines the context in which that entity is visible.


How do you block a moving image in visual basic 6.0?

Visual Basic provides a large variety of graphics operation by which we can make an application with graphics. In traditional languages graphics are usually distinguished from est, but in VB every thing placed on form is considered as to be graphical that is the reason that we specify the left, top, currentS, currentY properties for allmost the controls based on form. There for we can also move an image in the visual basic's Form. For this we can use the property of that image is Left, Top. The Left property of image says it to move left or right side. When we increament the Left property value then it moves in right of its current location while when we decreament the Left Property value then it moves in left of its current location. For example- We take a timer on the form and set its following property Interval=1000 Enabled=True Name= Timer1 Also take a image on form with the help of image control and set its property- Left=100 top=100 name=image1 Code for moving an image on the form Private Sub Timer1_timer() image1.Left=image1.Left + 100 image1.Top=Image1.Top + 100 End Sub This effect on the form , The image move the left-up-corner to right-down-corner.


Does the amount of fat in ice cream affect it's melting time?

Question:How does the amount of fat in Dryers vanilla ice cream affect how fast the ice cream completely melts?Variables:Changed/manipulated: Amount of fatMeasured/responding: How fast the ice cream completely meltsControlled: How much ice cream, same brand, ingredients, or flavor, and same shape when scooped onto a plate.Prediction:I predict that the more fat in ice cream the slower it will melt because when I eat something really fatty I walk slower.Materials:1 half gallon of vanilla ice cream1 timer1 stop watch1 ¼ measuring cup2 plates1 half gallon of slow churned vanilla ice creamProcedure:Scoop out exactly ¼ cup of each ice cream and make sure they have the same amount of ice cream in eachPut ice cream on platesSet plates side by side on the same tableStart the timerCheck ice cream every 20 minutesWhen either ice cream melts and has no chunks, stop timerMeasure and record the time it took for the ice cream to meltRepeat steps 3-7 for 2 more trials with new ice creamRepeat the experiment!Conclusion:My prediction was wrong. Looking at the data the average time it took for low fat ice cream to melt 47 minutes and 63 seconds but high fat ice cream melted an average of 43 minutes and 81 seconds. I now know that high fat ice cream completely melts faster than low fat/slow churned ice cream because in my investigation 43 minutes and 81 seconds is faster than 47 minutes and 63 seconds.