Using alternate pin number for USART #897
Answered
by
hmeijdam
mayurharge
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
hmeijdam
Jan 17, 2023
Replies: 2 comments 1 reply
-
Serial.swap();// use this to set the TXD*/RXD* to their alternate pins |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mayurharge
-
Serial.swap(1) see Ref.serial
…____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore: Arduino support for almost every ATTiny microcontroller
Contact: ***@***.***
On Tue, Jan 17, 2023, 08:43 Mayur Harge ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/42429307/212913350-d1c2f4e3-0334-4fed-89f9-c8d1ed884d5d.png>
this is the snippet for datasheet of attiny1607,
as per datasheet we can use PA1 and PA2 as hardware serial0 pins
in file pins_arduino.h there is provision for pin swapping
PIN_HWSERIAL0_TX_PINSWAP_1
I am not able to understand how to enable these pins as my primary serial
please let me know how to achieve this
—
Reply to this email directly, view it on GitHub
<#897>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEWZ3OM3FCTQNWCMUZCLWS2OYBANCNFSM6AAAAAAT54DVQQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Serial.swap();// use this to set the TXD*/RXD* to their alternate pins