I have a question about the Shiftout command in PBP3. Here is the command:
SHIFTOUT DataPin, Clockpin, Mode, [Var]
I understand the variable is taken and the bits are shifted out one at a time through DataPin, under the timing of Clockpin. What is Clockpin? If it's the internal clock, how does one relate this parameter (Clockpin) to it? Hardwire? Softwire? Eg, on a 16F887 there is a Clockout pin (pin 14). Do I have to physically tie this to a port input for Clockpin or is there a way to access it internally?
In examples I've seen Clockpin was equated to a port pin, eg PortA.0. In this case is PortA.0 an input to which you apply the clock?
And finally the book says Clockpin may be a constant or a variable. I don't understand the constant bit, but for a variable does this mean I can toggle Clockpin high/low to act as an asynchronous clock?
thanks
Bookmarks