Pins as Serial port and "digital output" possible? (Itsy Bitsy M0)

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Mandel
 
Posts: 11
Joined: Wed Oct 26, 2022 10:25 am

Pins as Serial port and "digital output" possible? (Itsy Bitsy M0)

Post by Mandel »

Hi :)

I have the following problem. I have PB08 and PB09 configured to act as a serial port (SerialD). This works also quite well. But for my application I need to set PB08 to LOW for a few seconds every now and then. digitalWrite doesn't seem to work when the pin is configured as serial port. I tried to use SerialD.write and send a null byte. But then there is the start and stop bit which is HIGH and interrupts the LOW signal.
Is there any way to set the TX pin of the serial port to LOW for some seconds and get the function after that?

Thanks for your help! :)

User avatar
Mandel
 
Posts: 11
Joined: Wed Oct 26, 2022 10:25 am

Re: Pins as Serial port and "digital output" possible? (Itsy Bitsy M0)

Post by Mandel »

Is it possible to use registers to directly access the pin functions while they are configured as serial ports?

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”