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

Search:

Type: Posts; User: kam42

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    6,357

    I'm way late on this, but I just ran into the...

    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...
  2. Replies
    2
    Views
    1,557

    Thank you, Paul!

    Thank you, Paul!
  3. Hmm - after thinking on it, the watchdog status...

    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...
  4. Mark, Thanks for the advice. Here's my...

    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...
  5. For anyone reading along, it seems that the...

    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. Oh, I see what you ran into. I ran into it face...

    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;...
  7. Success! Went through your diffs and have it...

    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...
  8. Excellent, I'm digging through it now. The diff...

    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...
  9. To update, I also double checked that the target...

    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. Believe so - ...

    Believe so -


    "${uTaskerLinkerScripts}/K_256_64.ld"

    for the Teensy 3.1.
  11. Wow, that would be incredible. Having a...

    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...
  12. Replies
    21
    Views
    10,580

    If you look on the main (largest, 64 LQFP) chip...

    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...
  13. Replies
    13
    Views
    9,378

    As a jump-off point for the rechargeable battery...

    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

    2833
  14. Replies
    39
    Views
    30,909

    It's all there, the loop is empty since code...

    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) =...
  15. Replies
    13
    Views
    4,173

    Try this, although trying to read LPTMR0_CNR will...

    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(){

    ...
  16. Replies
    2
    Views
    1,557

    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...
  17. Replies
    3
    Views
    1,949

    A little trick I learned as a replacement for the...

    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...
  18. Replies
    1
    Views
    1,285

    It strikes me that I should post some code. It...

    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.

    ...
  19. Replies
    1
    Views
    1,285

    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...
  20. Replies
    19
    Views
    15,517

    Quick question - are those SD speed ups patched...

    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...
  21. Replies
    38
    Views
    58,311

    Any chance you could point us in their direction?...

    Any chance you could point us in their direction? Always interested in quality fabricators.
  22. Great news! Thank you Paul. Looking forward to...

    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. 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...
  24. Replies
    39
    Views
    30,909

    Nifty little trick I learned here on the forum to...

    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...
  25. Replies
    39
    Views
    30,909

    Hi Paul, I had some time to work with your...

    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...
  26. Replies
    39
    Views
    30,909

    Good point about the M0, that would be fantastic....

    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...
  27. Replies
    39
    Views
    30,909

    Paul, Thanks for the reply, I'll look into the...

    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...
  28. Replies
    39
    Views
    30,909

    I love the watchdog timer chip - that would be...

    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...
  29. Replies
    39
    Views
    30,909

    Apologies, example code: Don't leave it...

    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...
  30. Replies
    39
    Views
    30,909

    _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...
  31. Do you have an idea of how long it takes to wake...

    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...
  32. 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...
  33. Replies
    13
    Views
    16,242

    I have an eagle library for both the MK20 and the...

    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...
Results 1 to 33 of 33