Author |
Message |
Topic: WDT_FROM_SLEEP |
collink
Replies: 3
Views: 7103
|
Forum: General CCS C Discussion Posted: Fri Mar 14, 2014 9:58 am Subject: WDT_FROM_SLEEP |
I believe I've fixed the program with my program. In my case it seems like maybe I had messed up some coding by accidentally doing some unsafe things in an interrupt handler and also by accidentally m ... |
Topic: WDT_FROM_SLEEP |
collink
Replies: 3
Views: 7103
|
Forum: General CCS C Discussion Posted: Tue Mar 11, 2014 12:55 pm Subject: WDT_FROM_SLEEP |
Slight follow up: I looked at the ASM list and traced down what it was doing. Upon doing so it became apparent that it really does basically list the actual value of RCON. And, so, I see that a value ... |
Topic: WDT_FROM_SLEEP |
collink
Replies: 3
Views: 7103
|
Forum: General CCS C Discussion Posted: Tue Mar 11, 2014 12:07 pm Subject: WDT_FROM_SLEEP |
I am getting the above reset cause in a project of mine. The name of this reset cause seems to be total nonsense. The chip I am using (PIC18F25J11) does not reset because of a WDT while sleeping - it ... |
Topic: Problems with int32 |
collink
Replies: 4
Views: 5757
|
Forum: General CCS C Discussion Posted: Mon Oct 21, 2013 10:58 am Subject: [SOLVED!] |
Man, my transition back to PIC programming has been off to a rocky restart. Two dumb errors in two days... This one was caused by accidentally defining millis as an int. I'm use to 32bit MCU programmi ... |
Topic: Problems with int32 |
collink
Replies: 4
Views: 5757
|
Forum: General CCS C Discussion Posted: Mon Oct 21, 2013 10:38 am Subject: Problems with int32 |
Oh, sorry, yes I suppose that would have been useful info.
PIC18F25J11 is the processor and 4.129 as the compiler version. |
Topic: Problems with int32 |
collink
Replies: 4
Views: 5757
|
Forum: General CCS C Discussion Posted: Mon Oct 21, 2013 10:32 am Subject: Problems with int32 |
calc = (int32)((int32)250ul * (int32)millis);
#ifdef DEBUG
fprintf(pc, "calc: %Lu", calc);
#endif
I'm trying to use a 32 bit value ... |
Topic: PIC18F25J11 second serial dies after sleep |
collink
Replies: 3
Views: 5132
|
Forum: General CCS C Discussion Posted: Fri Oct 18, 2013 1:14 pm Subject: PIC18F25J11 second serial dies after sleep |
Aaaand, yeah, I should have known. At least being forced to produce an example program made me test my theory. It is true that the reason it messes up is that it was sending characters when it went in ... |
Topic: PIC18F25J11 second serial dies after sleep |
collink
Replies: 3
Views: 5132
|
Forum: General CCS C Discussion Posted: Fri Oct 18, 2013 1:00 pm Subject: PIC18F25J11 second serial dies after sleep |
This isn't perhaps the smallest program ever but it faithfully reproduces the environment that the actual project is running. It strikes me that it perhaps is because I go to sleep before the serial i ... |
Topic: PIC18F25J11 second serial dies after sleep |
collink
Replies: 3
Views: 5132
|
Forum: General CCS C Discussion Posted: Fri Oct 18, 2013 11:59 am Subject: PIC18F25J11 second serial dies after sleep |
I'm using the 4.129 version of the compiler with the above chip. I have used the peripheral select instructions to turn a set of pins into the second UART. This works fine and the UART will send sane ... |
Topic: bad CAN bit timing |
collink
Replies: 2
Views: 5170
|
Forum: General CCS C Discussion Posted: Tue Jul 05, 2011 11:25 am Subject: bad CAN bit timing |
If it's working then I wouldn't complain. ;-)
Your calculations do seem correct as far as the canbus timing goes.
One thing though: That's 1 TQ for the start quanta. It's always 1 TQ for start t ... |
Topic: considerable time lag in isr |
collink
Replies: 6
Views: 7749
|
Forum: General CCS C Discussion Posted: Mon May 02, 2011 12:59 pm Subject: considerable time lag in isr |
And, just to complete this whole discussion: What they mean is: it takes 4 clocks per instruction so one instruction takes 0.2uS at 20MHz. 36uS is thus 180 instruction times not 2880. You were only of ... |
Topic: enabling interrupts |
collink
Replies: 1
Views: 3086
|
Forum: General CCS C Discussion Posted: Sun May 01, 2011 11:46 am Subject: enabling interrupts |
Yes, of course you can.
You can verify this by trying it yourself and/or looking at the documentation of the PIC chip you plan to use. |
Topic: Lookup table fast access !! |
collink
Replies: 4
Views: 5747
|
Forum: General CCS C Discussion Posted: Tue Apr 26, 2011 9:56 am Subject: Lookup table fast access !! |
You have it trimmed down pretty far. There are only a few things I can think of that would speed it up:
1. If you can, up the clock speed
2. Switch to directly setting the port with constant val ... |
Topic: pic18f45k22 and MMC SD |
collink
Replies: 2
Views: 5491
|
Forum: General CCS C Discussion Posted: Fri Apr 22, 2011 5:29 am Subject: pic18f45k22 and MMC SD |
It seems like some of your pins are configured oddly. SDI should be PIN_D1 and SDO should be PIN_D4 not the other way around like you have it. The usual hardware select pin for SPI2 is PIN_D3 but I su ... |
Topic: Debug flag |
collink
Replies: 6
Views: 7871
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 11:45 am Subject: Debug flag |
A global variable will work fine for that. You can even change it while the system is running to debug on the fly if you want.
I'd also like to suggest that you invest in a cheap logic analyzer suc ... |
|