Professional Documents
Culture Documents
*All the related libraries can be found in the MPLAB C18 Libraries
Example 3
Write a C program to toggle all the bits of PORTB
(delay function library)
Time Delays using the delays.h
• To determine the time generated by the delays.h
functions use the following equation.
4
= instruction time, TCY
Clock Frequency
/AN9
/AN8
/AN10
RA7/
*We will be using this config settings throughout this course unless stated or otherwise
End of Chapter 1