View previous topic :: View next topic |
Author |
Message |
small_chick
Joined: 17 Jul 2012 Posts: 53
|
options in " #use rs232 " pre-processor directive |
Posted: Fri Jul 27, 2012 6:30 pm |
|
|
I've read options in " #use rs232 " pre-processor directive, it mentions two follow options: UART1 and UART2 for the chips first and second hartware uart. This means some chips have more than one uart hardware.
I'm using PIC16F887, it seems that this chip has only one uart hardware, is it right ?
Thanks! |
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Fri Jul 27, 2012 6:32 pm |
|
|
Is it really that difficult to look through the datasheet for that chip ?
Or is it as you commented before that you are lazy?
mikey _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
small_chick
Joined: 17 Jul 2012 Posts: 53
|
|
Posted: Fri Jul 27, 2012 7:39 pm |
|
|
gpsmikey, you are fun!
I've read datasheet, but it doesn't mention "uart hardware"! It just mentions EUSART asynchronous mode and EUSART synchronous mode ! This means two uart hardware??? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19546
|
|
Posted: Sat Jul 28, 2012 2:47 am |
|
|
Look at the table, right at the front of the data sheet. Top of page 2. It lists each peripheral, and how many of each are present.
It is there for a reason.....
Best Wishes |
|
|
small_chick
Joined: 17 Jul 2012 Posts: 53
|
|
Posted: Sat Jul 28, 2012 6:09 am |
|
|
thank you very much,Ttelmah! |
|
|
small_chick
Joined: 17 Jul 2012 Posts: 53
|
|
Posted: Sat Jul 28, 2012 6:12 am |
|
|
everybody, I'd like to ask you one more problem. I need to calculate arcsin value of a variable, would you mind recommending me some ways ? Thanks ! |
|
|
jeremiah
Joined: 20 Jul 2010 Posts: 1355
|
|
Posted: Sat Jul 28, 2012 6:45 am |
|
|
There's a listing for it in the compiler manual. Check under the asin() function. |
|
|
|