123 Pic Microcontroller Experiments For The Evil Geniuspdf Verified Guide
Experiment #8: Flashing an LED at a Specific Rate Using a Delay Loop
BSF STATUS, RP0 ; Bank 1 MOVLW 0x00 MOVW TRISB ; Port B all outputs BCF STATUS, RP0 ; Bank 0 Loop BSF PORTB, 0 ; LED ON CALL Delay ; Wait BCF PORTB, 0 ; LED OFF CALL Delay GOTO Loop
Delay MOVLW 0xFF MOVWF Count1 D1 MOVLW 0xFF MOVWF Count2 D2 DECFSZ Count2 GOTO D2 DECFSZ Count1 GOTO D1 RETURN
If you have located a PDF version, a "verified" copy usually includes:
Summary: This book is considered a classic in the PIC community because it balances theory with immediate practical application ("Build it and see it work"). Experiment #8: Flashing an LED at a Specific
Myke Predko's "123 PIC Microcontroller Experiments for the Evil Genius" offers a progressive, hands-on guide for learning PIC microcontrollers, covering topics from basic LED blinking to advanced serial communication. The book teaches programming in both C and Assembly language, utilizing inexpensive hardware for projects like reaction-time testers and motor control. Access the full digital copy for free on the Internet Archive Amazon.com 123 Pic Microcontroller Experiments For The Evil Genius
Lets you monitor up to 8 different internal variables (e.g., temperature, counter value, state machine step, error flags) using just 1 I/O pin and a single LED or buzzer — without a serial terminal. BSF STATUS, RP0 ; Bank 1 MOVLW 0x00
The book uses a building-block approach. Each experiment adds one new concept, starting from LED blinking and ending with advanced projects like a frequency counter or robot control.