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

Search:

Type: Posts; User: DougMcK

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    754

    Yes, I understand the issues with the while loop...

    Yes, I understand the issues with the while loop and clocking out the data. That's all working fine in my real program. (My test was just a very stripped down example. )

    I guess there's just no...
  2. Replies
    5
    Views
    754

    Thanks for the reply. (volatile uint8_t i fixed)....

    Thanks for the reply. (volatile uint8_t i fixed).

    I'm not sure I follow. Are you saying that the first byte of the slave message should always be ignored? That seems a bit surprising.

    I get...
  3. Replies
    5
    Views
    754

    This library has been helpful to me, thanks! ...

    This library has been helpful to me, thanks! But, I'm unable to get past some behavior related tolatency.

    Here's what I'd like to do:
    The master sends the slave a command. The slave processor...
  4. @KurtE No doubt there's a lot of confusion, and...

    @KurtE
    No doubt there's a lot of confusion, and I certainly get confused. But, my point is that there *are* devices that implement MISO and MOSI, but this isn't one of them... MISO and MOSI are...
  5. What you say is fine, if the Teensy is being used...

    What you say is fine, if the Teensy is being used in Master mode and, like I said, in the Arduino/Teensy world the Arduino/Teensy is usually the master.

    But if the Teensy is being used in Slave...
  6. Yes, but a pin that is SDO in *both* master and...

    Yes, but a pin that is SDO in *both* master and slave mode is neither MOSI nor MISO. These are not just different, synonymous, names for the same thing.

    I also understand that most people use the...
  7. Teensy 3.6 MOSI/MISO pin names wrong, should be SDO and SDI (IMHO)

    Greetings!

    I've been learning about SPI in slave mode for the Teensy 3.6. I've been making some progress with Tonton81's libraries (TSPISlave and SPI_MSTransfer) and there's some discussion about...
  8. Replies
    1,848
    Views
    140,097

    Right, post 1839 didn't mention LC, and indeed...

    Right, post 1839 didn't mention LC, and indeed I'm only looking at T 3.6 and the reference manual for the MK66. I only mentioned the LC because Tonton did, and I remembered from Tonton's readme for...
  9. Replies
    1,848
    Views
    140,097

    Sorry, I don't think I follow. I realize the LC...

    Sorry, I don't think I follow. I realize the LC is different from T3 and I thought the LC is correct. Having data flow into a pin labelled MISO while in slave mode is just perverse. No aspersions...
  10. Replies
    1,848
    Views
    140,097

    Maybe I've answered my own question. MK66 Pin...

    Maybe I've answered my own question.

    MK66 Pin PTE1 and PTE3 can have their SPI1_SIN and SPI1_SOUT functions exchanged, BUT the Teensy 3.6 uses MK66 pins PTB16 and PTB17 for SPI1 data, and it...
  11. Replies
    1,848
    Views
    140,097

    Right, I think we are saying the same thing. In...

    Right, I think we are saying the same thing. In this implementation MISO goes to MOSI and MOSI goes to MISO. pins 11 -> 12 and 12 -> 11.

    In normal SPI MISO goes to MISO and MOSI goes to MOSI.
    ...
  12. Replies
    1,848
    Views
    140,097

    I hope this question isn't too off-topic, but...

    I hope this question isn't too off-topic, but this thread likely is inhabited by people who know the answer (eg tonton81).

    I gather that the connections between Teensy's needs to be MISO -> MOSI...
  13. Replies
    18
    Views
    377

    Frank, yes, I agree it looks correct now in my...

    Frank, yes, I agree it looks correct now in my testing too. I'm not really using T4 SPI, but I'm glad my observation may have helped you fix something.
    Thanks very much,
    Doug
  14. Replies
    18
    Views
    377

    I was just looking at the NXP MK66 datasheet,...

    I was just looking at the NXP MK66 datasheet, because I'm really more focused on the T3.6 SPI interface for now. The spec for data setup time is 15.8nS, so that timing shown in your figure is right...
  15. Replies
    18
    Views
    377

    Yikes! While that might work ok in many...

    Yikes! While that might work ok in many environments it looks to me like it's being timed from the wrong edge...
  16. Replies
    18
    Views
    377

    Hmm, I can't see your attachment...

    Hmm, I can't see your attachment...
  17. Replies
    18
    Views
    377

    I reproduced your example, but try sending 0x70...

    I reproduced your example, but try sending 0x70 instead. I think that shows the problem.

    19503
  18. Replies
    18
    Views
    377

    T4 SPI mode0 transmit bug?

    Greetings!

    I've been diving into SPI recently and I wonder if I may have found a bug with the SPI library as implemented for the T4? In SPI mode 0 the data are sampled on the rising edge of the...
  19. Hi, I, too, ended up by ordering a custom front...

    Hi,
    I, too, ended up by ordering a custom front panel. It was a little more "industrial" than sleek but that was fine for the project. I used front panel express and just glued the display behind an...
  20. That's good to know. I'll be watching with...

    That's good to know. I'll be watching with interest. Pulling them off Teensy 2 boards is *not* an appealing approach!

    Regards,
    Doug
  21. Teensy 2.0 chips (Atmega 32U4) available in VQFN package?

    Greetings!

    I'm not sure what's the best forum for this question. It's really just for PJRC to answer, I think.

    I have a very small board that uses the Atmega 32U4 chip, and is working fine. I'd...
  22. Paul, I will see if I can recreate the problem...

    Paul, I will see if I can recreate the problem with a minimal version of my program, and then include a link to the problematic terminal emulator(s). It most likely won't be today, though..
    doug
  23. If I have a failure (not seen on arduino serial...

    If I have a failure (not seen on arduino serial monitor, only on other programs) it typically shows up as missing values in the printed table, or missing characters. Sometimes, the transfer just...
  24. Well, that's interesting. Running MaxUSB.ino on...

    Well, that's interesting. Running MaxUSB.ino on my surface pro 4 windows 10 PC I record a pretty reliable count of around 83,000 counts if I use the Arduino serial monitor.
    The other terminal...
  25. Indeed I could. In this particular case there is...

    Indeed I could. In this particular case there is no problem with the slowdown caused be relatively long delays, and this (ugly) workaround is fine.
    I am more interested/concerned about whether there...
  26. Paul, thanks for your offer to investigate. ...

    Paul, thanks for your offer to investigate.
    This problem is not causing me serious grief right now because it seems the workaround of inserting a delay(1) after each row of output suppresses the...
  27. That snippet is executed once, in response to an...

    That snippet is executed once, in response to an external command. So, in testing, at most only once every few seconds.
    If I insert a delay(1) after every row of output, it seems to work ok. (Seems...
  28. Is teensyduino serial monitor somehow special? Problems with other terminal programs.

    I have a program running fine on a Teensy 3.6. One function is to print a table of values to the USB/serial port for display on the host PC. I cannot ever seem to induce a problem viewing the result...
  29. Hi MatadorMac, When will you be able to sell me...

    Hi MatadorMac,
    When will you be able to sell me a bezel??

    I found a way to have a thin gloss black polycarbonate bezel made for a few hundred dollars in tooling and a few bucks per copy. I only...
  30. Old thread, but I have the same question. Has...

    Old thread, but I have the same question. Has anyone found a bezel than can be used with this display? The kind of thing I'm thinking of would adhere to the top of a box and cover the inevitable gap...
  31. It seems like this is one of the modules that...

    It seems like this is one of the modules that needs it! Thanks, Doug
  32. That was it! (I should have tried that earlier)....

    That was it! (I should have tried that earlier).
    I had been simply tying Reset high because of the connection table on the PJRC product page and assuming it was required only for special...
  33. Hmmm, I'm only getting a blank, white, screen...

    Hmmm, I'm only getting a blank, white, screen when I use the above definitions (and hookup appropriately!). The only difference I have is TFT_RESET 255, because I have that pin tied to 3.3V. (I did...
  34. Yes, I'll aim to get that going today. Thanks,...

    Yes, I'll aim to get that going today.
    Thanks,
    Doug
  35. I'm trying to add the display to an existing...

    I'm trying to add the display to an existing board that has SPI1 available. SPI0 would require a layout change (which could be done, if really required).
    If SPI1 is just a bad option, then I'll not...
  36. Greetings all! I'd like to use the TFT color...

    Greetings all!
    I'd like to use the TFT color display on SPI1 on a Teensy 3.6 project.

    Am I right in thinking that I should be using the KurtE library? Can anyone point me towards any examples...
  37. Ha! I reckon I've figured it out. It's fixed...

    Ha!
    I reckon I've figured it out. It's fixed now. I believe the problem was simply that the details of the slightly different loop caused us to move over the boundary to the next uS. The...
  38. I've figured out a bit more about this, but am...

    I've figured out a bit more about this, but am not understanding what's going on.

    I have a very simple "state machine" in checkFancyHBLED which flashes an LED in a more "heartbeat" like way. (My...
  39. OK, thanks. I'll dig into it further and strip...

    OK, thanks. I'll dig into it further and strip things down to the minimum. I'll report back either with an explanation or a minimal program.
    Doug
  40. Teensy 3.6 micros() rate depends on digital output state??

    Greetings experts!

    I have found something a bit surprising and I thought I'd ask to see if this is a known phenomenon.

    I have a program that illuminates a "heartbeat" LED for 120mS every...
  41. Replies
    62
    Views
    8,558

    I've primarily just been using "Blink" to test...

    I've primarily just been using "Blink" to test this.
  42. Replies
    62
    Views
    8,558

    Unfortunately, I can't test that easily. In a...

    Unfortunately, I can't test that easily. In a terrible fit of impatience I soldered the Teensy into my PCB with pins, rather than waiting for the parts to socket it... These pads are impossible to...
  43. Replies
    62
    Views
    8,558

    Did anyone figure out how to delay boot, *and*...

    Did anyone figure out how to delay boot, *and* allow for USB programming? I know how to deploy the project, but I've got lots of development to do still, and for testing I'll frequently need the...
  44. Ah, yes. Of course. If it doesn't even boot, who...

    Ah, yes. Of course. If it doesn't even boot, who knows what state it's in. I suppose the watchdog timer isn't really for looking after hardware flakyness..

    I'll just go with the cap to hold it in...
  45. Well, I've used a cap to hold it in reset, which...

    Well, I've used a cap to hold it in reset, which seems to be solid, but I'd still be really interested to learn about other approaches.

    In particular, I'd be very interested to see an example of...
  46. Do I need to hold Teensy 3.6 in Reset during powerup?

    Greetings Experts!

    I've found some posts relating to this issue, but not yet the definitive answer, I think.

    It seems to me that Teensy 3.6 cares about the start-up characteristics of the...
  47. That explains it! Thanks. Doug

    That explains it! Thanks.
    Doug
  48. Basic question regarding pins A21, A22 on Teensy 3.6 and Teensyduino

    Greetings experts!
    I apologize for the basic nature of this request, but I'm not finding the answer elsewhere.

    If I want to set pins A21 and A22 of the Teensy 3.6 to be digital inputs, what pin...
Results 1 to 48 of 49