Author |
Message |
Topic: using fputc and kbhit with streams |
big_nige
Replies: 7
Views: 10168
|
Forum: General CCS C Discussion Posted: Wed Apr 28, 2010 3:19 pm Subject: using fputc and kbhit with streams |
Aah - understand what you are getting at now. I agree - it is very un-c - but, if if works . Must admit that I didn't think you could do it either - the actual code reads an external EEPROM int ... |
Topic: using fputc and kbhit with streams |
big_nige
Replies: 7
Views: 10168
|
Forum: General CCS C Discussion Posted: Wed Apr 28, 2010 2:38 am Subject: using fputc and kbhit with streams |
Thanks for the reply Wayne,
1 - I dont think so. The code pasted is cut out of a larger piece of code. The msg array is used for variable length strings fed in from a GPRS module (SMS messages). I ... |
Topic: using fputc and kbhit with streams |
big_nige
Replies: 7
Views: 10168
|
Forum: General CCS C Discussion Posted: Wed Apr 28, 2010 12:19 am Subject: using fputc and kbhit with streams |
Hi all,
Using PCWH 4.107 with a 18LF2550.
I am trying to use a software uart on a couple of pins in conjunction with the main UART. I can't get the second uart to work however, the following cod ... |
Topic: gets() not working with PIC18LF2550 |
big_nige
Replies: 4
Views: 6331
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2010 2:35 am Subject: gets() not working with PIC18LF2550 |
yeah - that fixed it.
I tried my own quick-and-dirty getc loop testing for ENTER key and it works too - so I would agree that there is a bug in the compiler somewhere.
Thanks for your help.
N ... |
Topic: gets() not working with PIC18LF2550 |
big_nige
Replies: 4
Views: 6331
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2010 12:59 am Subject: gets() not working with PIC18LF2550 |
As requested:
CCS PCH C Compiler, Version 4.101, 51450 22-Mar-10 17:56
Filename: /home/nigel/redearth/smseries/test_ccs.lst
ROM used: 2 ... |
Topic: gets() not working with PIC18LF2550 |
big_nige
Replies: 4
Views: 6331
|
Forum: General CCS C Discussion Posted: Fri Mar 19, 2010 11:06 pm Subject: gets() not working with PIC18LF2550 |
Hi All,
Using PCHL 4.101; 7/1/2009
gets() seems to be hanging and I am not sure what is going on.
Test code:
#include <18F2550.h>
#fuses INTRC_IO,CPUDIV1,NOWDT,NOPROTECT
#use de ... |
Topic: write_eeprom() hangs program when WDT is enabled |
big_nige
Replies: 5
Views: 5808
|
Forum: General CCS C Discussion Posted: Tue Dec 01, 2009 12:21 am Subject: write_eeprom() hangs program when WDT is enabled |
aaahh - It all becomes clear
Thanks for the advice - much appreciated.
Cheers,
Nigel |
|