I think I know the answer to the following question, but feel obliged to ask on here to ensure I have investigated all options.
From the Microchip datasheet for the 08M2
http://ww1.microchip.com/downloads/en/DeviceDoc/41441B.pdf
However, the 'PICAXE M2 chip summary' sheet dashed this hope as, in there, c.5 is input only
I confirmed this with
and
both returning compiler errors
(Interestingly,
does not return a compiler error, which initially gave me some hope)
I am so close to completing this project with an 08M2, but need one more output.
My I/O requirements are:
DS18B20 - currently connected to c.4
Bit bang serial input/output - currently connected to c.1
Serial clock output - currently connected to c.0
Serial strobe output - currently connected to c.2
I need one more digital output for a relay. There are two I/O pins still available on the 08M2 but both seemingly input only.
I know I can move up to an 18M2 and the problem would be solved. But, I just wanted to check with the experienced hands on here there is no way to keep this project in a 08M2?
From the Microchip datasheet for the 08M2
http://ww1.microchip.com/downloads/en/DeviceDoc/41441B.pdf
I concluded I could use c.5 as an output pin (c.3 is the input only pin)Peripheral Highlights:
• 5 I/O Pins and 1 Input Only Pin:
However, the 'PICAXE M2 chip summary' sheet dashed this hope as, in there, c.5 is input only
I confirmed this with
Code:
output c.5
Code:
high c.5
(Interestingly,
Code:
dirsc = %00110111
I am so close to completing this project with an 08M2, but need one more output.
My I/O requirements are:
DS18B20 - currently connected to c.4
Bit bang serial input/output - currently connected to c.1
Serial clock output - currently connected to c.0
Serial strobe output - currently connected to c.2
I need one more digital output for a relay. There are two I/O pins still available on the 08M2 but both seemingly input only.
I know I can move up to an 18M2 and the problem would be solved. But, I just wanted to check with the experienced hands on here there is no way to keep this project in a 08M2?