Microcontrollers and Embedded Systems with pic18f458 using c language (lab asg)

for both activity program pic18f458 with c language

* need the circuit in proteus and the c code

 ACTIVITY 1:

Write a program using Timer0 to generate a 500 Hz square wave frequency on one of the pins of PORTB. Then examine the frequency using the oscilloscope. Modify the count value to make sure that the frequency is exactly 500 Hz.

 

ACTIVITY 2:

Write a program using Timer1 to generate a 1 kHz square wave frequency on one of the pins of PORTB. Then examine the frequency using the oscilloscope. Modify the count value to make sure that the frequency is exactly 1 kHz.

 

 

 

ACTIVITY 3:

Write a program using Timer0 to generate a 1 kHz and 2 kHz square wave frequencies on one of the pins of PORTB. Connect a switch to a pin on PORTB and use it to select the frequency. Then examine the frequencies using the oscilloscope. Modify the count value to make sure that the frequencies are exact.

 

Place Similar Order Now!

  • Our Support Staff are online 24/7
  • Our Writers are available 24/7
  • Most Urgent order is delivered with 6 Hrs
  • 100% Original Assignment Plagiarism report can be sent to you upon request.
[order_calculator]