
Originally Posted by
scalerobotics
Code:
DEFINE OSC 20 'define crystal speed. This is 20 mhz
include "bs1defs.bas" 'lets you use definitions same as Basic Stamp 1
Hi,
No,No ... error this code has been written for a 4 Mhz Pic or BS1 ... ( pulsout units are 10µs ! )
No need any "DEFINE OSC " then ...
nor "bs1defs" ... as pins are " genuine numbered " by PBP
Other project error : Pic and Servos MUST NOT share the same supply ... if you want them to work properly ...
and R2 / R4 might get their supply from +5 v ... NO MORE !
In other words ... soft may be Ok, as Mel states ... but not Hardw. !!!
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks