Rotate 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 = %00000001
    Dlay100
    PortB = %00000010
    Dlay100
    PortB = %00000100
    Dlay100
    PortB = %00001000
    Dlay100
    PortB = %00010000
    Dlay100
    PortB = %00100000
    Dlay100
    PortB = %01000000
    Dlay100
    PortB = %10000000
    Dlay100
    PortB = %01000000
    Dlay100
    PortB = %00100000
    Dlay100
    PortB = %00010000
    Dlay100
    PortB = %00001000
    Dlay100
    PortB = %00000100
    Dlay100
    PortB = %00000010
    Dlay100
  goto Main
  End.
PIC Home Previous Page Next Page Next Chapter