ROBODYSSEY SYSTEMS LLC
Product Catalog
Code Page
Policies
Gallery
Whats New
Press Releases
Resources
Links
Contact Us
About Us
Press
Educators Page
BasicX and Robotics book
After School
Mini Challenge!
Free Robots to Kids
Hack-A-Toy
Shopping Cart
Page5_2
Home Product Catalog Shopping Cart Resources Links
Code Page Policies Gallery

Wave with a PIC16F628(A)

PIC Home Previous Page Next Page Next Chapter

Page: 1 2

Believe it or not, it is the exact same circuit.

Copy and pastable code


Be sure to create a new project first.
For a review of creating projects please go here
Paste BELOW your program name!
PROGRAM NAME CREATED VIA NEW PROJECT!!
COPY AND PASTE FROM NEXT LINE DOWN
'*********************
Sub Procedure Dlay100
Delay_ms(100)
End Sub
'*********************
Main:
    TrisB = %00000000 'Configure pins of PortB as Output
    PortB = 1
    Dlay100
    PortB = 3
    Dlay100
    PortB = 7
    Dlay100
    PortB = 15
    Dlay100
    PortB = 31
    Dlay100
    PortB = 63
    Dlay100
    PortB = 127
    Dlay100
    PortB = 255
    Dlay100
    PortB = 127
    Dlay100
    PortB = 63
    Dlay100
    PortB = 31
    Dlay100
    PortB = 15
    Dlay100
    PortB = 7
    Dlay100
    PortB = 3
    Dlay100
  goto Main
  End.
PIC Home Previous Page Next Page Next Chapter

Page: 1 2

Robodyssey and the Robodyssey logo are trademarks of Robodyssey Systems, LLC
PIC is a registered trademark of Microchip Technology Inc. in the U.S. and other countries.
MikroBasic is a registered trademark of mikroElectronika Inc. in the U.S. and other countries.
Home Product Catalog Shopping Cart Resources Links
Code Page Policies Gallery