Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: phijun

Search: Search took 0.00 seconds.

  1. Replies
    23
    Views
    1,599

    I will change my test program so speed doesn't...

    I will change my test program so speed doesn't matter



    cnt = 0;
    while (cnt < BUFFERED) {
    if (Serial1.available()) {
    val = Serial1.read();
    DBG(":");
    DBG(val, HEX);
  2. Replies
    23
    Views
    1,599

    FYI The flush/available behavior can also be...

    FYI
    The flush/available behavior can also be shown with a standard Serial test program.
    Without DELAY defined, there are errors en Teensy 4.0, for example
    Count Error 6
    At that speed with default...
  3. Replies
    23
    Views
    1,599

    Perhaps a word about why a reliable single wire...

    Perhaps a word about why a reliable single wire serial with tx/rx reversal API
    in Teensyduino 'out of the box' could be a plus versus Arduino.

    Many hobby Remote Control manufacturers (Jeti,...
  4. Replies
    23
    Views
    1,599

    New version of code, better display, and change...

    New version of code, better display, and
    change int show = 1; to int show = 0;
    shows only errors.



    #define SPEED 9600
    #define BUFFERED 8
    #define BIT9
    #define DELAY 10
  5. Replies
    23
    Views
    1,599

    With #define SPEED 9600 #define BUFFERED ...

    With
    #define SPEED 9600
    #define BUFFERED 64
    #define BIT9
    and adding a delay(100) after the Serial1 or 2 .flush() and the &= 0x1ff it's ok, just a bit puzzled by the need of the delay().

    ...
  6. Replies
    23
    Views
    1,599

    It's SERIAL_9O1 because the real device is using...

    It's SERIAL_9O1 because the real device is using this.
    Using the &= 0x1ff is ok, but I think the parity bit(s) aren't supposed to be returned by read().
  7. Replies
    23
    Views
    1,599

    And in 9bit mode write and read do not match...

    And in 9bit mode write and read do not match expected 0x101, read 0x301

    Teensy 4.0 9bit Serial Single Wire with reversal test
    setMode:Serial2:TX
    setMode:Serial1:RX
    Write...
  8. Replies
    23
    Views
    1,599

    Almost. There is a remaining problem with either...

    Almost.
    There is a remaining problem with either flush() that seems not being synchronous or a bug in the below code
    Using 8bit or 9bit shows same behavior, here is 8bit.

    Note
    There is #define...
  9. Replies
    23
    Views
    1,599

    Will try, many thanks.

    Will try, many thanks.
  10. Replies
    23
    Views
    1,599

    Hi, trying to do something similar, in 9 bit...

    Hi,
    trying to do something similar, in 9 bit mode, single wire TX2 pin connected to TX1 pin, code working is below.
    But I need to add a periodic reverse direction
    - TX2 ----> TX1
    - Reverse...
  11. Teensy 4.0 : enable/disable Serial receiver

    Is it possible to do something similar as done for Teensy 3.2/3.5/3.6 described here:
    https://github.com/Sepp62/JetiExBus/blob/master/TeensyReadme.txt
    with a teensy 4.0 ?

    - Serial asynchronous...
  12. Replies
    4,367
    Views
    557,905

    oops, thanks

    oops, thanks
  13. Replies
    4,367
    Views
    557,905

    FYI 1.46-beta9 + regular installer 1.8.9...

    FYI
    1.46-beta9 + regular installer 1.8.9
    "Checking Arduino 1.8.8:
    version: "lib/version.txt" wrong version: 1.8.9 Does not match Arduino 1.8.8
    "
  14. Replies
    4,367
    Views
    557,905

    There is a single compile warning in 1.46-beta9...

    There is a single compile warning in 1.46-beta9 when setting to All, may be could be removed in next beta ?

    C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\Stream.cpp: In member...
  15. Replies
    20
    Views
    6,494

    got it, many thanks

    got it, many thanks
  16. Replies
    20
    Views
    6,494

    Please what's is the link for 1.46-beta5 ? Thanks

    Please what's is the link for 1.46-beta5 ?
    Thanks
Results 1 to 16 of 16