Author |
Message |
Topic: PIC24FJ 16-bit ADC Diff. Channel |
nilsener
Replies: 1
Views: 7428
|
Forum: General CCS C Discussion Posted: Wed Aug 02, 2017 8:15 am Subject: PIC24FJ 16-bit ADC Diff. Channel |
PIC24FJ64GC006
Dear,
I want to use the Diff.-Channels CH0+ and CH0- from the 16-Bit ADC of the PIC24FJ64GC006 in a new project. The question is, what is the range of the result of the AD-Convers ... |
Topic: 18F2523 and PWM with CCP2 Module |
nilsener
Replies: 2
Views: 6710
|
Forum: General CCS C Discussion Posted: Fri Jul 11, 2014 7:31 am Subject: 18F2523 and PWM with CCP2 Module |
18F2523
PCWH 4.014
Dear,
I have a PWM signal at CCP1 Pin (RC2) that is running very well. To set the PWM, I use:
setup_timer_2(T2_DIV_BY_4, 255, 1);
setup_ccp1(CCP_PWM);
... |
Topic: memory initialization |
nilsener
Replies: 4
Views: 6224
|
Forum: General CCS C Discussion Posted: Sat Jan 07, 2012 2:47 pm Subject: memory initialization |
Try
unsigned int8 Spi_buffer [16] = {0}
to fill the Array with zero.
Best regards
Nilsener |
Topic: Profibus on PIC |
nilsener
Replies: 2
Views: 5372
|
Forum: General CCS C Discussion Posted: Thu Nov 17, 2011 2:32 pm Subject: Profibus on PIC |
Please search the web for anybus ic from HMS.
best regards
Nilsener |
Topic: Bootloader |
nilsener
Replies: 1
Views: 4512
|
Forum: General CCS C Discussion Posted: Fri Aug 26, 2011 5:53 am Subject: Bootloader |
18F2523, PCWH v4.014
Dear,
I have a bootloader located in boot block at 0x0 - 0x7FF. If I burn only the bootloader to the PIC, it starts and works normal. After loading the program code with the ... |
Topic: #build(reset...), missing jump at address 0 [DONE] |
nilsener
Replies: 11
Views: 12305
|
Forum: General CCS C Discussion Posted: Fri Dec 31, 2010 8:46 am Subject: #build(reset...), missing jump at address 0 [DONE] |
Hello,
you have to handle the bootloader and your main application as two different projects. Modify the CCS bootloader example if necessary to fit your requirements. The #org statement in the CCS ... |
Topic: write_program_memory |
nilsener
Replies: 8
Views: 8531
|
Forum: General CCS C Discussion Posted: Mon Sep 13, 2010 4:56 am Subject: write_program_memory |
Hello Wayne_,
don't worry about the articulation of your first answer, no problem.
You are right, my help says nothing about the "Every fourth byte of data will not be written, fill with 0 ... |
Topic: write_program_memory |
nilsener
Replies: 8
Views: 8531
|
Forum: General CCS C Discussion Posted: Mon Sep 13, 2010 12:37 am Subject: write_program_memory |
v4.014
PIC18F2685
Hello PCM,
I actually have no problem but I must understand why every fourth byte of data will not be written, fill with 0x00, and what will happen with byte 4, 8, 12 and 16 i ... |
Topic: write_program_memory |
nilsener
Replies: 8
Views: 8531
|
Forum: General CCS C Discussion Posted: Sun Sep 12, 2010 11:24 am Subject: write_program_memory |
Hello,
the CCS Manual says:
write_program_memory(address, dataptr, count);
Every fourth byte of data will not be written, fill with 0x00.
Why will it not be written and filled with 0x00?
... |
Topic: PWM 16f877a |
nilsener
Replies: 1
Views: 3011
|
Forum: General CCS C Discussion Posted: Fri Aug 27, 2010 1:59 am Subject: PWM 16f877a |
as you increment x by 10 (x=x+10;), x will never be 249 and your
if (x==249)
{
x=0;
}
will never be entered. Try
if (x > 249)
{
x=0; ... |
Topic: #build(reset...), missing jump at address 0 [DONE] |
nilsener
Replies: 11
Views: 12305
|
Forum: General CCS C Discussion Posted: Thu Aug 26, 2010 6:48 am Subject: #build(reset...), missing jump at address 0 [DONE] |
Ok, I have it, it is running. The #ORG modification makes the bootloader.h for me, I have to include it into the main application. I was completely on the wrong way by trying to make all in one file. ... |
Topic: #build(reset...), missing jump at address 0 [DONE] |
nilsener
Replies: 11
Views: 12305
|
Forum: General CCS C Discussion Posted: Thu Aug 26, 2010 4:52 am Subject: #build(reset...), missing jump at address 0 [DONE] |
OK. Is it necessary to make some #ORG modifications in the main application? I mean to #ORG the main application to LOADER_END+1 and to reserve the bootblock with #ORG 0,LOADER_END {} ? I think it mus ... |
Topic: #build(reset...), missing jump at address 0 [DONE] |
nilsener
Replies: 11
Views: 12305
|
Forum: General CCS C Discussion Posted: Thu Aug 26, 2010 2:59 am Subject: #build(reset...), missing jump at address 0 [DONE] |
Ok. It seems to me that the bootloader is designed to be a stand alone in the PIC and then loading the main application. What i should do is to add the bootloader to our main application (big file wit ... |
Topic: #build(reset...), missing jump at address 0 [DONE] |
nilsener
Replies: 11
Views: 12305
|
Forum: General CCS C Discussion Posted: Thu Aug 26, 2010 1:21 am Subject: #build(reset...), missing jump at address 0 [DONE] |
Hello Ttelmah,
my bootloader is not using interrupts. I have the
disable_interrupts(GLOBAL);
statement at the very beginning of the bootloader.
Does it mean, that I can do i ... |
Topic: Bootloader isn't writing the ID Bytes |
nilsener
Replies: 2
Views: 4014
|
Forum: General CCS C Discussion Posted: Thu Aug 26, 2010 1:16 am Subject: Bootloader isn't writing the ID Bytes |
Hello asmallri,
Thanks for reply, but what I need is not to rewrite the fuses but the ID bytes at address 0x200000...0x200007. In my application I have the program checksum at this location. I use: ... |
|