AVR DB series and re-assigning the MISO pin after setting up HW SPI?
I have a 28-pin (DIP) AVR 128 DB 28 micro and I am running a couple of little tests on this new-to-me micro and Bascom.
I am running the uC on 3V and using the DUAL power supply option, so that Port C is actually running on 5V.
On this somewhat limited pin count DIP Chip there are only 4 I/O pins, (PortC), that run on the dual voltage, (+5V in this case).
PortC.0 = SPI MOSI
PortC.1 = SPI MISO
PortC.2 = SPI Sck
PortC.3 = SPI CS\
I currently have an SPI based 7-Segment LED display running on the Hardware Port C SPI module.
That works fine.
The display is an input only device, and doesn't feed any data back to the micro on the MISO pin.
I would like to use that "spare" MISO pin as a general purpose 5V I/O pin.
The question is: Can I re-configure the PortC.1 MISO Pin as a general purpose Output pin after the HW SPI is configured, or is that pin solely committed to the HW SPI module?
I have tried re-configuring the pin, after configuring the HW SPI module, but that doesn't appear to work.
I think that the pin is committed to the HW SPI module.
I --> thought <-- that I had done this before, on an older AVR.
If anyone has successfully done this I'd like to know, as then I at least know it is doable if I get my code right.
If anyone has tried this in their language of choice and it also fails, that is depressing but reassuring at the same time.
I'd post "a small compilable working example" but:
My program is in Bascom.
It is running on a Beta version that will support the AVR DB series.
So I doubt any other Freaks have the Beta compiler to test the program on.
Also, the question is really about whether anyone else's compiler can actually re-configure the AVR DB series SPI MISO pin as a general purpose output after configuring the HW SPI module, (so my Basic program wouldn't likely be too helpful).
I could ask MicroChip Support, but in the past I have had difficulty getting a specific answer to my specific questions.
I usually get a better answer here!
Any insight, or ideally an "Of course its possible" answer, would be appreciated!