Search results

  1. K

    DAC analogWrite Limitation

    I'm way late on this, but I just ran into the same situation as Jake. Jake, were you using AGND, or DGND? Works perfectly for me with DGND, but for AGND, full output will be 0 to ~2.19V. To test, I ran the example script from https://www.pjrc.com/teensy/teensy31.html under '12 Bit Analog...
  2. K

    PDB0CH1 register definitions

    Thank you, Paul!
  3. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    Hmm - after thinking on it, the watchdog status doesn't matter to me, but I would prefer to shut the LED off. I'll likely keep the watchdog in - as you said, it can't hurt. I'm not adding anything additional into the code, so I was going to keep the offset you came up with. I have a little...
  4. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    Mark, Thanks for the advice. Here's my changes so far. I've tested all of the defined pins, although I didn't run through every combination. Have a few more things to change, mostly the offset and watchdog, and then will put this on github in case people would like to try it on their Teensy...
  5. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    For anyone reading along, it seems that the reason for the above problem is that the preprocessor does not expand macros recursively except in certain situations, as detailed here, with a workaround...
  6. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    Oh, I see what you ran into. I ran into it face first as well. In kinetis.h, line ~9142: #define _CONFIG_DRIVE_PORT_OUTPUT_VALUE(ref, pins, value, chars) SIM_SCGC5 |= SIM_SCGC5_PORT##ref; fnConnectGPIO(PORT##ref, pins, chars); GPIO##ref##_PDOR = ((GPIO##ref##_PDOR & ~(pins)) | (value))...
  7. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    Success! Went through your diffs and have it working with the default SPI0 pins. Working on adding your defines in for the different boards, although I might change them up a bit to allow for more flexibility. Will post a quick-start guide detailing the changes I had to make in case someone...
  8. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    Excellent, I'm digging through it now. The diff looks fine to determine the changes to make. I'll report back and get a little guide of sorts posted once I get it running. I should also note that I had your compiled version up and running immediately, works perfectly.
  9. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    To update, I also double checked that the target processor was a cortex-m4. Did you have to reduce the clock speed to 48MHz?
  10. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    Believe so - "${uTaskerLinkerScripts}/K_256_64.ld" for the Teensy 3.1.
  11. K

    Update files on SD Card through Teensy without removing card or reprogramming Teensy

    Wow, that would be incredible. Having a relatively easy way to add USB-MSD to a data logger is extremely attractive. Color me very interested. I've been trying to get my own USB-MSD up and running but have not been making a lot of progress. I'd definitely appreciate even a diff of your...
  12. K

    Visual identification of Teensy?

    If you look on the main (largest, 64 LQFP) chip of the Teensy 3.1 vs 3.0, there will be a marking that will tell you which it is. Top line, Teensy 3: MK20DX128 Second line, Teensy 3: VLH5 Top line, Teensy 3.1: MK20DX256 Second line, Teensy 3.1: VLH7 Students shouldn't have a problem seeing...
  13. K

    Supercap for RTC?

    As a jump-off point for the rechargeable battery route, you could try something like this: http://www.digikey.com/product-detail/en/MS412FE-FL26E/728-1053-ND/1889204
  14. K

    _reboot_Teensyduino() vs. _restart_Teensyduino()

    It's all there, the loop is empty since code should never get there. The definition of WRITE_RESTART is defined before setup(), #define WRITE_RESTART(val) ((*(volatile uint32_t *)RESTART_ADDR) = (val))
  15. K

    Can't use LPTMR0 on teensy 3.0.

    Try this, although trying to read LPTMR0_CNR will likely still read 0, it will trigger the interrupt at the period you specify in compare_value. int compare_value; void setup(){ compare_value = 500; pinMode(5, OUTPUT); INIT_LPTMR_INT(); } void loop(){ asm("WFI"); } void...
  16. K

    PDB0CH1 register definitions

    Hi Paul, Haven't seen this anywhere else yet - but I'm looking through Teensyduino 1.18 rc3 and don't see register definitions for the PDB triggering of ADC1. From page 757 of the K20 reference manual. If these definitions are already in your register definitions somewhere, could you point me...
  17. K

    new to me: cout streaming for Teensy 2, 3

    A little trick I learned as a replacement for the delay(5000) at the start of your code: while(!Serial){} Though, it's a poor choice if you would like it to run independently of having to open the serial monitor! Also, I think a similar function to this exists in the SDFat library, for those...
  18. K

    PDB ADC 'bursting'?

    It strikes me that I should post some code. It will run consecutive conversions on the 6 channels listed in channels[]. It's not robust, so be careful if you decide to modify it for your own use. //From http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf // Page 174 // Various...
  19. K

    PDB ADC 'bursting'?

    ... for lack of a better term. I've been playing around with the programmable delay block, coupled with DMA and the ADC to read 6 channels, switching out the ADC0_SC1A for each sample to enable converting different pins. I'd like to sample those 6 channels as fast as possible, considering them...
  20. K

    Teensyduino 1.18 Release Candidate #2 Available

    Quick question - are those SD speed ups patched in to the standard SD library? I know it's a long shot, but do you have a general idea of how it compares to the 'stock' SD library and/or the SD fat library? Perhaps I'm missing a post somewhere, if so, I'd love a spin in the right direction...
  21. K

    Teensy 3.1 Changes To Green PCB

    Any chance you could point us in their direction? Always interested in quality fabricators.
  22. K

    MK20DX128VLH5 vs. MK20DX256VLH7 drop in replacement?

    Great news! Thank you Paul. Looking forward to the upgrade. I'll make a post once I receive my boards and have time to run some preliminary and rough power consumption tests.
  23. K

    MK20DX128VLH5 vs. MK20DX256VLH7 drop in replacement?

    Hi all, Producing my own circuits using the MK20DX128VLH5 with Pauls Mini54 bootloader, and looking forward to switching over to the new MK20DX256VLH7 once they come in stock (MCU behind the Teensy 3.1). Looking at the datasheet, it looks like the VLH7 is a pin for pin replacement with no...
  24. K

    _reboot_Teensyduino() vs. _restart_Teensyduino()

    Nifty little trick I learned here on the forum to easily blink a light. From my experience with it, seems it is possible to call digitalRead on an output. Data downloaded via software serial over USB from the microSD card to a host computer. I currently have the restart set to run every time...
  25. K

    _reboot_Teensyduino() vs. _restart_Teensyduino()

    Hi Paul, I had some time to work with your above points, and have successfully rebooted both my custom boards and normal Teensy 3.0 boards using the below code. Required writing to the SYSRESETREQ bit. The program is rough, and doesn't follow the normal register conventions of offsets and...
  26. K

    _reboot_Teensyduino() vs. _restart_Teensyduino()

    Good point about the M0, that would be fantastic. Correct with respect to fault tolerance - these boards aren't going into anything related to functional safety. Pure data acquisition and logging boards. My concern is that running these continuously for 6 months is a difficult usage case to...
  27. K

    _reboot_Teensyduino() vs. _restart_Teensyduino()

    Paul, Thanks for the reply, I'll look into the documentation you kindly provided and report back. Fortunately, I would be calling the software reset after the USB is disconnected so I don't think that will be a major issue.
  28. K

    _reboot_Teensyduino() vs. _restart_Teensyduino()

    I love the watchdog timer chip - that would be more robust than a purely programmatic reboot request. I saw in the MK20 documentation that it has an internal watchdog timer, I will have to look into that as well. Thanks for the idea! In the meantime though, I'd like to get the restart...
  29. K

    _reboot_Teensyduino() vs. _restart_Teensyduino()

    Apologies, example code: Don't leave it running, it results in a reprogram loop every 5 seconds. Replacing _reboot_Teensyduino_(); with _restart_Teensyduino_() results in an error. void setup(){ // Note, nonstandard Teensy 3 output LED pin. pinMode(5, OUTPUT); digitalWrite(5, HIGH)...
  30. K

    _reboot_Teensyduino() vs. _restart_Teensyduino()

    Hello all! Question based on previous question located here: http://forum.pjrc.com/threads/23776-Teensy2-0-Software-Reset Does the _restart_Teensyduino_() method exist for the Teensy3? I see it located in core_pins.h, but I get an error when trying to compile an example sketch with it...
  31. K

    Low Power "Green" Battery Operation Solutions For The Teensy 3.

    Do you have an idea of how long it takes to wake up from low power modes, using an internal wakeup source? The MK20 ref has a statement saying that external wakeup sources take around 5 cycles of the LPO (1kHz) clock (3 for glitch filtering, 2 for sync), but don't mention that same time...
  32. K

    MAC Address, PGMONCE question, and COM port specification

    Couple questions related to custom Teensy boards with fresh MK20 chips and Paul's MINI54: 1) Has anyone burned anything in to the PROGONCE section of the MK20? Paul puts the MAC address there, but I've been scratching my head on how to access it myself to put a unique code in for each of my...
  33. K

    Eagle library for MK20DX128VLH5?

    I have an eagle library for both the MK20 and the MINI54 that Paul sells in the store, and have verified proper functionality on some boards that I've made. I extended the pads on the MINI54 quite a bit, so I may make some modifications and shrink the footprint down - as it is, the pads make it...
Back
Top