Do this and you will be ok with 10MHz:

const serial_hw_baudrate = 57_600


On Monday, June 17, 2013 1:06:13 AM UTC+3, [email protected] wrote:
>
> 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.


Reply via email to