MikroElektronika PIC Microcontrollers PIC16 User Manual Page 99

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 98
Here is a simple example of a for loop used for emitting hex code on PORTB for
7-segment display with common cathode. Nine digits will be printed with one sec-
ond delay, by incrementing the counter.
for i = 1 to 9
portb = i
delay_ms(1000)
next i
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
94
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
Example
Page view 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 171 172

Comments to this Manuals

No comments