Search results

  1. G

    Print signed int

    First I have tried it with int32_t. But the result was not ok. The tip with the right declaration (int16_t) is the right solution. Thank a lot for your answers. I don't think I would have ever found the solution. Gary
  2. G

    Print signed int

    Hi Sometimes Im a little confused and the smallest solution seems to be the biggest problem. For example I have a hex number FFFF and I want to print it on a display. I need to print it with the sign in front. So this should be a signed int. signed int FFFF should be a negative number...
  3. G

    Stop a while loop by pressing the touch display

    Thanks for your replied. This was only an example with the 'delay'. I will try it later. But I think there are very good ideas. Greetings
  4. G

    Stop a while loop by pressing the touch display

    Hi I have a question and I'm not able to find the solution for myself. Maybe someone can tell me the way to the right solution..... I have a Teensy 4.0 and a Display which is working well with the ILI9488_t3 library. In one part of my scetch I have a while loop. Now I need a way to stop this...
  5. G

    I need something like a String

    Hi KurtE Thanks for your reply. I want to show you the following example. The data on the left side are from the CAN. The right side is the ASCII value: 28 31 37 30 32 37 30 59 Y 29 53 32 52 34 58 32 30 S 2 R 4 X 2 0 2A 30 30 31 31 31 31 31 0 0 1 1...
  6. G

    I need something like a String

    Good morning Sometimes I know that I'm still a beginner in programming. I have tested a lot and have searched for a solution. But now I think it's the ti.e to ask the specialists. I want to extract the VIN from the CAN. I need this VIN in something like a String. I have 17 variables ( for...
  7. G

    SPI ports Teensy 4.0

    Thanks a lot Paul...
  8. G

    SPI ports Teensy 4.0

    HI I have a question about the SPI ports about the SPI ports about the Teensy 4.0 Are there 3 SPI ports on a Teensy or one SPI port and only three differents pins of for example MOSI? Thanks a lot Gary
  9. G

    Teensy 4.1 SD Card + Display issues

    hi defragster My display works fine. Then I have implemented the SD card. After this the display doesnt work. Thanks for your help
  10. G

    Teensy 4.1 SD Card + Display issues

    Good morning I have searched for a fault but I can't find one. In my sight this code looks good. The display isnt working and I cant see him counting. The SD card is working. This is only a code to test the writing to the SD card. This code dosnt make sense. ;-) But I Need the SD card for a...
  11. G

    Teensy 4.1 SD Card + Display issues

    Thanks for your help. It help much because now I lnow where I have to search. Greetings Gary
  12. G

    Teensy 4.1 SD Card + Display issues

    Hi I have done some changes of the example code of the flexcan_t4 library. First I have installed the 3.5 display. This works very good. After the installing of the onboard SD card I have some problems with the display. I think there is a problem with the CS pin. Basically the SD card work...
  13. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    I'm sending the flow control for the Iso-TP messages. This isnt the problem. I'm getting all messages but if the system is working longer there are missing messages. So I got the idea that the system ist overflowing. I dont know it. I ask for the messages and they are there. I have read it out...
  14. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    Thanks for your help. Maybe someone else has an idea...
  15. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    The first sites are running well but than there arent messages. So I thought that maybe there is a problem with a overflowing FIFO.
  16. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    Sorry, i forgot the FIFO.. :-) can3.setFIFOFilterRange(0, 0x18DAF100, 0x18DAF13D, EXT) In my sight this should be the right filter for more than one message ID
  17. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    Today I have examples to read for example the following message: 8030) 17688.012 1 Rx 18DAF112 - 8 10 0C 62 F4 83 02 00 00 In my sight the filter should be open for this message.
  18. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    I'm using the tools from skpang. They are very good.. I need the diagnostic messages from 0x18DAF100 to 0x18DAF13D. So i have tried to take a filter: can3.setFilterRange(0, 0x18DAF100, 0x18DAF13D, EXT). But there are problems because there are some messages which are not comming through the filter.
  19. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    I'm using can3.enableFIFO(); can3.enableFIFOInterrupt(); Thanks for your help Gary
  20. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hi I have a small problem and hope there is a solution for my problem. I'm reading the data from a Scania. The CAN is complete open and there is a lot of traffic. It seems that the FIFO is overflowing. Is there an option to erase the data from the FIFO. I have more sites on my tool and the...
  21. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hi msadie Thanks a lot. This is was im looking for. Perfect... Greetings Gary
  22. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hi I have taken a lot of time to find a solution for my problem. I didn't find it. I use the following filter: Can.setFIFOFilter(0, 0x18DAF100, EXT); How is it possible to erase this filter to get all messages? I need this filter only for a short time. First - filter then all messages...
  23. G

    Question about the programming of touch screens

    Sometimes it is so easy (if you are a good programmer and everything runs good).... While testing I have changed two lines and the touch runs also on the second form... Thanks for your ideas and replies.....
  24. G

    Question about the programming of touch screens

    Thanks for your answers. Yes, I have programmed a form and a touch code for this form. If I push a touch button you will start a new form with a new code for the touch functionality. Now I will read and understand your answers. Maybe I will find a way to change my code...
  25. G

    Question about the programming of touch screens

    Hi I have progammed a code with a touch screen (librarie Adafruit_FT6206.h). This touch screen runs perfect if I use only one form. If I use a second form, the touch functionality from the first form is also additional used and I have wrong things on the screen.... Is it possible to end the...
  26. G

    Teensy 4.0, problem with the presentation of 2 pictures

    Thanks Hi Kurt Thanks for your reply. I have tried to send the code many times to the Teensy. In every case there was a bad picture. Its looked like that there are many pictures at the same time. Yesterday late evening I have tried a last attempt. After installing the Blink code, I have...
  27. G

    Teensy 4.0, problem with the presentation of 2 pictures

    Hi I have a problem with my Teensy or my sketch. I use a 240x240 display ST7789. I have defined the Adafruit GFX and the ST7789 libraries. The two pictures are activated with the code: tft.init(240, 240); tft.fillScreen(ST77XX_WHITE); tft.setRotation(2); tft.writeRect(0, 0...
  28. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    It seems that there isnt an easy way like my idea. This looks not possible for my knowledge. I will search for another way to finalize my project. Thank you for your reply. ;-)
  29. G

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hi I need your help. For my project I have to look if there is a Can traffic or not. I have no idea how I can solve this problem. Something like this If (can traffic == TRUE) {do some things} If (can traffic == FALSE) {do some things} Has someone an idea how it is possible? I use a...
  30. G

    Question about a code I didnt understand I2C / SPI

    I'm stupid. I forgot to erase the wire.h... Now everything is ok. Thanks
  31. G

    Question about a code I didnt understand I2C / SPI

    Thanks defragster. I have a running solution on pin 14 and 15. My questions was why it doesn't work an 18 and 19. This are digital pins too. But the answer isn't important for my project. It's only for understanding the Teensy.
  32. G

    Question about a code I didnt understand I2C / SPI

    Good morning. Yesterday I have tested a lot but there wasn't a result. I have taken the I2C ports 18 and 19. But the Oszi didn't Show any correct line. Today I have checked the AD9833. This tool was ok. My last plan was to take other digital Pins. And... The AD9833 runs on PIN 14 and 15. I...
  33. G

    Question about a code I didnt understand I2C / SPI

    Thanks Phil. I took a look at this site but I didnt see it. I'm blind. ;-) This could be the way. I will try it later and will give a reply.
  34. G

    Question about a code I didnt understand I2C / SPI

    At this time I dont know what I'm doing. I never heard from things like bit banging and so on. But I think I will learn a lot while programming my tool. I have load the datasheet from the AD9833 but I only found out that there is a time about 10 nanosecond time. In the evening I will try to...
  35. G

    Question about a code I didnt understand I2C / SPI

    This sounds like that my guess was right. Now I'm a step in front. The programming is very difficult (but very interesting). I'm very fast at the end of my knowledge. ;-) Thanks to all....
  36. G

    Question about a code I didnt understand I2C / SPI

    Ah. Ok. This code was copied from the net. But only shortened a bit. But why didnt it runs on Teensy 4.0? Is the Teensy to fast for this kind of programming without a clk? Is there an option to adapt this code to the Teensy? Thanks
  37. G

    Question about a code I didnt understand I2C / SPI

    Thanks defragster. I saw this thread while searching for a way to program the project. Do you have an explanation why the code runs? I dont understand why a code for I2c (wire.h) will start a tool for SPI. I asked because this is an easy way to use three free pins of the Teensy for the...
  38. G

    Question about a code I didnt understand I2C / SPI

    Good Morning I'm working on a project since a long time. I need a changeable frequency about 0 - 300 hz. For a short discription. This is not the first project. The first one was very easy, works also with a signal generator, called AD9833. It was an Arduino Nano with the AD9833 and a SPI...
  39. G

    Frequency generator

    Thanks KurtE This runs perfectly. I dont know why but it works. ;-) Now I go a big step to the end of my Project. Your help is great…. Thanks also to the rest of this forum. Greetings
  40. G

    Frequency generator

    Thanks a lot At this time it is too much for my brain. I will test the new code in the evening. I dont need an exact square wave but it should be nearly 50/50. 60/40 isn't a problem. The first zulignal should be near 0 and it's not important that the signals are exactly for example 5.0 Hz...
  41. G

    Frequency generator

    Thank KurtE. I haved tried to use your code. The frequencies between 18 and 350 are ok. But the lower frequencies are not possible. The 40% daty are ok. But I Need a frequency near by 0. Greetings and thanks
  42. G

    Frequency generator

    Hi defragster. Sorry for the late reply. We have a lot of problems with the Corona virus in my federal state of Germany. I have tried your code and this runs well with your frequency. But if I try other frequencies like for example 20, I dont have a duty about 50/50. This is very difficult...
  43. G

    Frequency generator

    Thanks defragster Just I have tried to take the Teensy from this board. It was possible. I thought that the Teensy was soldered. Now there is an option to use the SPI port 2 on the backside. I have not much knowledge in this boards. Is it possible to use the second port, if the first one is...
  44. G

    Frequency generator

    Good morning. I have taken a look on this site days before. But this isn't a good way. I need a square signal with a length from 50/50. PWM hasn't this length. Thanks for your idea and reply Gary
  45. G

    Frequency generator

    Hi. I need your help (I'm sorry for my English). I have bought a Tripple CAN board with a Teensy 4.0 and a display from skpang. This is a very good board and the CAN connectivity is great and function very good. But now I need an SPI port to connect an AD9833 frequency generator. This board...
Back
Top