Author |
Message |
Topic: Strange behavior when combining a bootloader and application |
Nepersky
Replies: 5
Views: 8394
|
Forum: General CCS C Discussion Posted: Sun May 13, 2012 9:42 am Subject: Strange behavior when combining a bootloader and application |
Sorry about that. I have no idea how the space got in there. There is of course no space in my code. But the problem is still there. |
Topic: Strange behavior when combining a bootloader and application |
Nepersky
Replies: 5
Views: 8394
|
Forum: General CCS C Discussion Posted: Sat Apr 28, 2012 4:47 am Subject: Strange behavior when combining a bootloader and application |
The following declaration is located both in the bootloader and in the application:
int8 SkipBTL; #locate Skip BTL = 0xfb
The whole code is too extensive to post but usage of the variable is nothing ... |
Topic: Strange behavior when combining a bootloader and application |
Nepersky
Replies: 5
Views: 8394
|
Forum: General CCS C Discussion Posted: Fri Apr 27, 2012 3:09 pm Subject: Strange behavior when combining a bootloader and application |
Hello all,
I am facing a very strange problem when trying to incorporate a USB bootloader into my PIC based firmware and am hoping to find some ideas on how to solve it from more experienced progra ... |
Topic: A *3* error |
Nepersky
Replies: 2
Views: 4240
|
Forum: General CCS C Discussion Posted: Wed Jun 08, 2011 10:51 am Subject: A *3* error |
I am not sure what the.mcw is. How do I check if it is included correctly?
But I think that it should be, because I started the project with the project wizard, where I gave the right PIC. Also, wh ... |
Topic: A *3* error |
Nepersky
Replies: 2
Views: 4240
|
Forum: General CCS C Discussion Posted: Wed Jun 08, 2011 4:05 am Subject: A *3* error |
Hello!
When compiling a simple program showed bellow, I am constantly getting the following error:
--- Info 300 "
The line 2 in the 16F1827.h file is #device PIC16F1827.
The simple pr ... |
Topic: Improving the interrupt latency |
Nepersky
Replies: 1
Views: 3405
|
Forum: General CCS C Discussion Posted: Tue May 31, 2011 10:20 am Subject: Improving the interrupt latency |
Hello!
In my program I need to enter and exit the interrupt fast. The problem is. that the compiler produces an assembly code, 60 instruction cycles long, before the interrupt function is actually ... |
Topic: Timer1 on PIC18F24J11 does not work in MPLAB SIM |
Nepersky
Replies: 1
Views: 4322
|
Forum: General CCS C Discussion Posted: Sun May 15, 2011 8:41 am Subject: Timer1 on PIC18F24J11 does not work in MPLAB SIM |
Hello!
I have been trying to start the timer1 on PIC18F24J11 and searching for solution on the internet for a couple of hours now but with no success. I have written a simple program:
#include & ... |
Topic: Accessing Non-Access Bank Special Function Registers |
Nepersky
Replies: 5
Views: 7448
|
Forum: General CCS C Discussion Posted: Fri May 13, 2011 3:51 pm Subject: Accessing Non-Access Bank Special Function Registers |
You are absolutely right!
I did notice the sentence in the data sheet you pointed out though. It was the reason I started writing part of the code in assembler, to make sure nothing comes in between ... |
Topic: Accessing Non-Access Bank Special Function Registers |
Nepersky
Replies: 5
Views: 7448
|
Forum: General CCS C Discussion Posted: Fri May 13, 2011 1:25 pm Subject: Accessing Non-Access Bank Special Function Registers |
It works in the simulator, you are right. But on the PIC it does not.
In the mean time I managed to convince the compiler to do what I wanted before:
movlb 0xf
movlw 0x80
movwf 0x4d,BAN ... |
Topic: FAT16 Problem |
Nepersky
Replies: 5
Views: 7613
|
Forum: General CCS C Discussion Posted: Fri May 13, 2011 12:10 pm Subject: FAT16 Problem |
I am not really sure, but I think you only have a pull-up resistor on the Dout pin of your SD card. Am I right?
When I built my last SD card circuit I also had pull-ups on Din and CS lines. |
Topic: Accessing Non-Access Bank Special Function Registers |
Nepersky
Replies: 5
Views: 7448
|
Forum: General CCS C Discussion Posted: Fri May 13, 2011 11:48 am Subject: Accessing Non-Access Bank Special Function Registers |
Hello!
I ran into a problem when trying to set one of the bits of the DSCONH register on a PIC 18F24J11. The code written below (or more precisely, the DSEN=1; line), was compiled by CCS as BSF 0x4 ... |
Topic: short-circuit evaluation |
Nepersky
Replies: 7
Views: 6972
|
Forum: General CCS C Discussion Posted: Wed May 11, 2011 1:14 am Subject: short-circuit evaluation |
Thank you for the reply. I was quite impatient yesterday when I wrote the post so after there was no reply for about 15min I did exactly as you suggested, wrote it in ASM. I added an extra variable an ... |
Topic: short-circuit evaluation |
Nepersky
Replies: 7
Views: 6972
|
Forum: General CCS C Discussion Posted: Tue May 10, 2011 1:51 pm Subject: short-circuit evaluation |
#include "18F24J11.h"
#FUSES INTRC_IO
#FUSES NOXINST
#BYTE CONFIG1H = 0x300001
#BIT CPDIV0 = CONFIG1H.0
#BIT CPDIV1 = CONFIG1H.1
#BIT CP0 = CONFIG1H.2
int count;
void main& ... |
Topic: short-circuit evaluation |
Nepersky
Replies: 7
Views: 6972
|
Forum: General CCS C Discussion Posted: Tue May 10, 2011 1:33 pm Subject: short-circuit evaluation |
Before writing such a program I will try to explain another way and if things will still be unclear, I will take the time and write a program.
Let's say I have this line in my code:
if ((count= ... |
Topic: short-circuit evaluation |
Nepersky
Replies: 7
Views: 6972
|
Forum: General CCS C Discussion Posted: Tue May 10, 2011 1:12 pm Subject: short-circuit evaluation |
Hello!
I am new to CCS compiler and am struggling with the attempt to disable the short-circuit evaluation (some call it short boolean evaluation) in the CCS compiler. So far my attempts to do so g ... |
|