Soft_Usart Routine
Soft_Usart Routine
Is it me or is there a problem with these routines. When I try to compile I get a DIVIDE BY ZERO + other compiler errors!
Re: Soft_Usart Routine
Please post your code.
Re: Soft_Usart Routine
void main()zristic wrote:Please post your code.
{
Soft_Uart_Init(&PORTB, 1, 2, 9600, 0);
}
I have tried various processors!
Re: Soft_Usart Routine
That simple? Hmmm.
Have you checked if your clock is not equal to zero?
I will check it tomorrow morning anyway.
Have you checked if your clock is not equal to zero?
I will check it tomorrow morning anyway.
This is not a compiler problem but a documentation problem see this post.
http://www.mikroe.com/forum/viewtopic.php?t=1481
use:
http://www.mikroe.com/forum/viewtopic.php?t=1481
use:
Code: Select all
void main()
{
Soft_Uart_Init(PORTB, 1, 2, 9600);
}
Graham Ambrose