Author |
Message |
Topic: No I2C interrupt for General Call PIC18F |
darahayes
Replies: 1
Views: 8528
|
Forum: General CCS C Discussion Posted: Thu May 09, 2019 1:27 am Subject: No I2C interrupt for General Call PIC18F |
I have a simple 4 slave one master on an I2C bus (all are pic 18f258 devices) The slaves are all working fine when receiving bytes sent to their individual address's.
However from time to time I ... |
Topic: INTCON bit 6 and INT_RDA not working from time to time |
darahayes
Replies: 5
Views: 9588
|
Forum: General CCS C Discussion Posted: Sat Jan 18, 2014 4:07 am Subject: INTCON bit 6 and INT_RDA not working from time to time |
Ok thank you for the advice on using GLOBAL only , I don't use the Port B interrupt only timers and RDA and when doing fast data exchanges the timer values are about to change and therefore the inter ... |
Topic: INTCON bit 6 and INT_RDA not working from time to time |
darahayes
Replies: 5
Views: 9588
|
Forum: General CCS C Discussion Posted: Sat Jan 18, 2014 3:27 am Subject: INTCON bit 6 and INT_RDA not working from time to time |
My Compiler is PCWHD 4.141 , all I am doing is as I have described turning off several ints and back on again in the order I have described , if one never turns off the interrupts then I suppose its ... |
Topic: INTCON bit 6 and INT_RDA not working from time to time |
darahayes
Replies: 5
Views: 9588
|
Forum: General CCS C Discussion Posted: Fri Jan 17, 2014 5:12 pm Subject: INTCON bit 6 and INT_RDA not working from time to time |
Having had many months of intermittent problems with INT_RDA occasionally not working on a PIC18F258 device and reading many posts of similar apparently unresolved INT_RDA not working problems, I have ... |
Topic: is the forum search feature working ? |
darahayes
Replies: 2
Views: 4739
|
Forum: General CCS C Discussion Posted: Fri Nov 22, 2013 6:05 am Subject: is the forum search feature working ? |
hello
I have searching the forum looking for various topics and today I came across a topic I had been looking for months ago and the original poster was told to enter a certain string and press sea ... |
Topic: Passing variables from C to Assembler |
darahayes
Replies: 3
Views: 8867
|
Forum: General CCS C Discussion Posted: Thu Nov 21, 2013 7:43 am Subject: Passing variables from C to Assembler |
Could some one please show how the passing of variables is achieved between a Pic c program and an inline #ASM routine and perhaps how we can get ASM modified variables back into the C program once ag ... |
Topic: restart_cause ALWAYS NORMAL POWER UP |
darahayes
Replies: 3
Views: 6640
|
Forum: General CCS C Discussion Posted: Fri Mar 20, 2009 3:47 am Subject: restart_cause allways gives power up |
Ok thanks I have seen that the setup wdt statement must be after the restart cause function read as this also destroys the status bits i have now got the program more or less working but my problem wa ... |
Topic: restart_cause ALWAYS NORMAL POWER UP |
darahayes
Replies: 3
Views: 6640
|
Forum: General CCS C Discussion Posted: Thu Mar 19, 2009 7:52 am Subject: restart_cause ALWAYS NORMAL POWER UP |
Trying for first time to get a wdt working on an 16F876. Used the standard methods of enabling the watch dog timer and setting a switch statement after main () to see what the cause of the reboot was ... |
Topic: fputc() NOT DEFINED |
darahayes
Replies: 10
Views: 12624
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2009 6:19 pm Subject: RESINSTALL WORKS |
Many thanks the re install did the trick I was missing some defines in the 16f876.h file see below
THank you for all your help I am sorted now best wishes Dara
/////////////////// Useful defines
... |
Topic: fputc() NOT DEFINED |
darahayes
Replies: 10
Views: 12624
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2009 3:08 pm Subject: fputc not recognized by compiler 3.181 |
thanks for that
I am sorry but I have done all you have suggested commented out removed the two defines and adjusted the fputc line to the correct format as fputc('$',RAD);
an ... |
Topic: fputc() NOT DEFINED |
darahayes
Replies: 10
Views: 12624
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2009 2:27 pm Subject: fputc not recognized by compiler |
I remove those two defines and leave them as two different streams defined in the two #use rs232 statements however that is not the issue...
the issue for me is the compiler doesnt recogniZe the c ... |
Topic: fputc() NOT DEFINED |
darahayes
Replies: 10
Views: 12624
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2009 1:38 pm Subject: fputc third time lucky |
that fputc statement should read
fputc('$',RAD); |
Topic: fputc() NOT DEFINED |
darahayes
Replies: 10
Views: 12624
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2009 1:36 pm Subject: fputc not defined |
THat fputc should read fputc("S",RAD); single character send using fputc |
Topic: fputc() NOT DEFINED |
darahayes
Replies: 10
Views: 12624
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2009 1:32 pm Subject: fputc not defined |
My compiler version is 3.181
see test.c below if i change the fputc statement to a putc or a printf statement it compiles without error if i try and use either fputc or fprintf it comes up with fp ... |
Topic: fputc() NOT DEFINED |
darahayes
Replies: 10
Views: 12624
|
Forum: General CCS C Discussion Posted: Thu Mar 05, 2009 12:42 pm Subject: fputc() NOT DEFINED |
Hello
I am trying to set up two serial streams with a 16F876 standard UART
and a second software defined serial port defined as a second stream
therefore I am using putc and printf for char and ... |
|