Author |
Message |
Topic: receiving data serially using the pic18f452 |
grasspuddle
Replies: 8
Views: 8130
|
Forum: General CCS C Discussion Posted: Thu Apr 03, 2008 10:01 am Subject: receiving data serially using the pic18f452 |
does the module need any handshaking? usually RTS or another pin needs to be set high/low or nothing will happen.
is a computer module? if it needs more than a 5volt logic you'll have to look into ... |
Topic: Changing the baudrate |
grasspuddle
Replies: 7
Views: 6288
|
Forum: General CCS C Discussion Posted: Thu Oct 25, 2007 12:58 pm Subject: Changing the baudrate |
what sherpa said ^^^
use rec for hardware, and try to use another pin for software xmit
receive is important for hardware, but you can usually get away with a software xmit |
Topic: Changing the baudrate |
grasspuddle
Replies: 7
Views: 6288
|
Forum: General CCS C Discussion Posted: Wed Oct 24, 2007 9:20 am Subject: Changing the baudrate |
It might be easier to use 2 #use commands.
Try:
#use RS232(baud=4800,parity=N,xmit=PIN_C6,bits=8,STREAM=OUT_UART)
#use RS232(baud=9600,parity=N,rcv=PIN_C7,bits=8,STREAM=IN_UART)
Of course, r ... |
Topic: Brown out reset |
grasspuddle
Replies: 9
Views: 14531
|
Forum: General CCS C Discussion Posted: Wed Oct 03, 2007 7:41 am Subject: Brown out reset |
The low voltage versions of pic chips can still operate down to 2v. So if someone wants their program to still function they need to disable the reset. |
Topic: wireless module |
grasspuddle
Replies: 2
Views: 4812
|
Forum: General CCS C Discussion Posted: Mon Oct 01, 2007 7:36 am Subject: wireless module |
'simple' breadboardable bluetooth:
http://www.sparkfun.com/commerce/product_info.php?products_id=8461
or 'simple' wireless
http://www.sparkfun.com/commerce/product_info.php?products_id=705 |
Topic: Beginer needs help for PIC18F4550 ! |
grasspuddle
Replies: 4
Views: 4236
|
Forum: General CCS C Discussion Posted: Thu Sep 13, 2007 6:46 am Subject: Beginer needs help for PIC18F4550 ! |
HS means an external oscillator. You need to connect an 8mhz crystal or resonator. Try changing the HS to the internal (i think the fuse is INTRC but look it up) and using the setup_oscillator(8mhz); ... |
Topic: CCS bootloader overwrites himself? |
grasspuddle
Replies: 5
Views: 4894
|
Forum: General CCS C Discussion Posted: Thu Aug 23, 2007 8:09 am Subject: CCS bootloader overwrites himself? |
the ccs bootloader uses 0-500 (hex) for the bootloader. look at your program code you want to load. that data range should be empty and the beginning of your code should start around 501 |
Topic: Best serial comms program for PC? |
grasspuddle
Replies: 10
Views: 14687
|
Forum: General CCS C Discussion Posted: Thu Jul 26, 2007 9:38 am Subject: Best serial comms program for PC? |
SIOW is my favorite.
Try redownloading or reinstalling your CCS. It should be there. |
Topic: Interrupts on the serial port |
grasspuddle
Replies: 10
Views: 11827
|
Forum: General CCS C Discussion Posted: Tue Jul 17, 2007 12:15 pm Subject: Interrupts on the serial port |
I don't see if you said if you're using a hardware uart or not. If you are using a hardware uart then use the isr function. Look to the examples CCS gave you for code that uses the isr to store into a ... |
Topic: Reading and writing to flash |
grasspuddle
Replies: 3
Views: 5419
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2007 1:44 pm Subject: Reading and writing to flash |
program memory is the executed code, I believe you want the 'write_eeprom()' and 'read_eeprom()' command
see example ex_intee.c |
Topic: large int_rda causes problems with int_rda2 -HELP |
grasspuddle
Replies: 11
Views: 13433
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2007 7:46 am Subject: large int_rda causes problems with int_rda2 -HELP |
Whenever I need a large amount of code executed during an interrupt I set a flag and execute the code during the main while loop. So basically the only thing in my interrupts is a flag being set.
I ... |
Topic: bootloader / SIOW "timeout while downloading" |
grasspuddle
Replies: 8
Views: 13686
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2007 7:38 am Subject: bootloader / SIOW "timeout while downloading" |
when using siow, do you select 'open file' or 'download software' from the file menu?
when you said you proved it worked with the simple terminal program, did it download or did you just see the tr ... |
Topic: Fuses - Major Gotcha |
grasspuddle
Replies: 14
Views: 13407
|
Forum: General CCS C Discussion Posted: Tue Jun 26, 2007 7:25 am Subject: Fuses - Major Gotcha |
I've just checked when the WDT was off, never thought that it would be different when it was on by fuses, my bad
Also since i'm a masochist:
Register 24-14 shows the WDTCON register. This ... |
Topic: Wireless Communication Problem |
grasspuddle
Replies: 3
Views: 5497
|
Forum: General CCS C Discussion Posted: Tue Jun 26, 2007 6:39 am Subject: Wireless Communication Problem |
Is your for loop suppose to be empty?
void main()
{
char ch;
int checksum1, checksum2, index;
set_tris_b( 0xFF );
port_b_pullups( 1 );
... |
Topic: Fuses - Major Gotcha |
grasspuddle
Replies: 14
Views: 13407
|
Forum: General CCS C Discussion Posted: Tue Jun 26, 2007 6:33 am Subject: Fuses - Major Gotcha |
what do you want the fuse changed to? if it is to turn the watchdog timer off completely then just turn off the watchdog in the beginning of your code
( setup_wdt(WDT_OFF); ) |
|