Search results

  1. S

    LPSPI stops after about a second

    Hi all, Not a Teensyduino question, but I have a Teensy 4.1 that I'm investigating from the NXP MCUXpresso environment. I have successfully initialised all the GPIOs and UARTS and written code to do so by selecting the IOMUXC and pins and calling their individual "init" functions. I have written...
  2. S

    Learning the Peripheral Register Programming Model of the Teensy 4.1

    Hi Sicco, I just copied and pasted the whole module into the Arduino environment, and it compiled and ran on the first try!! There are crucial configurations in there that I wanted to extract and try by themselves, particularly the ETC mechanism to trigger the ADC from a timer interrupt and...
  3. S

    Learning the Peripheral Register Programming Model of the Teensy 4.1

    Hi Neurofrantic, I'm still waiting for the board. Meanwhile, I have been looking at the stuff Paul linked above. Your sentiments are well appreciated here:- There is no doubt about this score. Paul is the most obliging individual, and I have scanned his and other's GitHub code repositories...
  4. S

    Learning the Peripheral Register Programming Model of the Teensy 4.1

    Hi @Neurofrantic - this is very sensible advice, and $120 USD is a small amount to pay for this. I have worked with the Eclipse IDE and the STM32 framework over the last few years, and I liked the insight the 'MX' tool gave to programming peripherals, where the necessary setting to make some...
  5. S

    Learning the Peripheral Register Programming Model of the Teensy 4.1

    Hi Paul, I have been looking at the "IMXRT.h" file in detail, and I think I may have understood some of the clever things you have done here. This is simply a query to see if I 'have it' at some elementary level. Firstly - you start by listing all the base addresses of the register-groups...
  6. S

    Learning the Peripheral Register Programming Model of the Teensy 4.1

    Mark, this is GOLD. I have had a browse, and it has all the things I was wondering about examined and unpacked. The GPIO MUX registers and how that relates to pin access, etc., how to deal with DMA, and how to imagine it put together - are all here. This feels great. I really appreciate it. The...
  7. S

    Learning the Peripheral Register Programming Model of the Teensy 4.1

    Hi all, Your examples and Paul's guidance are great stuff. I have a solid weekend of review now. Thanks so much. I'll get stuck into it and share any success (less loquaciously). This processor is worth the effort and time investment. I'm going to start with Paul's suggestion to kick off the...
  8. S

    Learning the Peripheral Register Programming Model of the Teensy 4.1

    Thanks so much, Paul. The power of this thing enthuses me. It's enormous. I have spent a few nights agog at the detailed reference manual and its details (from your site). As ever, these things seem daunting at the start, so it's going to be a case of chewing it and looking and chewing some...
  9. S

    Learning the Peripheral Register Programming Model of the Teensy 4.1

    Guys, I'm looking at the support code for the Teensy in the Arduino libraries, and I wanted to use the ADC to set up a DMA into a buffer at a fixed acquisition rate, say 10kHz to start with, at 12-bit resolution. Nothing too demanding. For example, when I try to decipher the programming model...
  10. S

    Teensy 4.1 Interrupt, SPI and DMA documentation

    This is perfect for understanding the SPI, DMA, and interrupt functions I have been looking for. Thanks for this. Steve
  11. S

    Assembly

    Thanks, Denis. Can you imagine being able to do that FFT on an old Z80/8051 running at 4Mhz? My mind is still boggling. I also remember spending way too much money on a co-processor for my first 8080 PC, which had the full complement of 640K RAM and a 10Mbyte hard drive? (Will I ever fill that...
  12. S

    Assembly

    Hello Denis, I read your post about wanting to use other environments to program the Teensy, and it resonated with a little of my experience while returning to the world of microcontrollers again after 30 years. I hope you don't mind the discussion/intrusion. I don't have your background (well...
  13. S

    digitalWrite and digitalWriteFast

    Thanks Paul, I'll sort these items out and have another look. 1) I guess "write fast" must now be in the main library, so there is no need to include it explicitly. 2) Noted, too, about variable scope(s)! Earlier, I did a separate non-looped test (one sketch with digitalWrite() and another...
  14. S

    digitalWrite and digitalWriteFast

    Hi all, digitilWrite() and digitalWriteFast comparison: I have been playing around with Teensy 4.1 and noticed that there isn't a material difference between digitalWrite() and digitalWriteFast(). I set up a simple loop test, repeating a pin toggle on pin13 (LED_PIN) 100,000 times to see if...
  15. S

    Quadrature encoder mode Teensy 4.1

    Hi Clinker8, Sorry about the vagueness. I'm dealing with the porting of some already-written code. This is not about encoders or really about an 'issue'. Perhaps I should have begun another thread! It's more about understanding how Teensy deals with serial data incoming and the way Teensy Serial...
  16. S

    Quadrature encoder mode Teensy 4.1

    I decided to let Teensy manage RTS. That seems to have fixed the blocking problems and I'll just rearrange things to deal with it that way for now. Stevo
  17. S

    Quadrature encoder mode Teensy 4.1

    Hi Clinker8, I'm back from the trip away and spending some time porting some of my code across the Teensy4.1. I wondered if it is possible to get access to the actual interrupt handler attached to Serial1? From what I can see, the interrupt and buffering of same, is hidden. Each call to...
  18. S

    Quadrature encoder mode Teensy 4.1

    Beautiful stuff! I'll be surely taking you up on that. I have to go away on work-related tasks for a few days, so I'll be offline for a bit. My first desire is to measure scales reliably (I have a VEVOR DRO and such, but that's just the start) |My real thinking is to converge on a CNC-type...
  19. S

    Quadrature encoder mode Teensy 4.1

    Thanks for the link(s)! I'll have an in-depth read. There's a lot more goodness in there than just the encoder material, at a cursory glance. Kind regards, Steve
  20. S

    Quadrature encoder mode Teensy 4.1

    Thanks, BriComp, I had a scan just now. My intuition is that each channel only has 16-bit timers for this function. In the early days, I fiddled with the 16-bit encoder mode counters on the STM32 series, trying to catch the overflow on each encoder rotation or 16-bit count, until I found the...
  21. S

    Quadrature encoder mode Teensy 4.1

    Hi all, Very new here. As a hobbyist stretching back to the 80's, I have dealt with EPROM erasers, ZIF sockets and lines of EPROMS. I have sat there gobsmacked at processors like Z80/NSC800, 8085 SDK from Intel, built a bunch of 8051 and Phillips automotive derivatives - PCB80C552 - plus...
Back
Top