Author |
Message |
Topic: PIC18LF47K40 - restart_cause() returns unknown values. |
dgi
Replies: 8
Views: 24755
|
Forum: General CCS C Discussion Posted: Thu Sep 17, 2020 2:20 pm Subject: restart_cause() only returns 8 bits?? |
I'm using PIC18F27Q10 and PCWHD 5.095.
In my program I call restart_cause() to find out what caused the last restart. Right now it is returning 0x2F. The problem is that restart_cause() returns onl ... |
Topic: How to progam pic without erasing EEPROM with ICD |
dgi
Replies: 1
Views: 22386
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Mon Apr 27, 2009 9:58 am Subject: How to progam pic without erasing EEPROM with ICD |
I'm having the same problem today. I set the loader program to not erase the data EEPROM and it erases it anyway.
I had had this problem with earlier versions of the ICD program, and I never resol ... |
Topic: global interrupts disabled mysteriously |
dgi
Replies: 16
Views: 22589
|
Forum: General CCS C Discussion Posted: Thu Dec 07, 2006 9:24 am Subject: global interrupts disabled mysteriously |
Thank you for the guidance, folks.
Working or not, I removed all recursive function calls as described above. However, I still have the problem of interrupts getting disabled after several minutes ... |
Topic: global interrupts disabled mysteriously |
dgi
Replies: 16
Views: 22589
|
Forum: General CCS C Discussion Posted: Wed Dec 06, 2006 1:16 pm Subject: global interrupts disabled mysteriously |
Thank you Ttelmah for the advice. I haven't found anything wrong in the interrupt yet, but I may have found the problem in main(). My printf actually itself calls printf:
VOID AppendChecksum( ... |
Topic: global interrupts disabled mysteriously |
dgi
Replies: 16
Views: 22589
|
Forum: General CCS C Discussion Posted: Wed Dec 06, 2006 10:20 am Subject: global interrupts disabled mysteriously |
I am using CCS 3.249 (having read that it is the most stable) to program a PIC18F2420, crystal clocked at 20 Mhz.
My program sets up a single periodic interrupt to perform a high priority polling t ... |
Topic: Enabling/Disabling Hardware USART on the fly? |
dgi
Replies: 10
Views: 14484
|
Forum: General CCS C Discussion Posted: Wed Sep 20, 2006 11:01 am Subject: Re: Enabling/Disabling Hardware USART on the fly? |
:=I have an application with a PIC16F877 acting as a
My project is Single Master/Multiple Slave using the 9-bit command mode with the F877. I had trouble tri-stating the slave UART TX pins appropri ... |
Topic: WORKAROUND INCLUDED: ICD Verification Fails On CONFIG Fuses |
dgi
Replies: 10
Views: 59246
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Tue Jun 13, 2006 3:00 pm Subject: WORKAROUND INCLUDED: ICD Verification Fails On CONFIG Fuses |
I'm having a similar problem - with the PIC18F6527.
When I program the chip using the ICD-U40, my program works correctly, but the ICD.exe program reports that verification failed, and nothing tha ... |
Topic: pin A6 undefined |
dgi
Replies: 3
Views: 8815
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2004 2:31 pm Subject: pin A6 undefined |
I want to use pin A6 for IO,
on the PIC18F258.
Inside PIC18F258.h, there is:
#define PIN_A0 31744
#define PIN_A1 31745
#define PIN_A2 31746
#define PIN_A3 31747
#define PIN_A4 31748
# ... |
Topic: Vector 2X Compass |
dgi
Replies: 5
Views: 14273
|
Forum: General CCS C Discussion Posted: Mon Mar 15, 2004 1:47 pm Subject: Vector 2X Compass |
I used that compass, and I'd send you my code but I seem to have deleted it.
I remember the only tricky thing was the following:
I used the compiler's "spi_write" and "spi_read" except the polar ... |
Topic: PIC18FXX8 CANbus conflict |
dgi
Replies: 5
Views: 11984
|
Forum: General CCS C Discussion Posted: Mon Mar 15, 2004 1:35 pm Subject: PIC18FXX8 CANbus conflict |
I have been working with the PIC18F258, and have encountered intermittent "noise" on the CAN bus which I think is caused by the PIC.
I find out about this from my PC utility program "PCANView USB" ... |
|