Author |
Message |
Topic: #int_RDA never fires (18F4520) compiler version = PCH 4.094 |
iKevin
Replies: 2
Views: 4568
|
Forum: General CCS C Discussion Posted: Sun Feb 21, 2010 9:06 pm Subject: #int_RDA never fires (18F4520) compiler version = PCH 4.094 |
I put those enables in and it works, thanks a lot buddy.
#include <18f4520.h>
#device ICD=TRUE
#fuses HS,NOLVP,NOWDT
#use delay (clock=20000000)
#define tx_pin PIN_C6
#defin ... |
Topic: #int_RDA never fires (18F4520) compiler version = PCH 4.094 |
iKevin
Replies: 2
Views: 4568
|
Forum: General CCS C Discussion Posted: Sun Feb 21, 2010 8:06 pm Subject: #int_RDA never fires (18F4520) compiler version = PCH 4.094 |
Hi,
I have an interrupt for RS232 (#int_RDA), but it never fires when it receives data.
So I checked the include file 18f4520.c and found:
#define INT_RDA 0x9D20
I checke ... |
Topic: OT - Who uses SPICE? What type? |
iKevin
Replies: 7
Views: 6525
|
Forum: General CCS C Discussion Posted: Sat Feb 20, 2010 5:28 pm Subject: OT - Who uses SPICE? What type? |
Use Multisim Analog Devices Edition, its free. |
Topic: Need help with RS232 and interrupt |
iKevin
Replies: 7
Views: 6217
|
Forum: General CCS C Discussion Posted: Sat Apr 12, 2008 9:50 pm Subject: Need help with RS232 and interrupt |
Douglas Kennedy, how would I set the flag for this? |
Topic: Need help with RS232 and interrupt |
iKevin
Replies: 7
Views: 6217
|
Forum: General CCS C Discussion Posted: Sat Apr 12, 2008 1:05 pm Subject: Need help with RS232 and interrupt |
I guess that will do then. What about sending ADC data every 1-2 seconds instead of every time it's done with the conversion? Can you help me with an example code?
Thanks a lot, KU5D. |
Topic: Need help with RS232 and interrupt |
iKevin
Replies: 7
Views: 6217
|
Forum: General CCS C Discussion Posted: Sat Apr 12, 2008 12:40 pm Subject: Need help with RS232 and interrupt |
1. Basically, I trying to control leds/motor via computer and also read the temperature from the sensor. Thus, the main() turns on/off leds and varies motor's speed.
2. Lets say I have something li ... |
Topic: Need help with RS232 and interrupt |
iKevin
Replies: 7
Views: 6217
|
Forum: General CCS C Discussion Posted: Sat Apr 12, 2008 12:10 pm Subject: Need help with RS232 and interrupt |
I need to have interrupts for something like this:
Interrupt for receiving data:
1 .The main program is doing whatever it has to do.
2. Computer transmits data to PIC, the program finishes its cu ... |
Topic: PIC18F452 and RS232 |
iKevin
Replies: 3
Views: 5043
|
Forum: General CCS C Discussion Posted: Sun Mar 30, 2008 9:07 pm Subject: PIC18F452 and RS232 |
Thanks meereck. It kinda works now but I still have one problem:
#include <18F452.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4mhz)
#use rs232(baud=9600, bits=8, parity=N ... |
Topic: PIC18F452 and RS232 |
iKevin
Replies: 3
Views: 5043
|
Forum: General CCS C Discussion Posted: Sun Mar 30, 2008 4:17 am Subject: PIC18F452 and RS232 |
This is the code that I have:
#include <18F452.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4mhz)
#use rs232(baud=9600, bits=8, parity=N, stop=1, ERRORS, xmit=PIN_C6, rcv= ... |
|