Search results

  1. immortalSpirit

    A distributed OS for multiple cpus and devices in a mesh network

    Hello! I am working on a new kind of operating system for a multi-device distributed network. In the above pix you can see five devices: distance sensor, potentiometer, speaker, photocell, and servo. Inside each box is a Teensy 4.0, a battery pack, and a BT radio implementing a mesh network...
  2. immortalSpirit

    A distributed operating system for multiple cpus and devices in a mesh network

    Hello! I am working on a new kind of operating system for a multi-device distributed network. In the above pix you can see five devices: distance sensor, potentiometer, speaker, photocell, and servo. Inside each box is a Teensy 4.0, a battery pack, and a BT radio implementing a mesh network...
  3. immortalSpirit

    Teensyduino 1.52 Released

    Problem solved!! I have stumbled upon a "fix"! When I click the "Tools" pulldown and select the Port, I have a choice at the top called "/dev/cu..... Serial (Teensy 3.2)" And below, there is another choice, "/dev/cu... (Teensy)" I always assumed they were identical, and I always picked the...
  4. immortalSpirit

    Teensyduino 1.52 Released

    Thanks Frank B. Laughing out loud! There is a small but finite probability I'll be laughing about this all week!
  5. immortalSpirit

    Teensyduino 1.52 Released

    Thanks for quick reply. Yes, actually I had something very similar. But just "while (!serial) {};" without the millis(). (And instead of "Hello World" I print out "Welcome, O Great and Mighty Master!"). So I changed it to exactly your suggested code, same results. This led me to thinking...
  6. immortalSpirit

    Teensyduino 1.52 Released

    Teensyduino 1.52 (and 1.51 before it) is crashing often and consistently. All I have to do is upload cmd-U and open serial monitor cmd-shift-m about 5 or 6 times and it will crash. The program I am uploading is 3000+ lines of code, and once the serial monitor is open it prints about 20 short...
  7. immortalSpirit

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    Yes, all the teensy's have kept similar/same ordering, but then that just defers the question to why the 1st version was scrambled. In the final analysis, you'd have to ask Paul. If u look at the ATMEGA 832 chip, used by Arduino Uno and others, the pins are much more orderly. The Teensy's are...
  8. immortalSpirit

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    Joaquin, you most definitely CAN access the PINx registers just like in AVR. Except that they are named "GPIOx_PDIR" instead of "PINx". This is just a symbol error, not a missing piece of hardware! Using them invokes no overhead, they are direct hardware registers just as their AVR namesakes...
  9. immortalSpirit

    Coming Soon: Teensy-LC (low cost Teensy)

    Bravo Paul! May u sell many and prosper!
  10. immortalSpirit

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    Well, OK, u could be right! Seems like that's what I determined "back then" when I answered the first post here. I too merely "skimmed" the K20 manual. I'm not engaged enuf now to look at it more, but if u can find a more definitive answer, please do! And post it! Even assuming u r right, there...
  11. immortalSpirit

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    Regarding: e.g. PORTD = B00001010 & PORTB = B10010000 No, no way to do that. But can do two instructions back-to-back. On Teensy what u called PORTD/B is GPIOD/B_PDIR/PDOR. At 48 or 72 MHz these instructions are way less than a microsecond apart. Does your mux really need to be *that*...
  12. immortalSpirit

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    If I read u right, u r connecting 4 Teensy pins to your mux and want to change them simultaneously. Do they need to be consecutive pins on the Teensy? If not, then the solution is to wire your pins non-consecutively as follows. You will have to cut the traces on your pcb and add jumper wires...
  13. immortalSpirit

    Teensy 3.0 LowPower examples don't work!

    Thank you! That looks very much like what I want! Sorry, my bad, I only reviewed first couple of pages and missed that. Thanks again.
  14. immortalSpirit

    Teensy 3.0 LowPower examples don't work!

    Yes I did! Some suggestions there, but no answers! I'm not looking to develop code myself, I'm looking for developed code! (Code that is very simple to use). If none is found, I may have to break down and do the project myself, but that is currently my last resort! Surely someone has written...
  15. immortalSpirit

    Teensy 3.0 LowPower examples don't work!

    I want to re-visit this thread one year later. I still don't see any low power library... Is there any news? I just want to shut everything off except a single interrupt on any edge of one input signal, and/or a timeout. If some system clock or other internal condition wakes me prematurely I...
  16. immortalSpirit

    Can a running pgm tell the processor speed it's running at, on a Teensy 3.0 or 3.1?

    Perfect answer, thank you Michael! This code was just tested in all 6 of (24,48,96) x (3.0,3.1) combinations and worked perfectly! #if defined(__MK20DX128__) #define HW_processorType_name "Teensy 3.0" #elif defined(__MK20DX256__) #define HW_processorType_name "Teensy 3.1" #else...
  17. immortalSpirit

    Can a running pgm tell the processor speed it's running at, on a Teensy 3.0 or 3.1?

    On a Teensy 3.0 or 3.1, I can reach for the Tools menu and set the cpu speed to 24, 48, or 96 MHz, then upload my program. Can that program then detect what cpu and speed it is running at? Is there an OS call or processor variable I can access easily? And also, can I detect Teensy 3.1 vs...
  18. immortalSpirit

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    If u look at the circuit diagram here: http://www.pjrc.com/teensy/schematic.html (scroll down to the 2.0 version) you will see identifiers around the edges. For example, the top right hand corner says "ADC0 PF0 | 41 ----- F0". This means that port F bit 0 is connected to internal pin 41 (which...
  19. immortalSpirit

    AVR Emulation on teensy 3.0

    After spending some time figuring it out, I gave a more complete answer in another topic: http://forum.pjrc.com/threads/17532-Tutorial-on-digital-I-O-ATMega-PIN-PORT-DDR-D-B-registers-vs-ARM-GPIO_PDIR-_PDOR
  20. immortalSpirit

    Looking for a Teensy 3.0 with a male USB-A plug ?

    :) Motto for the year: WE ARE HAVIN' FUN NOW!
  21. immortalSpirit

    Looking for a Teensy 3.0 with a male USB-A plug ?

    Beautiful! Just what the doctor ordered! Thanks!:D
  22. immortalSpirit

    Looking for a Teensy 3.0 with a male USB-A plug ?

    I've been using these: http://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2119697_-1 for my Arduino Nanos. But its "mini" USB not quite what Teensy wants. I was disappointed to find no other on the Jameco website, but maybe u can call them or look for similar products. (And let...
  23. immortalSpirit

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    You are most welcome! It is gratifying to help someone! Please make all checks out to the "Steven Swift Car Repair Fund"... :)
  24. immortalSpirit

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR A/B/C/D/E registers! OR, "How to get a fast 8-bit-wide digital read/write!" I spent the evening figuring this out so I'd like to pass it on to you if u r interested. My mission: read/write 8 digital I/O pins...
  25. immortalSpirit

    AnalogRead extension procedures and THE MISSING MANUAL!?

    "We all" != "Paul"! Poor Paul! I had the very brief thought yesterday, hey, if I poured over this part of the manual *I* could write some documentation! Then reality hit me. Perhaps in an alternate universe where the phrase "spare time" existed. :) But Paul, just a LIST of all the known...
  26. immortalSpirit

    AnalogRead extension procedures and THE MISSING MANUAL!?

    Thanks. I have looked over the reference, does answer my question and lots more. As to where is the manual, haha!
  27. immortalSpirit

    AVR Emulation on teensy 3.0

    Paul, that is exactly what I found out. Firstly, in answer to JMS, here is my exact workaround: This was my original code. Note that "mode" is my own variable, not a processor thing... if_bitIsClear(mode,ioPort_modeBit_inputOnly) { // Port is output. First, tell hardware about...
  28. immortalSpirit

    AnalogRead extension procedures and THE MISSING MANUAL!?

    The Arduino documentation only tells me about analogRead(pinNumber). In various forum entries here I've seen mention of: analogReadRes(12); analogReference(DEFAULT); analogReadAverging() Use of these *seems* obvious, but WHERE IS DOCUMENTATION ON THESE CALLS? Min/Max resolution...
  29. immortalSpirit

    Teensy 3.0 LowPower examples don't work!

    On Teensy 3.0 menu, File->Examples->LowPower contains two example programs. When I try to use either I get: "fatal error: avr/sleep.h: No such file or directory". Both #include "LowPower.h". I find lowPower.cpp and it says "see www.rocketscream.com/wiki for more information...". That wiki has...
  30. immortalSpirit

    Kudos from a newbie!

    Many kudos to TEENSY 3.0: My code ported!! And it even works!!! :) My first TEENSY arrived via the mailman at 3PM Saturday. By 4 PM I had my entire code suite of 7598 lines running flawlessly! Kudos to Paul for providing a great product! At 48 MHz my code says it runs 3.2 times faster than on...
Back
Top