Author |
Message |
Topic: 18f26j50 - two uarts and interrupts |
macias86
Replies: 12
Views: 11008
|
Forum: 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: 11008
|
Forum: 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: 11008
|
Forum: 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: 11008
|
Forum: 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: 11008
|
Forum: 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: 8796
|
Forum: 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: 4915
|
Forum: General CCS C Discussion Posted: Sun Apr 24, 2011 2:18 am Subject: PIC18F45k20 |
Yes |
Topic: 18f26j50 - two uarts and interrupts |
macias86
Replies: 12
Views: 11008
|
Forum: 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: 11008
|
Forum: 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? |
|