![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
Lion Guest
|
The problem about usart command. |
Posted: Fri Jun 27, 2008 11:02 pm |
|
|
Hi,
I got a problem about usart on CCS C Compiler.
I am using CCS on PIC 16f877 and C18 C compiler on PIC 18f452.
My problem is that I can use the command which is UARTOpen(baud rate) to control the usart in PIC 18f452 to send data to another microcontroller with the A7eng. eb501 bluetooth but I do not find any similar command in CCS C compiler.
Does anyone know that is there any similar function or command to use?
I read the reference manual and the "#use rs232" is the only command which I can find in the reference manual.
any help will be appreciated.
Thank you very much.
Sincerely,
Brian |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Sat Jun 28, 2008 2:16 am |
|
|
#use rs232, is the command.
If you want to change the baud rate _after using this_, there is a separate 'set_uart_speed' command.
Also, remember that with CCS, you have 'symbolic' UART 'streams', so you can setup the same UART with multiple #use statements, and access the settings you want, by just selecting the stream name.
It is actually quite a 'nice' part of the language.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
Lion Guest
|
The command about usart problem. |
Posted: Sat Jun 28, 2008 1:03 pm |
|
|
Ttelmah wrote: | #use rs232, is the command.
If you want to change the baud rate _after using this_, there is a separate 'set_uart_speed' command.
Also, remember that with CCS, you have 'symbolic' UART 'streams', so you can setup the same UART with multiple #use statements, and access the settings you want, by just selecting the stream name.
It is actually quite a 'nice' part of the language.
Best Wishes |
Hi,
Thank you for your reply.
I am really new beginner on this. Could you explain what do you mean "'symbolic' UART 'streams'". ? Could you give some example?
Thank you very much.
Sincerely,
Brian |
|
![](templates/subSilver/images/spacer.gif) |
tranz
Joined: 10 Feb 2007 Posts: 78
|
|
![](templates/subSilver/images/spacer.gif) |
Lion Guest
|
|
Posted: Mon Jul 07, 2008 1:13 am |
|
|
Hi Tranz,
I am reading the content now.
Thank you for your help.
Thank you very much.
Sincerely,
Brian |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|