--
You received this message because you are subscribed to the Google Groups "PIC24 Assembly-to-C Book" group.
To post to this group, send email to pic24-assemb...@googlegroups.com.
To unsubscribe from this group, send email to pic24-assembly-to-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pic24-assembly-to-c-book?hl=en.
Hello;
Thank you very much for your vary quick response. Thank you for letting me realise that I am not doing anything wrong. I just wish that Microchip would say this in their data sheet. I am still working on a BIT BANGING solution to my code. As soon as I have it working, I would like, with your permission, to post it to your forum.
Best regards
Dave
Hello,
Recently I contacted you re not getting the PIC24FJ64GB004 to communicate @ 250Kb. Well after much disappointment trying to use BIT-BANGING method I finally got the code to work, may be it was serendipity or happenstance. I have attached a copy of the code.
The following three (3) lines were added to the function void SEND_DMX_Data (int RS232_OUT) in the original code
BIT_OUT = 1; // Set UART O/P pin HI
DELAY_52_MicroSec (); // Adding these three (3) additional lines of code (BIT_OUT = 1 and DELAY_52_MicroSec () ) made the difference.
DELAY_52_MicroSec (); // Before these lines of code the code would not work
As I mentioned before, I am new at programming in C and am in need of a little help. How would I set up a Buffer to transmit and receive? And how would I access the data in the buffer? Your help would be very appreciated.
Thank so much.
Dave
From: pic24-assemb...@googlegroups.com [mailto:pic24-assemb...@googlegroups.com] On Behalf Of Robert Reese
Sent: Thursday, October 06, 2011 10:38 AM
To: pic24-assemb...@googlegroups.com
Subject: Re: Can't get PIC24F UART to work @ 250Kb
The max speed that we have been able to get work reliably is 115K baud, and that only with the PIC24H family when it is using the PLL and operating at a 40MHz instruction clock frequency.
Bryan,
Thanks very much for providing me with the requested information.
Yes, the code sends two Stop Bits ( Bit 0 of U1MODE is set to ‘1’ --- U1MODE = 0x8809; )
Also, my calculation for “DELAY_52_MicroSec ()” was incorrect. The value I had, yields a delay much greater than 52 µs.
Dave