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

Search:

Type: Posts; User: Tady

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    24
    Views
    414

    How about this: ULone =...

    How about this:


    ULone = (((data[0]&0xf)<<16)| data[1])/(pow(10,((~(data[0]>>8)&0xf)+0b01)));
  2. Replies
    24
    Views
    414

    ULone =...

    ULone = ((data[0]<<8)|data[1])/(pow(10,((uint16_t)(~(data[0]>>8)+0b01))));

    Should this be the correct calculation.. I didn't test it

    I think that the calculation inmy previous post works...
  3. Replies
    24
    Views
    414

    Currently I am using this method : ULone =...

    Currently I am using this method :


    ULone = data[1]/(pow(10,(((uint16_t)(~data[0]+0b01))/256)));

    and if

    data[0] = 65024
    data[1] = 4616
  4. Replies
    24
    Views
    414

    Sorry not right now. I need to re-program the...

    Sorry not right now. I need to re-program the microcontroller but I assembled it inside the analyzer :(
  5. Replies
    24
    Views
    414

    @defragster I will try your method in the morning...

    @defragster I will try your method in the morning so I can see and learn. But I did a quick test with nerofun's post and it works perfectly. I don't know why this method is used (i didn't com across...
  6. Replies
    24
    Views
    414

    It's an Iskra MC666 netwok analyzer. I couldn't...

    It's an Iskra MC666 netwok analyzer. I couldn't ind any data regarding the modbus communication. They do provide windows software for configuration anl live data view. Nothing more. I sniffed the bus...
  7. Replies
    24
    Views
    414

    @neurofun I think you are right! 2's...

    @neurofun I think you are right!

    2's complement of 65024 is 512 and if I divide by 256 i get 2
    2's complement od 65280 is 256 and if I divide by 256 i get 1

    How can I calculate the 2's...
  8. Replies
    24
    Views
    414

    Hmmm.. I will try unon in the morning but i think...

    Hmmm.. I will try unon in the morning but i think it will not work.
    I did some digging and I think I asked the qustion wrong.

    I don't get two bytes but I get two Ints.
    And I don't know how the...
  9. Replies
    24
    Views
    414

    Two bytes to floating point number

    Hello

    I have a nework analyzer that uses modbus communication. Now I have a problem reading the measured value.

    It seems the meter is using two 16bit bytes for each value.
    Currently I'm...
  10. Replies
    12
    Views
    132

    I will try with T3.2 i think it will be great. I...

    I will try with T3.2 i think it will be great. I bouth a 4.0 and I still don't know what to use this beast for🤣 except blik a LED :D
  11. Replies
    12
    Views
    132

    Thank you! Didn't know that F_BUS returns the...

    Thank you! Didn't know that F_BUS returns the value :) but as Paul said the Library is limited to 36 if I understand correctly. I did some calculations and I think I need abou 170ns resolution. But...
  12. Replies
    12
    Views
    132

    How much if F_BUS on Teensy 3.2 overclocked to...

    How much if F_BUS on Teensy 3.2 overclocked to 120MHz?
  13. Replies
    12
    Views
    132

    Ufff thank you so much.. I missed that part of...

    Ufff thank you so much.. I missed that part of the description!

    Thank you!!
  14. Replies
    12
    Views
    132

    Teensy 3.x library for tick timer?

    Hello.

    I am looking in to how to use the timers on Teensy 3.x to specify ticks instead of microseconds (IntervalRimer).
    I need to port some AVR code that uses compare match but it needs to go...
  15. Replies
    2
    Views
    331

    I fixed it! After some digging I noticed that...

    I fixed it!
    After some digging I noticed that my setup was incomplete.. I was only assigning the mac and IP... I needed to assign gateway, subnet and DNS... So the teensy can access the outside...
  16. Replies
    2
    Views
    331

    Teensy 3.6 + wiz820io NTP example problem

    Hello everyone!

    I'm havingsome problems with the NTP example. If I use the provided example everything works fine. The sketch sends a UDP request to the time server and I get a correct response.
    ...
  17. Replies
    24
    Views
    8,403

    Hello! I have a question. I would like to use...

    Hello!
    I have a question. I would like to use your code for generating a sinewave for a resolver excitation. Is there any way that I could implement a interrupt that would fire when for example the...
  18. Replies
    420
    Views
    85,479

    Wow now thats what I call a reply! Thank you so...

    Wow now thats what I call a reply! Thank you so much it works:)
  19. Replies
    420
    Views
    85,479

    Hello! Can I just ask a noob question? I'm...

    Hello!

    Can I just ask a noob question?

    I'm using the multithreading library for a small project. I'm runnig the accelstepper library in one thread and I'm passing the position data from another...
  20. Replies
    51
    Views
    30,992

    @btmcmahan may I ask why is this part of the code...

    @btmcmahan may I ask why is this part of the code written like this:

    void T3SPI::rxtx16(volatile uint16_t *dataIN, volatile uint16_t *dataOUT, int length){
    dataIN[dataPointer] = SPI0_POPR;...
  21. Replies
    20
    Views
    3,655

    What are those boards doing? Nice shields:)...

    What are those boards doing? Nice shields:) yeah... It would work only one way... But the teensy is returning actual position data... Rpi sends wanted position data and the teensy returns actual...
  22. Replies
    20
    Views
    3,655

    Man I really love you explanation but...

    Man I really love you explanation but unfortunately i don' know what to do with the info :) i was reading some other threads and someone was explaning that there was a bug in the silicone... To me...
  23. Replies
    20
    Views
    3,655

    Hi I have tried multiple examples.... This...

    Hi

    I have tried multiple examples....
    This code is from a user here one the forum named WMXZ and i had no luck with this one.. Alot of garbage if i tried copying the recieve buffer to another...
  24. Replies
    20
    Views
    3,655

    Lower clock speeds improved the operation but...

    Lower clock speeds improved the operation but even at 1MHz i had problems... can you give me an example for 8 bitDMA slave? I need it to recieve and send back ... data is 8bits and 20bytes long, if...
  25. Replies
    20
    Views
    3,655

    How do you mean entirely? I use the 8bit rxTx...

    How do you mean entirely? I use the 8bit rxTx example.... I was looking at the source and to me it seems that interrupt is driven by the clock pulse. When the interrupt fires the ISR reads the popr...
  26. Replies
    20
    Views
    3,655

    I'm already using this library. It works.. But...

    I'm already using this library. It works.. But its loosing sync.. Sometimes it works for half an hour sometimes more sometimes less... And always fails if i restart the teensy or RPI... It looks like...
  27. Replies
    20
    Views
    3,655

    Do you maybe have an example sketch for slave...

    Do you maybe have an example sketch for slave mode 8bit read/write?
    I'm trying to communicate with an raspberry pi and i got a library from one of the members of this forum but the comm is not...
  28. Replies
    23
    Views
    5,466

    How do I set for 8bit mode?

    How do I set for 8bit mode?
  29. Replies
    23
    Views
    5,466

    I will take a look at the kinetis file. About...

    I will take a look at the kinetis file.

    About the word ordering... I did some more digging i inserted a white space after every Serial print (don't know why i didn't do that in the start) and i...
  30. Replies
    23
    Views
    5,466

    Do you know where can I find info on all of these...

    Do you know where can I find info on all of these commands ?
    SPI_CTAR_FMSZ(15),DMA_TCD0_NBYTES_MLNO=2;,.... (and others) I'm really a beginner at these things :))))
  31. Replies
    23
    Views
    5,466

    I was reading some forums and it seems they are...

    I was reading some forums and it seems they are both little endian...
    I will try you changes and see what happens....
    The raspberry sends 64bytes/transfer and the data is 32bit. The rpi sends...
  32. Replies
    23
    Views
    5,466

    How do I setup for 16bit mode?

    How do I setup for 16bit mode?
  33. Replies
    20
    Views
    3,655

    Did you manage to get the program working with...

    Did you manage to get the program working with 32bit write/reads?
  34. Replies
    23
    Views
    5,466

    Is it possible to modify your program to recieve...

    Is it possible to modify your program to recieve in 32bit. I tried using your program and i get the data without problems but the data is seperated into 4 positions inside the array. And the array...
  35. Replies
    23
    Views
    5,466

    Fixed it :) it seems there was a change in...

    Fixed it :) it seems there was a change in teensyduino core files.. instead of
    SPI0. i replaced them with
    KINETISK_SPI0.


    #define NDAT 8

    int m_isMaster=0;
    short xx[NDAT],yy[NDAT];
  36. Replies
    23
    Views
    5,466

    The code you posted doesn't compile :/ ...

    The code you posted doesn't compile :/

    sketch_nov09a:37: error: 'SPI0' was not declared in this scope
    SPI0.MCR = //SPI_MCR_MDIS | // module disable

    ^

    'SPI0' was not declared in...
  37. Replies
    23
    Views
    5,466

    Actually I'm not the author of the program :) the...

    Actually I'm not the author of the program :) the program is called Machinekit and someone has made a plugin that sends position and button commands via SPI to a PIC. All fitmware is available on...
  38. Replies
    23
    Views
    5,466

    So bringing an old thread to life:) I was...

    So bringing an old thread to life:) I was wondering if this example works with T3.5/3.6?
    I have a raspberry pi with a program that sends data to the SPI. So now I'm in need of a Teensy slave and I...
  39. Replies
    124
    Views
    76,724

    I love teensys also:)) but I buy them when...

    I love teensys also:)) but I buy them when needed:))))
  40. Replies
    124
    Views
    76,724

    Man this must have been expensive :) I managed to...

    Man this must have been expensive :) I managed to get Marlin working with T3.6 and built in SD card...
  41. Replies
    6
    Views
    1,471

    Sorry.. I looked at the library. It even has a...

    Sorry.. I looked at the library. It even has a nice example on exactley what I need:)
    Thank you:)
  42. Replies
    6
    Views
    1,471

    How fast is the read of the two ADCs. Did anyone...

    How fast is the read of the two ADCs. Did anyone measured the time it takes to complete the read?
  43. Replies
    6
    Views
    1,471

    Woww thank you! It seems I missed that! Thank you...

    Woww thank you! It seems I missed that! Thank you so much:) I will try it out:)
  44. Replies
    6
    Views
    1,471

    T 3.6 reading two analog inputs simultaneously

    Hello!
    Is it possible to read two or more analog inputs at the same time?
    I was looking around the forum and googling and I can't find anything:/
    Thank you
  45. Replies
    4
    Views
    610

    Yes I know :) not a big problem:)

    Yes I know :) not a big problem:)
  46. Replies
    4
    Views
    610

    Thank you for your reply:) I managed to go...

    Thank you for your reply:)
    I managed to go around this problem by entering new entries to boards.txt and usb_dev.h
  47. Replies
    11
    Views
    1,301

    Wow! I'm from europe and I buy my teensys from...

    Wow! I'm from europe and I buy my teensys from Diigiit robotics. Every single board was working perfectly. And yes i saw all have an orange led :)
  48. Replies
    4
    Views
    610

    Extracting the joystick library

    Hello!

    I have a question on how to extract the Joystick library.
    I'm working on a code that has multiple combinations and I would like to display different names based on different #defines in my...
  49. Replies
    420
    Views
    85,479

    Hehe nice work.. I had in mind the two lcd code...

    Hehe nice work..
    I had in mind the two lcd code you were talking about ;)
    What is that project on the picture btw?
  50. Replies
    420
    Views
    85,479

    Can you please share your code? Thank you

    Can you please share your code?
    Thank you
Results 1 to 50 of 88
Page 1 of 2 1 2