PML's Blog – January 2011 Archive (1)

Sample codes for stepper motor

list p=16f877                 ; list directive to define processor      

#include <p16f877.inc>        ; processor specific variable definitions    

 __CONFIG _CP_OFF & _WDT_OFF & _BODEN_ON & _PWRTE_ON & _HS_OSC & _WRT_ENABLE_ON & _CPD_OFF & _LVP_ON

 

 

cblock 0x20

 COUNTH

  COUNTM

  COUNTL

endc



         ORG       0x0000     ;RESET vector must…

Continue

Added by PML on January 19, 2011 at 10:46pm — No Comments

© 2024   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service