Pullup-resistor for serial connection?

Powersoft

New member
Hello,
I am a fresh owner of a Teensy 4.1.
I wont connect the Teensy 4.1 to an Pic24 controller (Scamp3 with flash-forth), over the serial pin 7,8.
Speed 500kBaud or higher.
I’m confused. Do I need pull-up resistors for this connection?
If yes, what is the value?

Cheers
Jan
Hellevoetsluis-NL
 
Hello,
Indeed, Serial2 uses pins 7 & 8 on T_4.1 - and there should be no need for a 'Pullup-resistor', at least for the Teensy to do its part.

The voltage level from the Pic24 has to be at 3.3 V and there should be no problem connecting at a baud rate the Pic24 can use at or above 500Kbaud.

Link was included but this hackaday.io/page/9468-scamp-a-forth-based-embedded-computer leads to this tindie.com/products/johncatsoulis/scamp/ that seems to match. Don't see 3.3V versus 5V declaration - but the silkscreen is populated with 3.3V pins.
 
Teensy does not require a pullup resistor for hardware serial. I can't say for sure about PIC24, but generally most microcontrollers don't require pullup resistors.

But if the 2 boards are connected through a cable that might be unplugged, you may desire to have a pullup resistor to 3.3V on receive pins of both sides, so they won't hear any random interference when the cable is disconnected.

Of course the signals need to be 3.3V logic on both sides. Teensy 4.1 is not 5 volt tolerant. I don't know much about PIC24, but my limited understanding is it's one of the newer PIC architectures. The very old ones were all 5 volts.


Speed 500kBaud or higher.

Please for your own sanity, start with a slower baud rate just for the sake of getting the connection tested. Then increase once you have known-good communication.

Teensy 4.1 (32 bit dual-issue CPU) at 600 MHz with programming in C++ can usually handle 500 kbit/sec serial with ease. If your code does other work and ignores incoming serial data for short times, you can increase the buffer for incoming bytes with Serial2.addMemoryForRead(). While your program's design matters quite a lot, generally speaking this sort of speed is pretty easy on Teensy 4.1.

But what sort of speed you can reasonably expect from PIC24 (16 bit CPU) at 32 MHz running an interpreted language is difficult to say. Opinions vary regarding Forth. Some people are huge fans. If any of them are reading, maybe they can give you an idea of what sort of serial communication speed can be reasonably expected? But even with C language, the PIC24 side is likely to be the speed limiting part.
 
Back
Top