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

Search:

Type: Posts; User: wangnick

Search: Search took 0.00 seconds.

  1. My Logic Pro has some trouble with the OV7670...

    My Logic Pro has some trouble with the OV7670 logic signals. For one there seems to be some crosstalk from the pixel clock, and in addition the camera runs on 2.8V not 3.3V ...

    Kind regards,...
  2. Does anyone know how many cycles are required...

    Does anyone know how many cycles are required from an external pin rising until *first instruction* of the serving ISR? I'm running the example at 25MHz XCLK, i.e. 6.25MHz PCLK, and it takes 76ns...
  3. Cyrille, note that means that a full horizontal...

    Cyrille, note that means that a full horizontal line is transferred much faster as well, for the case of 1 interrupt per horizontal line.



    That is correct but will not suit the OV7670. As...
  4. Cool. A weekend ago I borrowed the telescope of...

    Cool. A weekend ago I borrowed the telescope of my neighbour, a Skywatcher 8" 1200mm Dobson. Jupiter, Saturn and Mars were easy, but then I tried to find M103 and not only was it tricky to get at,...
  5. I understand that for an 8 bit camera you would...

    I understand that for an 8 bit camera you would require CSI_DATA02 until CSI_DATA09, and these are available as GPIO_AD_B1_15 until GPIO_AD_B1_08, which are mapped on T4.1 to Pins 27, 26, 39, 38, 21,...
  6. Hi Cyrille, are you still following? I must...

    Hi Cyrille,

    are you still following? I must say I find your project quite interesting.

    I just managed to generate a 40MHz XCLK signal but however on Pin 41 of the Teensy 4.1 using:


    ...
  7. Hi Cyrille, I just did a few quick tests with...

    Hi Cyrille,

    I just did a few quick tests with generating high frequency square waves on the T4.0. What I find on my scope is that indeed the basic PWM tick frequency is 150MHz, so whatever...
  8. Hello SenDev, did you read the forum articles...

    Hello SenDev,

    did you read the forum articles on OTA already, and did you find the Flasher example code?

    Kind regards,
    Sebastian
  9. Hi Cyrille, no I don't know the OV7670. ...

    Hi Cyrille,

    no I don't know the OV7670.

    What I know is that you are generating the clock for the OV7670 using the PWM feature of the Teensy 4, and you are driving it to its limits, have a look...
  10. Ah, I see. I guess you changed the...

    Ah, I see. I guess you changed the analogWriteFrequency on PinCamXclk to 12MHz, which with the divider of 4 in your register init becomes 3MHz PCLK?

    I also see in the datasheet Figure 8 that the...
  11. Hi Cyrille, I'm confused with the timings. You...

    Hi Cyrille,

    I'm confused with the timings. You say that you can read a full frame in 500μs, that your pixel rate is 500k/s, that your frame is 160x120 pixels QQVGA, and that you use RGB565 mode....
  12. Hi Cyrille, just a speculation: Maybe your...

    Hi Cyrille,

    just a speculation: Maybe your code is too fast now? When it was not yet in the ISR maybe some stuff was going on in the background, slowing down your code? For instance, if PinCamHref...
  13. Folks, I looked up the issues I had with micros()...

    Folks, I looked up the issues I had with micros() a while ago. It was NOT on Teensy 4, it was on Teensy 3, and it was when I globally disabled interrupts, which micros() on Teensy 3 disables and then...
  14. I believe on the Teensy micros() does not work...

    I believe on the Teensy micros() does not work properly from within an interrupt.

    Also, I suggest that you add some timeouts to your protocol handling loops.

    You might also want to consider...
  15. Hello SenDev, I can confirm that this is in...

    Hello SenDev,

    I can confirm that this is in principle possible on T3/4. It took me just a few weeks using the information in this forum to implement a Teensy 3/4 firmware upgrade possibility over...
  16. Hi winchymatt, things are tricky when an SD...

    Hi winchymatt,

    things are tricky when an SD card shares the SPI bus with other SPI devices. Reason is that at startup every SD card is in SD mode and requires a command sequence to switch into SPI...
  17. Replies
    797
    Views
    44,785

    Plans for T4.1 Ethernet library I was...

    Plans for T4.1 Ethernet library

    I was wondering what are the plans for the software support of the native T4.1 Ethernet. Will the https://github.com/PaulStoffregen/teensy41_ethernet be extended...
  18. Replies
    797
    Views
    44,785

    Ok, I connected T41 to HR911102A as follows: T+...

    Ok, I connected T41 to HR911102A as follows: T+ TD+(1), T- TD-(2), R+ RD+(7), R- RD-(8), LED G+(9), GND G-(10). I left TDC(3), (4), (5), RDC(6), Y+(11) and Y-(12) of the HR911102A unconnected (on the...
  19. Replies
    797
    Views
    44,785

    Hi Paul, I finally received my beta T4.1! ...

    Hi Paul,

    I finally received my beta T4.1!

    MAybe you can help me with a small issue. I still have quite a few HanRun HR911102A from a previous project around, which I connected at that time as...
  20. Replies
    797
    Views
    44,785

    Is a magjack with transformers sufficient? I...

    Is a magjack with transformers sufficient? I still have a few from a previous project of mine. But I thought you'd need a PHY chip in between the magjack and the T4.1?

    Kind regards,
    Sebastian
    ...
  21. Hi JKIM, can you not traverse your application...

    Hi JKIM,

    can you not traverse your application data down to a reasonable depth, and then on-by-one emit the objects on that depth as a reasonably-sized JSON substring onto the file stream? I don't...
  22. Hi laptophead, the TX buffer size increase...

    Hi laptophead,

    the TX buffer size increase should now avoid the TX buffer ever filling up completely and therefore Serial5.write() should not take longer anymore than the copying into the TX...
  23. Hi laptophead, Your longest output string is...

    Hi laptophead,

    Your longest output string is "M.Curr: M1:%.1fA %.1fA %.1fA %.1fA B: M11:%.1fA %.1fA %.1fA %.1fA, Volts:%.1fA %.1fA Total," which is about 100 characters long (depending a...
  24. I've also seen posts that for HC-05 3V3 should be...

    I've also seen posts that for HC-05 3V3 should be enough. NCS, SDA, SCL pullups for the MPU9250 are on the module, I guess?

    If I was you I would always foresee the ability to power cycle those...
  25. That is the low-level Arduino way of increasing...

    That is the low-level Arduino way of increasing the PWM frequency on pins D9 and D10 that are controlled by Timer 1 on Atmega328. Your analogWriteFrequency(4,25000) replaces that.



    Maybe you...
  26. Hi Johnny, 1. You try to activate the input...

    Hi Johnny,

    1. You try to activate the input pullup on the RPM_FAN_PIN_GREEN by writing HIGH to the INPUT pin. This is seemingly (looking at cores/teensy4/digital.c:digitalWrite) not implemented on...
  27. I'm missing the analogWriteFrequency call in your...

    I'm missing the analogWriteFrequency call in your code ...

    Kind regards,
    Sebastian
  28. If you ask me, putting an SD card and other...

    If you ask me, putting an SD card and other devices on the same SPI bus is a fragile design, as any "accidental" power cycle of the SD card returns the card into SD mode, possibly unnoticed by the...
  29. Hi, if you use an SD card and some other...

    Hi,

    if you use an SD card and some other devices on the same SPI bus, then the first thing to do after power-on is to bring the SD card into SPI mode. By default SD cards are in SD mode after...
  30. Superb, keep going. Others said before it...

    Superb, keep going. Others said before it wouldn't be possible at all on the T4. Plus, 12-bit color sounds great!

    Kind regards,
    Sebastian
  31. Replies
    91
    Views
    21,886

    If I'm not mistaken then this is an excerpt of a...

    If I'm not mistaken then this is an excerpt of a perfectly valid HEX file. So I guess you'd have to rewrite the flasher4 or whatever you use to buffer the binary stream as it is being decode, and to...
  32. Replies
    16
    Views
    819

    If this is a must why not seal in a second T4,...

    If this is a must why not seal in a second T4, also connected to CAN, able to program the first one using USB host mode ...

    Kind regards, Sebastian
  33. Replies
    91
    Views
    21,886

    Congratulations! Sometimes it helps just to know...

    Congratulations! Sometimes it helps just to know that it is possible, no?

    I'm a bit confused what you mean with lower and upper. There is a nice Memory Layout picture in...
  34. Replies
    91
    Views
    21,886

    Jumping to 0x60000000 will probably not work....

    Jumping to 0x60000000 will probably not work. Have a look at the .lst file that is generated from your code -- at 0x6000000 seems not to reside any proper instructions.

    Rather, you could think...
  35. Replies
    91
    Views
    21,886

    On Teensy 4.0 the flash memory starts at...

    On Teensy 4.0 the flash memory starts at 0x60000000 and has a size of 0x200000. The last 0x10000 are used by Teensyduino for EEPROM emulation and a 4kB know-good LED blink program.

    You can compute...
  36. Replies
    91
    Views
    21,886

    Hi bigboosted, all, I got this to work. In my...

    Hi bigboosted, all,

    I got this to work. In my case I use a Raspberry Pi with Mosquitto, PostgreSql and node-red, a Teensy 4.0 as an mqtt-to-canbus "router", and on the canbus I have a Teensy 3.2...
  37. Replies
    2
    Views
    457

    Ok, thanks. Nice to know that HW_OCOTP_MACn...

    Ok, thanks.

    Nice to know that HW_OCOTP_MACn are already predefined. Your teensyMAC() confirmes my assumptions.

    FWIW, Teensy 3.2 seem to be nmbered 1xxxx, Teensy 3.5/3.6 3xxxx, and Teensy 4.0...
  38. Replies
    2
    Views
    457

    Teensy 4.0 Serial Number

    Dear all,

    on the Teensy 3.x there is a 32-bit unique id in one of the records of the program-once area of the flash. You can retrieve it using e.g. https://github.com/sstaub/TeensyID.

    Stefan...
  39. Ah, I wasn't aware that the interrupt would...

    Ah, I wasn't aware that the interrupt would re-execute as long as it is enabled with the originating flag still asserted. From AVR is was used to the hardware clearing the corresponding flag prior to...
  40. attachInterruptVector(IRQ_CMP1,isr), how to write isr?

    Dear all,

    I'm trying to measure the time it takes an 100nF capacitor to discharge via a 100kΩ resistor to about 1V after being fully charged to 3.3V, using analog comparator 1 of a Teensy 3.2,...
  41. Replies
    91
    Views
    21,886

    Ok, as 0x100000 points to space not backed by...

    Ok, as 0x100000 points to space not backed by storage this is not surprising. 0x60100000 works much better ...

    Kind regards,
    Sebastian
  42. Replies
    91
    Views
    21,886

    For me flash_erase_sector(0x100000) does not...

    For me flash_erase_sector(0x100000) does not return ...

    Any idea?

    Kind regards, Sebastian
  43. The datasheet is, ahem, utterly misleading IMHO....

    The datasheet is, ahem, utterly misleading IMHO. Refer also https://community.nxp.com/thread/325090. To interpret it correctly one seemingly has to deduce know that on a little-endian processor, when...
  44. Nice work indeed. I'm working on means to update...

    Nice work indeed. I'm working on means to update Teensy 3.x application in the field (actually: in the garden) via CAN bus.

    But I'm currently extremely puzzled about the endianness involved....
  45. Replies
    17
    Views
    1,615

    I have a 64x64 LED panel on the garden fence...

    I have a 64x64 LED panel on the garden fence towards the street as a lit house number with a 5A buck converter, a Teensy, Smartmatrix, and some code of mine. I have 65m of 6x2x0.8mm sealed telephone...
  46. Replies
    3
    Views
    3,054

    Thanks Paul. I was too scared so far to dig into...

    Thanks Paul. I was too scared so far to dig into the DMA business. Also, I need to perform run-length encoding on the outgoing data if I want to go beyond the 500-800 kSamp/sec, so filling the...
  47. Replies
    3
    Views
    3,054

    ARM assember code

    Hi all,

    following issue: Teensy 3.0 should work as logic analyser. Fastest possible sampling rate whilst streaming results via USB to PC.

    So I've set up the PIT0 timer to sample the data port...
  48. Replies
    9
    Views
    3,483

    For me it works without any change to...

    For me it works without any change to mk20dx128.h.

    pit_isr_simple.ino:

    #include "pit.h"

    void setup() {
    Serial.begin(0);
    pit_setup();
    }
  49. Replies
    9
    Views
    3,483

    This has to be in a .cpp or in a .h. If it's in...

    This has to be in a .cpp or in a .h. If it's in the .ino the Arduino IDE magic preprocessor will pick the function definition up and add an early declaration which lacks the extern "C".
  50. Teensy 3.0 as logic analyzer, instruction timing

    Dear all,

    I'm working on rewriting the Arduino Logic Analyzer from Andrew Gillham (https://github.com/gillham/logic_analyzer, see also http://letsmakerobots.com/node/31422) to run on the Teensy...
Results 1 to 50 of 50