I read the recent thread very relevant to my question, but it's left me scratching my head.
I, too, have:
Code: Select all
' Include Libraries:-
Include "suart.bas"
Include "usart.bas"
Code: Select all
USART.SetBaudrate(br2400) ' Set hardware USART baud
suart.SetBaudrate(sbr9600) ' Set software SUART baud
suart.SetTX(PORTA.2)
I read the other thread and it suggests:
Code: Select all
USART.SetBaudrate(br2400) ' Set hardware USART baud
UART.SetBaudrate(sbr9600) ' Set software SUART baud
UART.SetTX(PORTA.2)
If I include Suart.bas, how come it doesn't like the SUART. prefix in my command?
I thought it was good practise (mandatory?) to use the lib name as a prefix to prevent ambiguity etc?
How come 'UART' refers to the SUART library?
Have I misread the 'Help'? Where has the S gone?
Query No.2 which is a by-the-way.
I haven't tried running it yet, but was just wondering if 9600 on Suart was likely to be safe on an 18F2520 @ 8MHz? Or should I slow it down/use faster crystal.
Ta.