Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

PyPortal Pin 3&4 Uart issues
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

PyPortal Pin 3&4 Uart issues

by ddrboxman on Sun Aug 30, 2020 1:56 am

I have a PyPortal and have wired up an input to pin 4 in an attempt to use it as a uart connection so that I can read midi data. I'm using the Arduino environment and after reading through the docs and looking at the data sheet I believe that this should be the correct configuration.

Code: Select all | TOGGLE FULL SIZE
Uart mySerial (&sercom0, 4, 3, SERCOM_RX_PAD_1, UART_TX_PAD_0);
void SERCOM0_Handler()
{
  mySerial.IrqHandler();
}


My current issue is the second any data hits that pin stops the program stops executing.

Hoping someone can get me unstuck, thanks!

(I've also attached my code below)
Attachments
main.cpp
(2.68 KiB) Downloaded 3 times

ddrboxman
 
Posts: 9
Joined: Tue Dec 02, 2008 3:33 am

Re: PyPortal Pin 3&4 Uart issues

by mikeysklar on Mon Aug 31, 2020 11:09 am

Hello ddrboxman,

I apologize for not having a more direct solution, but I think that SERCOM0 would not be a good choice to use with the PyPortal (ASAMD51J20). The schematic shows QSPI_DATA lines tied to SERCOM0 which is 8MB of flash storage in this case.

Please take a look at the schematic:

https://cdn-learn.adafruit.com/assets/a ... 1551215147

I'm thinking that SERCOM{3, 4 or 5} might be viable solutions.

mikeysklar
 
Posts: 1958
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.