Search results

  1. F

    Multithreading on Teensy 3.2?

    Standard Arduino is coming from 8 bit controllers, where multithreading is a large overhead. So you can't expect that everything is based on multithreading by default. The multi threading library is included in the Teensy software. Look under "Teensy Threads" in the library folder. Just look at...
  2. F

    Teensy 4.0 CAN-FD pin direction and pad connection

    This is different with most CAN transceivers. Connecting TX with TX and RX with RX is right with the normal CAN on Teensy 3.x, too. On transceivers like MCP.... or TJA.... the input is called TX. Others like SN65.... use the pin names D and R instead of TX and RX.
  3. F

    Teensyduino 1.49 Released

    Maybe it should be "QuadEncoder" instead of "QuadTimer" ? I think the encoder library is new in 1.49 and not in the news list.
  4. F

    LIN bus

    Hello, maybe this can help https://github.com/macchina/LIN The code seems to be for some kind of Arduino Due clone, but it's using only Serial and digitalWrite. So modification for a Teensy should be possible. Don't forget to use a LIN transceiver chip for interfacing.
  5. F

    FlexCAN library used on Teensy

    Well, I think simply receiving ISO-TP is a use case for FlexCAN's attachObj feature. A class acting as a state machine seems to be a good solution for this. Sending is much more complicated. It must follow the timing and wait requests coming from the receiving side. Using Arduino delay is not a...
  6. F

    Teensy 3.6, Flexcan lib, dual canbus

    Hello, most of my CAN work uses Teensy 3.2, so I had to set up a Teensy 3.6 with two transceicers first to check the example. But I can say the "CANTest" example included with Teensyduino 1.40 does work for me. The library included in Teensyduino is an older version of the Collin80 library...
  7. F

    Is there a list of timers (and other peripherals used)?

    Hello, look here https://forum.pjrc.com/threads/25395-Teensy-Quick-Reference-Code-Examples-Tips-and-Tricks under "What Timers are available?" SysTick is for Arduino millis() and sure one of (or the only ?) "do-not-touch" timers.
  8. F

    CAN project sanity check

    I have no experience with this slow baudrates on real CAN busses. Only with 125000 and above. Maybe you wil have to test different libraries, I'm not shure if anybody tested the baudrate calculation for this speed. Edit: But 16 MHz / 960 = 16666 so this Baudrate seems to be possible, when I...
  9. F

    CAN project sanity check

    The format CAN frames itself is an ISO standard. There are CAN 2.0A and CAN 2.0B messages, with 11 or 29 Bit identifiers. (And CAN FD messages, but not on Teensy.) So the bit format on the line, including checksum, is fixed. The identifiers and the data bytes are completely free for the...
  10. F

    CAN project sanity check

    Well, it's typical for CAN that already the hardware interprets and selects data. Imagine a car where dozens of controllers share thousands of messages every second on the bus. Not every controller needs to read and understand all this data. A small chip controlling a lamp may be only...
  11. F

    CAN project sanity check

    Hello, Good question. :) I'am currently using the version included in Teensyduino. It seems to be an older version of the collin80 fork of the library. The collin80 fork is already some versions ahead. https://github.com/collin80/FlexCAN_Library Together with this fork...
  12. F

    FlexCAN library used on Teensy

    Ok, if I'll find some time I will look after this. The mbed version is currently based on mbed multithreading, so the first step is to decide about a redesign.
  13. F

    FlexCAN library used on Teensy

    Ok, that's good to know. I've planned to move my ISO-TP work from mbed to Teensy. Are you going to make a second post or should I try it ?
  14. F

    FlexCAN library used on Teensy

    I wondered about this, too, when doing my last CAN experiments with my small test setup. But it worked without errors for simple communication between two microcontrollers. Perhaps your request is better seen, if you post in in the Teensyduino Beta thread on top of the forum. Or post below...
  15. F

    FlexCAN library used on Teensy

    The included version of the library in 1.37 seems to be the "9af9498 on 10 Jan" github version from collin80. Both FlexCAN.cpp have 749 lines and look the same. I haven't used a diff tool.
  16. F

    Strange looking limit checks in Teensy3 Version of Stream.cpp

    Thanks for your answer, yes that's exactly what I mean. The String object and its internal length ist growing in this line. But the variable with name "length" isn't, because it's nowhere changed in the loop. I think while (str.length() < max) { is what is realy meant there. But anyway tho...
  17. F

    Strange looking limit checks in Teensy3 Version of Stream.cpp

    Hello, when looking around how Serial is implemented, I stopped at this piece of code in Stream.cpp String Stream::readString(size_t max) { String str; size_t length = str.length(); while (length < max) { int c = timedRead(); if (c < 0) { setReadError(); break; // timeout }...
Back
Top