Introduction to Microcontroller Programming
About PICmicro Chips
Clocking Your PICmicro Devices E-Blocks Flowcode Step By Step
PICmicro Projects
Labs |
Labs /
Lab 2 - Delay1. Introduction
Microcontrollers are extremely fast. A PIC that is clocked with an Xtal of 20MHz will execute about 5,000,000 assembly instructions, every second. To let the PIC communicate with ‘slow’ humans, we will need to slow it down at certain times. This is done by adding a Delay instruction. 2. Setting up the equipment
3. Hardware settings
4. Flowcode and download settings
5. Software learning objectives
Output, Delay, Timing, binary code training, compiling a program to the PIC, clocking the PIC, PIC microcontroller basics. 6. Hardware learning objectives
LED’s, logic output levels, Multiprogrammer basics, speed of a microcontroller, time measurement with an oscilloscope. 7. Instructions
Construct the system shown from E-blocks. In the course navigate to the ‘Flowcode step-by-step’ and review the section on Basic Loops (step 4) and Decisions (step 7). In the course you will also find the sections on Clocking your PIC, and about PIC microcontroller basics useful. The descriptions of the multiprogrammer board and the led board are in the E-blocks section. Also make use of the Help-function in Flowcode to get the info you need. During these exercises you are going to send different 8-bit codes to port B of your Microcontroller. You'll learn how delays are used to slow the PIC down. Keep aware that your PIC microcontroller executes approximately at 5,000,000 assembly instructions per second and that the human eye in combination with the brain can only detect and understand approximately 3 stable images per second. 8. Labs
|