
Originally Posted by
manjero
Thanks Raflex but it still doesnt work. when i use this program with the simulator it gets nothing - the stepper motor isnt even getting ready and all PORTB is not an output.
when i used the original code - i saw the motor getting ready (green) but when i pressed the button - it didnt do anything.
anyone?
Check the configuration fuses, mclr, internal or external osc, etc:
Code:
@ DEVICE pic16F648a, INTRC_OSC_NOCLKOUT
' System Clock Options (HS_OSC, INTRC_OSC, INTRC_OSC_NOCLKOUT)
@ DEVICE pic16F648a, WDT_OFF
' Watchdog Timer
@ DEVICE pic16F648a, PWRT_OFF
' Power-On Timer
@ DEVICE pic16F648a, MCLR_OFF
' Master Clear Options (External)
@ DEVICE pic16F648a, BOD_ON
' Brown-Out Detect
@ DEVICE pic16F648a, LVP_OFF
' Low-Voltage Programming
@ DEVICE pic16F648a, CPD_OFF
' Data Memory Code Protect
@ DEVICE pic16F648a, PROTECT_OFF
' Program Code Protection
Bookmarks