Search results

  1. T

    delayed writes happening when there shouldn't be any

    so i stream data over bluetooth. when i read the data using a c application on linux, it works fine - I just invoke read(fd, buff, len). On a mac though, it drops 0x00s for some reason!?@%#@%$% wtf? anyone have any idea why?
  2. T

    delayed writes happening when there shouldn't be any

    nevermind, it seems the problem is downstream..
  3. T

    delayed writes happening when there shouldn't be any

    I'll post some details once I'm done So I've for a problem, and I can't find the corresponding source. For some reason, Serial1.write tries to be smart and is pissing me off in the process. It seems to want to remove 0x00 for some reason (?) To demonstrate, when I do : Serial.write(0x00)...
  4. T

    delayed writes happening when there shouldn't be any

    and it work GREAT. the code is nice and clean - i got rid of my ringbuffer. and it streams data so fast. thanks for the help. this is a nice little chip.
  5. T

    delayed writes happening when there shouldn't be any

    Not tested, but I think this is all that is required, which is pretty awesome.. // enable hardware handshaking (CTS) -RN PORTD_PCR5 |= 3<<8; //Configure D5 to act as CTS handshaking pin UART0_MODEM |= 0x01; //enable TXCTSE - only transmit when CTS is asserted -reza
  6. T

    delayed writes happening when there shouldn't be any

    Ok, found it - it's a multiplexing pin, I'm going to use pin 20 (D5) that I need to switch to Alt3. Not sure how to do that.. still looking.
  7. T

    delayed writes happening when there shouldn't be any

    The uart is pretty bad-ass on this sucker. And you code is nice and cleanly written. A pleasure to read. the only thing i've not figured out is what CTS_B is - is that a pin? can it be assigned to a pin? How do I configure it?
  8. T

    delayed writes happening when there shouldn't be any

    Ah. Where can I get some docs on the uart? How would you recommend implementing it with the FIFO?
  9. T

    delayed writes happening when there shouldn't be any

    Actually, I was editing the wrong file. I use serial3 elsewhere but it's serial1 that i need to edit. The code in this section is written differently. notably this section if ((c & UART_C2_TIE) && (UART0_S1 & UART_S1_TDRE)) { //digitalWriteFast(5, HIGH)...
  10. T

    delayed writes happening when there shouldn't be any

    I take it that this is the section that needs to be edited.. if ((c & UART_C2_TIE) && (UART2_S1 & UART_S1_TDRE)) { //digitalWriteFast(5, HIGH); head = tx_buffer_head; tail = tx_buffer_tail; if (head == tail) { UART2_C2 = C2_TX_COMPLETING; } else { if (++tail >= TX_BUFFER_SIZE)...
  11. T

    delayed writes happening when there shouldn't be any

    What's the size of the buffer? I actually have implemented my own ringbuffer but if I can write all the data to Serial and have that handle the work in the background with hardware handshaking, that would be a much better solution. And I take it that the code will be thread safe (i.e. if I add...
  12. T

    delayed writes happening when there shouldn't be any

    I'm trying to stream at a high rate (961200 baud) to a bluetooth device. i need to stop sending it data when it tells me to. but if you look at the output of it, you'll see that even after I stop sending it bytes (via Serial.write()) it still send out bytes - as if they are being buffered...
  13. T

    Teensy 3.0 bootloader stopped working

    turns out somehow it killed my usb port on my monitor (?) -- plugging it into a different usb port works fine. strange.
  14. T

    Teensy 3.0 bootloader stopped working

    I just got the unit and wired it up. It seemed to work fine, and I uploaded the example bink program easily. I changed the blink rate from 1/second to 10/second and hit upload. It looked like it worked, but the unit just stopped responding. when I unplugged it and plugged it back in, it...
Back
Top