Quote Originally Posted by lerameur
wow shift-alt, thats cool.

I am still confused about one part. The default selection from the compiler is great but very specific for me. Lets say you are using the Pic16F877, with port A, B, C,D,
I then use the command serout, IS there a problem using the exact port?
Ex: serout portC.2,N9600,[3]
instead of 2,N9600,[3] . ( by which I know the pin number, but I dont know the port)
For me it looks like its taking a random port, obviously , the one by default...

ken
Hi Ken,
No it's better to specify PortA or PortB or . . . than just serout 2,N9600. I have only seen serout 2,N9600 used as port B, I think it is a throwback to PBasic and not the pro that still works in Pro,maybe for basic stamps, the PBasic cannot use the Pro sytax which allows you to specify the port. I only use the full name of ports so I do not allow myself to get sloppy, I am not a good enough programmer to ALLOW sloppy, I think generally speaking you can serout on any "I/O" pin which can be made digital, possible exception A.4 or 5 and IT may work with ext. pullup.
Joe