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

Search:

Type: Posts; User: rcarr

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. Your oscilloscope picture is not really great for...

    Your oscilloscope picture is not really great for making careful measurements, but to me it looks like your delay is a bit too long. Part of your delay will be interrupt latency, so it needs to be...
  2. I suggest you remove all the UNO register stuff...

    I suggest you remove all the UNO register stuff in your program ( DDRD, PORTD, PIND etc ). These registers do not exist in the Teensy, they are faked for compatibility. Use digitalReadFast and...
  3. Replies
    5
    Views
    146

    The underlying ARM processor implements a...

    The underlying ARM processor implements a windowed watchdog, and will reset on too fast or too slow watchdog service intervals. It looks like the default value for the lower counter is 16 ( which...
  4. 50% off on a Pickit3 currently until the end of...

    50% off on a Pickit3 currently until the end of the month. That puts the cost in what I consider the pocket change range.
    https://www.microchipdirect.com/product/search/all/PG164130
  5. A PIC 12F series would do what you wish. With 6...

    A PIC 12F series would do what you wish. With 6 I/O pins, you would have 4 spares that could be used with jumpers to select one of 16 delay times.
    The LF parts are very low power, as low as 30...
  6. I don't have an answer. I do find it interesting...

    I don't have an answer. I do find it interesting that at 400khz, one bit time is 2.5 us. So it appears you need to wait longer than one bit time although that could be a coincidence.
  7. Replies
    7
    Views
    171

    Line in is on the audio shield. Upper right...

    Line in is on the audio shield. Upper right center on the picture.
    16443
  8. Replies
    16
    Views
    331

    Not knowing what insertPadFloat does with the...

    Not knowing what insertPadFloat does with the MAX_LINE_SIZE, but assuming it checks for overflow, maybe your calls to


    Utilities::insertPadFloat(string_buff, MAX_LINE_SIZE, iter, v.j, 3, 3, ' ');...
  9. I suggest you just write the low level code for...

    I suggest you just write the low level code for this approach and forget about modifying softwareserial. The problem with softwareserial is that it is coded to send bytes, meaning that it blocks...
  10. Replies
    4
    Views
    109

    something.something You need to look in the...

    something.something

    You need to look in the header file and get the names of the structure members.


    typedef struct __PRGMTAG_ {
    const uint8_t *data;
    uint8_t image_width;...
  11. Replies
    4
    Views
    109

    At the end of your attached C file is an array of...

    At the end of your attached C file is an array of type tChar. You need to use that information as the link from character to the font description and image. It looks like this:


    static const...
  12. Are you picking the correct tools? I don't see...

    Are you picking the correct tools? I don't see your program description as needing a state machine. You simply want to dispatch to one of 10 functions. I don't see your program as needing a task...
  13. Replies
    6
    Views
    159

    From your description, I envisioned state driven...

    From your description, I envisioned state driven code and a switch case type of structure. For example:



    loop(){

    static unsigned long t;

    if( t != millis() ){
    t = millis();
  14. Replies
    3
    Views
    126

    I suggest you remove the setting of priority on...

    I suggest you remove the setting of priority on the interrupts. Interrupts of the same priority do not interrupt each other. That is probably not your problem.

    Some general observations about...
  15. Replies
    6
    Views
    159

    So it is working correctly, and tap is shorter...

    So it is working correctly, and tap is shorter than a second or so.
  16. Replies
    2
    Views
    82

    I do not know if it will work but it seems as...

    I do not know if it will work but it seems as though it should. You currently have 8 bounce objects all with a different pin. And you call the update function for each of those in turn.
    ...
  17. Replies
    7
    Views
    213

    About the transistors in the link, in my opinion...

    About the transistors in the link, in my opinion the base resistor(10k) is too small for your circuit. Going back to your circuit with a 10k in the emitter lead and considering that the base current...
  18. Replies
    7
    Views
    213

    turtle9er's circuit looks good. For the other,...

    turtle9er's circuit looks good. For the other, try hfe of 100 in your calculators and maybe a 5k in the emitter side. In the single transistor approach you should keep in mind that the base...
  19. Replies
    5
    Views
    182

    The counters are always counting. While you are...

    The counters are always counting. While you are timing the HIGH time, the LOW counter is counting too. When the HIGH time expires, the LOW time could already be expired.
    You should set the...
  20. Replies
    7
    Views
    213

    Consider using a NPN transistor in that circuit. ...

    Consider using a NPN transistor in that circuit. Choose the resistor divider such that the voltage across the lower resistor is less than ( 3.3 - 0.6) volts. Then you will not need to find a FET...
  21. Ok, thanks for the clarification. That makes...

    Ok, thanks for the clarification. That makes more sense. Looking around the web, it seems everyone has issues with I2C with this part using FPGA, or Raspberry PI, or PIC32mx.
  22. Personally I find this signal very strange for...

    Personally I find this signal very strange for open collector logic. It is hard to believe that a pullup could produce an overshoot of what appears to be a little over 1 volt. And viewed from a...
  23. Something subtle must be happening. Looking at...

    Something subtle must be happening. Looking at the two first scope pictures, I see a little bit of undershoot on the SDA line that looks just a little bit worse with the Teensy 3.6. I would try...
  24. An interesting thread, but aren't you decoding...

    An interesting thread, but aren't you decoding the serial bits incorrectly?


    If you decode the packet, the addres byte is 0011|0100 = 0x34 which is 0x1A<<1 which is correct,
    and then the 9th bit...
  25. Try if( j == -1 ) rainbow(30); In...

    Try


    if( j == -1 ) rainbow(30);


    In function rainbow, a loop of 256 times 30ms means you will be in this function for over 7 seconds, so you need a way to break out. Your local variable...
  26. Replies
    4
    Views
    159

    I suspect there is something wrong in the...

    I suspect there is something wrong in the shifters. Looking at your data
    ( damn proportional fonts )


    result 412
    expect 341


    So it looks like you shifted up too far and lost the...
  27. Replies
    5
    Views
    232

    I think this is a fairly open question, so...

    I think this is a fairly open question, so consider a mux. One input to the mux is scaled for 10v signals, another for 5 volt signals, another for 3 volt signals, and a 4th with a gain stage ahead...
  28. So many questions. I will try to answer a few...

    So many questions. I will try to answer a few but you should look for a good tutorial on pointers.

    You have questions about the scope(global, static, auto) of pointers and they act like any other...
  29. The example called OpenNext seems to be the way...

    The example called OpenNext seems to be the way things are done, even in the ls() method. I wished to capture the file name and file size and I think this code is going to work. Ignore the fake...
  30. Replies
    8
    Views
    334

    Since you have a scope there, hook up a probe to...

    Since you have a scope there, hook up a probe to your 5 volt supply and see how slow it ramps up. Maybe what you see on the scope will provide some insight to what you need to do.
  31. Looking at the library docs, there are two ls()...

    Looking at the library docs, there are two ls() variants that you provide a pointer to a stream. The exact details on use are not clear to me, but I would start there.


    void FatFileSystem::ls ...
  32. I wish I had an answer because I think in about 2...

    I wish I had an answer because I think in about 2 weeks time I will want to do the same thing. Would redirecting the stream work on the Teensy?...
  33. Replies
    3
    Views
    133

    The write up at the link looks correct. RTS is...

    The write up at the link looks correct. RTS is an output and is wired to CTS on the other end. When you assert RTS, it means send me data.
    CTS is an input and is wired to RTS on the other end. ...
  34. Replies
    24
    Views
    784

    This program will log errors on my Teensy 3.6. ...

    This program will log errors on my Teensy 3.6. The idea of variables t1,t2,t3,t4,t5 is to align 3 events in time.
    First is the millis() tick over to a new value
    Second is the evaluation of this...
  35. Replies
    24
    Views
    784

    Yes and you probably know more about this than I...

    Yes and you probably know more about this than I do. I know very little about C++ objects.
    Still, tLastNewFrame is not a simple variable and I suspect the answer to this puzzle lies somewhere in...
  36. Replies
    24
    Views
    784

    Add the interrupts wrapper to this version: ...

    Add the interrupts wrapper to this version:

    noInterrupts();
    unsigned long tNow = tLastNewFrame;
    interrupts();
  37. Replies
    49
    Views
    1,669

    That's great. I have been inspired to dig out...

    That's great. I have been inspired to dig out my Tandy M200 laptop.
  38. Replies
    24
    Views
    784

    The program is missing a PINMODE(8,INPUT)...

    The program is missing a PINMODE(8,INPUT) statement but apparently that doesn't matter here.

    One thing I can think of that explains the described behavior is if the Teensy in resetting. If reset...
  39. Replies
    49
    Views
    1,669

    Good news then! Although some strange issues...

    Good news then! Although some strange issues left. Is POKE 14316,1 the same as the select line issue you mentioned?

    I guess your serious about the beer. If you have a favorite dark beer, send...
  40. Replies
    49
    Views
    1,669

    With everything happening inside one chip, I am...

    With everything happening inside one chip, I am not sure a logic analyzer is as useful a tool as it once was. I used analyzers back in the 80's and 90's working on discreet microcontrollers ( with...
  41. Replies
    49
    Views
    1,669

    You may want to try the other suggestion( clock...

    You may want to try the other suggestion( clock the wait flop with a different signal ) before proceeding too far with this one. If it stops at T2 with the WR signal low, that might also work. I...
  42. Replies
    49
    Views
    1,669

    >>>Well, I have an inverted RD signal already (on...

    >>>Well, I have an inverted RD signal already (on pin 1 of IC7), so I'm thinking you're saying: remove WR* from pin 15 of IC7, and just join pins 1 and 15.

    Yes. And perhaps try this on the...
  43. Replies
    49
    Views
    1,669

    >>>Am I following you? I think so. I...

    >>>Am I following you?
    I think so.

    I had another idea that may be simpler. You don't need to decode WR. If it is not a read, then it must be a write. You could cut free of the WR...
  44. Replies
    49
    Views
    1,669

    Maybe you should clock your wait flop with the...

    Maybe you should clock your wait flop with the signal 37EX_ ( but inverted ). It seems you are committed to an address selection at that point and it is before the read or write strobe has been...
  45. Replies
    49
    Views
    1,669

    Looking at the timing diagrams in the Z80cpu.book...

    Looking at the timing diagrams in the Z80cpu.book http://home.mit.bme.hu/~benes/oktatas/dig-jegyz_052/Z80-kivonat.pdf
    I suspect you are missing the T2 sampling time for WAIT on your writes. The...
  46. Replies
    49
    Views
    1,669

    Since you know where it fails, you can generate a...

    Since you know where it fails, you can generate a scope sync by toggling a Teensy pin ( like the LED for example ) and have a look around.
  47. How can the one you say works, actually not also...

    How can the one you say works, actually not also have errors? You have no #define statements and no #include statements.
    The only thing I can think of is that this sketch must have other tabs and...
  48. Replies
    19
    Views
    402

    If you only write to the slave, you may get by...

    If you only write to the slave, you may get by with resistors. If you read from the slave then there will be a resistor voltage divider when the slave drives the line low and your voltage low margin...
  49. Replies
    19
    Views
    402

    Most unpowered IC's have parasitic diode paths...

    Most unpowered IC's have parasitic diode paths that normally remain reversed biased when the device is powered. The current path to Vdd is probably through the pin driver circuit and/or other...
  50. Replies
    19
    Views
    402

    Running clock and data through a double pole...

    Running clock and data through a double pole relay with the coil energized by the slave power supply would be a quick and easy solution.
Results 1 to 50 of 202
Page 1 of 5 1 2 3 4