Page 1 of 1

invalid pin configuration designator

Posted: 06 May 2013, 17:10 PM
by wwwoholic
I've being re-compiling some old working programs with new compiler and stumbled upon this:
option PortD "PTPTTTTT"
Warning: invalid pin configuration designator for bit 0 (1)

I admit this is rather valid warning, as pins in question are used as serial I/O for programming.

My question is this - if old program worked fine then either compiler ignored my configuration or bootloader simply reconfigured pins on startup. Will program compiled with new compiler work the same?

Re: invalid pin configuration designator

Posted: 06 May 2013, 18:51 PM
by dkinzer
wwwoholic wrote:Will program compiled with new compiler work the same?
It should. When the ZBasic startup code runs, the rx and tx pins for Com1 are configured as input and output, respectively. This overrides any pin configuration that might have been done (when allowed by the older compiler).