Hi!
10MHz is an unlucky choice. The hardware USART can be set to baud rates of 104167 or 125000 baud on 10MHz. You can try to use the 125000 baud setting, it is 8.5% off the nominal speed of 115200 baud. It can work if you're lucky, but success may depend on temperature and the phase of the moon. This is why the lib refuses to set the speed, as it could easily not work. If you can set the "other end" to arbitrary baud rates, just set that to 125000, too, and all will be well. Greets, Kiste > > > >Hello, >I have a PIC 16F977 with a 10 Mhz crystal. I am trying to compile the sample >file "16f877_serial_hardware.jal". It compiles fine if I leave the target >clock speed set at 20_000_000. But when I change it to 10_000_000 (since I am >using a 10 Mhz crystal) the compiler gives me the following error: > >Compilation started at :6/16/2013 4:05:30 PM >jal 2.4o (compiled May 8 2011) >[Error] (lib/usart_common.jal) [Line 95] "asynchronous baudrate deviation is >too large" >Compiler CommandLine: C:\PROGRA~2\JALPack\compiler\jalv2.exe "C:\Program >Files (x86)\JALPack\sample\16F\16f877_serial_hardware.jal" -s >"C:\PROGRA~2\JALPack\lib" -no-variable-reuse > >Errors :1 Warnings :0 > >Can somebody tell me what to do about this? I don't have any 20 Mhz crystals >on hand and won't be able to get one for awhile. > >Thanks, >Shawn >-- >You received this message because you are subscribed to the Google Groups >"jallib" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to [email protected]. >To post to this group, send email to [email protected]. >Visit this group at http://groups.google.com/group/jallib. >For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jallib. For more options, visit https://groups.google.com/groups/opt_out.
