I have found that SERIN2/SEROUT2 works fine at 9600 baud. I am using the internal 4Mhz oscillator (and a calibration routine). So if you are using an XTAL, I'm sure it will work.
I'm using a 16F676.
I have found that SERIN2/SEROUT2 works fine at 9600 baud. I am using the internal 4Mhz oscillator (and a calibration routine). So if you are using an XTAL, I'm sure it will work.
I'm using a 16F676.
Thanks for all the responses. I was interested in mister_e's suggestion of using DEBUG or DEBUGIN. He mentions limitations, but if they take the same mofifiers as serin/out2, then I wonder what these could be?
Also, why is it able to run more quickly? It must have something to do with the overhead going on in the background with the different commands...?
I've just been sitting down trying to write a parser for NMEA data to read in at 9600. Its all CSV, but annoyingly some of the fields are of varying length, making parsing a pain. I can tell the PIC to read a string until a certain charatcter is reached, or to read in x bytes and interpret as a number, but I cna't tell it to read in bytes until a certain character is reached (i.e a comma) then interperet as a number. I could probably read in as a string, then convert though...
Oh well, will get there at some point :-)
Cheers,
Ben
I am right this minute using a 'F877 at 9600. I am reading 14 bytes with errors on the last 4 eceived. So I would have to say that I will need to go up to a 8MHz xtal. Just a bit too "iffy" at 4MHz.
I might try the DEBUGIN as mentioned above and see what difference that makes. Stay tuned.
.
.
.
.
Hmm...Nope, still the same. Gunna hafta get a faster xtal next time I'm up town..
Oh Well....
Last edited by muddy0409; - 7th November 2005 at 02:14.
Well, fancy that!!
After a bit of jiggery pokery with the decoding of the input array, it is working PERFECTLY with the DEBUGIN command. Very Pleased.
Some issues with DEBUGIN is that I believe that you can only use receive information on the pin that is defined at the beginning of the program and whatever baud rate you choose to DEFINE can not be changed in the program.
Bookmarks