Author |
Message |
Topic: two tones together.. |
piripic
Replies: 10
Views: 10361
|
Forum: General CCS C Discussion Posted: Tue Nov 17, 2009 10:09 am Subject: two tones together.. |
I think yerpa is right. Maybe it is a bit "resource consuming"..but with one PWM, one Timer and some code you're probably done: use a timer and every timer interrupt you increment two tables ... |
Topic: pls help in coding multiplex 4 seven segment |
piripic
Replies: 6
Views: 8167
|
Forum: General CCS C Discussion Posted: Thu Sep 10, 2009 12:40 pm Subject: pls help in coding multiplex 4 seven segment |
Hi, maybe this can help you (look at the first post in this thread)
http://www.ccsinfo.com/forum/viewtopic.php?t=33495 |
Topic: Problem with fast CRC16 |
piripic
Replies: 1
Views: 4870
|
Forum: General CCS C Discussion Posted: Mon Sep 08, 2008 6:06 am Subject: resolved |
Now is ok; this is the working code:
#include <18F24K20.h>
#device adc=8
#FUSES NOWDT, HS, NOPROTECT, NOBROWNOUT, NOPUT, NOCPD, STVREN
#FUSES NODEBUG, NOLVP, NOWRT, NOWRTD, IESO, FCMEN, NO ... |
Topic: Problem with fast CRC16 |
piripic
Replies: 1
Views: 4870
|
Forum: General CCS C Discussion Posted: Mon Sep 08, 2008 2:14 am Subject: Problem with fast CRC16 |
Hi,
I am testing the fast CRC16 algorithm, the two functions never return the same result also initializing the variable MyCRC to 0xFFFF, where I mistake ?
Here my test code:
#include <18F24K2 ... |
Topic: CRC16, very efficient |
piripic
Replies: 18
Views: 249545
|
Forum: Code Library Posted: Mon Sep 08, 2008 12:18 am Subject: CRC16, very efficient |
I have inverted the CRC low byte <-> high byte order (the CRC16.uByte index). Now C function and assembly function return the same CRC16 value:
//--------------------------------------------- ... |
Topic: CRC16, very efficient |
piripic
Replies: 18
Views: 249545
|
Forum: Code Library Posted: Sun Sep 07, 2008 1:21 am Subject: Have I found a bug ? |
Post modified because of erroneous consideration.
Now I have understood. In the assembly crc16 function the line of code:
rlcf Index,W // use rlf for PIC16
rlcf Index,W ... |
Topic: help, how to cast signed variable ? |
piripic
Replies: 2
Views: 4111
|
Forum: General CCS C Discussion Posted: Tue Jul 01, 2008 8:40 am Subject: help, how to cast signed variable ? |
Ttelmah, thanks. I think I have found the mistake that I did.
For "cast" I meant to say... to pass a signed int32 to a signed int8. I believe that using the three assembly instructions all ... |
Topic: help, how to cast signed variable ? |
piripic
Replies: 2
Views: 4111
|
Forum: General CCS C Discussion Posted: Tue Jul 01, 2008 2:58 am Subject: help, how to cast signed variable ? |
Hi, I am in trouble to understanding how to make to work this example. Can anyone explain to me how to cast (if possible) signed variables ? Thanks
Claudio
#include <16F877.H>
#fuses XT ... |
Topic: advice about data structure (ADF7021) |
piripic
Replies: 5
Views: 10457
|
Forum: General CCS C Discussion Posted: Thu May 22, 2008 12:16 am Subject: advice about data structure (ADF7021) |
PCM programmer solution would seem the most logical but unfortunately in this case, the compiler does not handle non-aligned bit field (variables larger than 8 bits). Is really problematic as it seems ... |
Topic: advice about data structure (ADF7021) |
piripic
Replies: 5
Views: 10457
|
Forum: General CCS C Discussion Posted: Wed May 21, 2008 7:08 am Subject: advice about data structure (ADF7021) |
Thanks PCM programmer I tried but I do not think I can solve my problem that way; the compiler generates an error "Number of bits is out of range".
I can not use 8 bits (int8) variables bec ... |
Topic: advice about data structure (ADF7021) |
piripic
Replies: 5
Views: 10457
|
Forum: General CCS C Discussion Posted: Wed May 21, 2008 12:07 am Subject: advice about data structure (ADF7021) |
I know I have been unclear... but please... there is someone who could give a quick look at the ADF7021 datasheet (from page 47) and recommend how to manage the data of that sixteen registers in my PI ... |
Topic: advice about data structure (ADF7021) |
piripic
Replies: 5
Views: 10457
|
Forum: General CCS C Discussion Posted: Mon May 19, 2008 3:23 am Subject: advice about data structure (ADF7021) |
This is my "driver", I do not use SPI because it is used for radio data transfer.
// **** Costant declaration (example only) *****
// ADF7021 Register value
... |
Topic: advice about data structure (ADF7021) |
piripic
Replies: 5
Views: 10457
|
Forum: General CCS C Discussion Posted: Mon May 19, 2008 2:46 am Subject: advice about data structure (ADF7021) |
Hi, I am working on firmware in which device ADF7021(Analog device) is used. Seen the relative complexity of subdivision of the bits of the many registries of the device (16), according to you what is ... |
Topic: async serial problem with 16F876 |
piripic
Replies: 19
Views: 14105
|
Forum: General CCS C Discussion Posted: Tue Apr 08, 2008 12:54 pm Subject: async serial problem with 16F876 |
Hi, I just made a simulation (on proteus) and it work good. I see always on the TX line a high level between the chars (about 6 ms from start edge to next start edge).
This is the test code:
#in ... |
Topic: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
piripic
Replies: 8
Views: 12155
|
Forum: General CCS C Discussion Posted: Wed Mar 26, 2008 1:29 am Subject: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
I do not understand why CCS has made so little flexibility in the management of the hardware UART.
My advice is to write yourself your "UART driver management" because ccs does not offer a ... |
|