This lecture covers analog and digital I/O with PIC microcontrollers. It discusses analog to digital conversion (ADC) which is used to convert analog voltage inputs to digital values. The PIC16F877A has an 10-bit ADC with 8 channels. Functions for initializing and reading the ADC are presented. The first project involves using a temperature sensor and the ADC to measure and display temperature on an LCD. Pulse width modulation (PWM) for analog outputs is also discussed. The PIC16F877A has 2 PWM channels that can be initialized and have their duty cycle set using functions. The second project controls a fan speed using PWM and a variable resistor. The lecture ends with time for questions.