View previous topic :: View next topic |
Author |
Message |
DaveMorris
Joined: 13 Oct 2003 Posts: 7 Location: Stourbridge, England
|
Can PIC18F26K40 (28 pin device) support 2 UARTS |
Posted: Thu Jul 03, 2025 10:08 am |
|
|
Hi
Can someone please confirm if the 18F26K40 support 2 UART - The data sheet is a little confusing as it suggest its supports two EUSARTs but in the pin allocation table for the 28 pin devices it only shows TX1 , RX1 etc and no reference to TX2 or RX1 - Unless obviously I am miss reading the tables
Thanks in advance
Dave |
|
 |
dyeatman
Joined: 06 Sep 2003 Posts: 1958 Location: Norman, OK
|
|
Posted: Thu Jul 03, 2025 1:10 pm |
|
|
It looks like to me you have to PPS assign TX2 and RX2 somewhere to
use them since they don't show in the pin map. They are both defined
in the header file and chip editor so I would try it to see what happens.
Be sure to turn of any other function on the pins you select..that's
bitten me a couple of times. _________________ Google and Forum Search are some of your best tools!!!! |
|
 |
temtronic
Joined: 01 Jul 2010 Posts: 9501 Location: Greensville,Ontario
|
|
Posted: Thu Jul 03, 2025 2:43 pm |
|
|
from the data sheet(took a bit...)...
The RXx/DTx and TXx/CKx input pins are selected with the RXxPPS and TXxPPS registers,
respectively. TXx, CKx, and DTx output pins are selected with each pin’s RxyPPS register.
....
dang nab 'new chip' to me , has PPS ! |
|
 |
|