CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 9 matches
CCS Forum Index
Author Message
  Topic: 18f26j50 - two uarts and interrupts
macias86

Replies: 12
Views: 11041

PostForum: General CCS C Discussion   Posted: Tue Apr 26, 2011 2:44 am   Subject: 18f26j50 - two uarts and interrupts

The thing that annoys me though, is that with the wrong register address, your code would not have worked as you claimed:

"I can use both separately (only RDA active or only RDA2 active) but ...
  Topic: 18f26j50 - two uarts and interrupts
macias86

Replies: 12
Views: 11041

PostForum: General CCS C Discussion   Posted: Mon Apr 25, 2011 3:58 pm   Subject: 18f26j50 - two uarts and interrupts
Ok. How can i auto locate registers in ccs?
  Topic: 18f26j50 - two uarts and interrupts
macias86

Replies: 12
Views: 11041

PostForum: General CCS C Discussion   Posted: Mon Apr 25, 2011 12:04 pm   Subject: 18f26j50 - two uarts and interrupts
#byte RCSTA2 = 0xF9C

instead of

#byte RCSTA2 = 0xFA8

and then this posted code works perfect.
Stupid family changes..
Thought there is some trick like starting pll separately. I e ...
  Topic: 18f26j50 - two uarts and interrupts
macias86

Replies: 12
Views: 11041

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2011 11:05 am   Subject: 18f26j50 - two uarts and interrupts
Yes i know that about usb. i took old version to modify into new program. :P

What can i do with those two usart rx interrupts?
  Topic: 18f26j50 - two uarts and interrupts
macias86

Replies: 12
Views: 11041

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2011 3:19 am   Subject: 18f26j50 - two uarts and interrupts
I didnt ask how to use usb ;) (btw. i included usb_cdc.h and i use usb_init_cs();). Thanks for comments to OERR and FERR.

Anyway I asked how to use two RX interrupts together. Where is the trick? I ...
  Topic: 18F6722 INT_RDA2 problem
macias86

Replies: 5
Views: 8810

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2011 2:24 am   Subject: 18F6722 INT_RDA2 problem
Did You solve the problem? Can you use two uart interrupts together?
  Topic: PIC18F45k20
macias86

Replies: 2
Views: 4926

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2011 2:18 am   Subject: PIC18F45k20
Yes Cool
  Topic: 18f26j50 - two uarts and interrupts
macias86

Replies: 12
Views: 11041

PostForum: General CCS C Discussion   Posted: Sat Apr 23, 2011 2:24 am   Subject: 18f26j50 - two uarts and interrupts
This is the rest of my code

#include <18F26j50.h>
#fuses HSPLL,NOWDT,NOPROTECT,NODEBUG,PLL2,NOCPUDIV,STVREN,NOXINST
#use delay(clock=48000000)

v4.114

it is hardware project
...
  Topic: 18f26j50 - two uarts and interrupts
macias86

Replies: 12
Views: 11041

PostForum: General CCS C Discussion   Posted: Fri Apr 22, 2011 5:36 pm   Subject: 18f26j50 - two uarts and interrupts
I would like to communicate with gps and gsm modem. My question is: how can i use interrupt on usart1 and 2 in the same time? is it possible? what am i doing wrong?
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group