Hi All,
I've recently tried the DISCONNECT command on my 14M2 for the first time as i needed to use the Serin/C.5 pin as a standard digital input.
At the beginning of my code i use:
However, i noticed that C.5 needs to be held LOW during bootup for my program to run correctly.
If pin C.5 is high/floating, then my code does not work.
I found on google/AI that it states that the C.5 pin does need to be held low during bootup, which (to me) is unacceptable as i cannot always guarantee that C.5 will be in a low state when that signal is coming from another logic chip which might be randomly hi/low during the instance that the picaxe bootsup.
At the moment, Pin C.5, C.4, C.3, C.2 have 4 bits from a hexadecimal rotary switch for testing purposes, but later, those 4 bits will be read from an external logic device.
I noticed that:
If the hex switch is in position 0-7, the picaxe/program will boot and run correctly, as Pin C.5 is LOW and boots correctly. (Hex switch MSB=low)
If the hex switch is in position 8-15, the picaxe/program will *NOT* boot and run correctly, as Pin C.5 is now HI. (Hex switch MSB=high)
Am i completely missing something? or is it true that pin C.5 (even though it's disconnected) still actually requires a LOW (or pulldown resistor) to boot correctly?
Regarding the DISCONNECT command, I also noticed that if i try to re-program the 14M2 (after it's been disconnected), then it won't allow programming as it's still disconnected, so i have to briefly break the power to the 14M2 before the programmer can access the chip again.
I *think* i need to try this code at the beginning??:
with thanks in advance...
I've recently tried the DISCONNECT command on my 14M2 for the first time as i needed to use the Serin/C.5 pin as a standard digital input.
At the beginning of my code i use:
Code:
Pause 3000 ; allow 3 seconds before disconnecting, just in case i need to re-program the 14M2
disconnect ; disable the Serin mode, to use C.5 as a digital input.
However, i noticed that C.5 needs to be held LOW during bootup for my program to run correctly.
If pin C.5 is high/floating, then my code does not work.
I found on google/AI that it states that the C.5 pin does need to be held low during bootup, which (to me) is unacceptable as i cannot always guarantee that C.5 will be in a low state when that signal is coming from another logic chip which might be randomly hi/low during the instance that the picaxe bootsup.
At the moment, Pin C.5, C.4, C.3, C.2 have 4 bits from a hexadecimal rotary switch for testing purposes, but later, those 4 bits will be read from an external logic device.
I noticed that:
If the hex switch is in position 0-7, the picaxe/program will boot and run correctly, as Pin C.5 is LOW and boots correctly. (Hex switch MSB=low)
If the hex switch is in position 8-15, the picaxe/program will *NOT* boot and run correctly, as Pin C.5 is now HI. (Hex switch MSB=high)
Am i completely missing something? or is it true that pin C.5 (even though it's disconnected) still actually requires a LOW (or pulldown resistor) to boot correctly?
Regarding the DISCONNECT command, I also noticed that if i try to re-program the 14M2 (after it's been disconnected), then it won't allow programming as it's still disconnected, so i have to briefly break the power to the 14M2 before the programmer can access the chip again.
I *think* i need to try this code at the beginning??:
Code:
reconnect ; Reconnect the programming access, since the chip was previously disconnected....
Pause 3000 ; allow 3 seconds to check if the programmer is trying to update the chip (no need to remove power now?)
disconnect ; NOW disable the Serin mode, to use C.5 as a digital input and let the chip bootup and run its program....
with thanks in advance...