CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 14 matches
CCS Forum Index
Author Message
  Topic: how to use the EEPROM of the micro
julien lochen

Replies: 2
Views: 3743

PostForum: General CCS C Discussion   Posted: Mon Jun 30, 2008 9:19 am   Subject: how to use the EEPROM of the micro
Hello,

I work with the PIC16F886.

I have:
- FLASH mem: 8192 words
- SRAM: 368 bytes
- EEPROM: 256 bytes

How to store in C a variable in the EEPROM ?
  Topic: string in parameter
julien lochen

Replies: 1
Views: 2875

PostForum: General CCS C Discussion   Posted: Fri Jun 27, 2008 7:06 am   Subject: string in parameter
Hello,

in display_word() definition what must be in parameter instead of ???

////////

void display_word( ??? ) {}

void main (void)
{
display("hello")
}

thanks, julien
  Topic: how to declare a 1-dim-array that sizes 1536 elements ?
julien lochen

Replies: 5
Views: 5855

PostForum: General CCS C Discussion   Posted: Wed Jun 25, 2008 9:12 am   Subject: how to declare a 1-dim-array that sizes 1536 elements ?
so, I am trying to store the table in ROM using the synthax:

rom const char tab_font_8x16[1536] = {0x0 ...}

it says:

Executing: "C:\Program files\Picc\CCSC.exe" +FM "PIC_16F886 ...
  Topic: change the pointer from 8 bits to 16 bits
julien lochen

Replies: 4
Views: 5484

PostForum: General CCS C Discussion   Posted: Wed Jun 25, 2008 5:37 am   Subject: change the pointer from 8 bits to 16 bits
ok, thanks, I removed "const", but it still doesn't work

#device PIC16F886 *=16
#device CCS4

char tab_font_8x16[1536] = {
0x0, 0x0, 0x0, 0x0,
... }

=> it says

Executing: ...
  Topic: change the pointer from 8 bits to 16 bits
julien lochen

Replies: 4
Views: 5484

PostForum: General CCS C Discussion   Posted: Wed Jun 25, 2008 2:16 am   Subject: change the pointer from 8 bits to 16 bits
Hello,

I use MPLAB IDE V8 with a PIC16F886

I need to declare the following table with 1536 elements:
const char tab_font_8x16[1536] = {0x0 ... }, so I need 16-bit pointers.

I added these ...
  Topic: how to declare a 1-dim-array that sizes 1536 elements ?
julien lochen

Replies: 5
Views: 5855

PostForum: General CCS C Discussion   Posted: Wed Jun 25, 2008 2:04 am   Subject: how to declare a 1-dim-array that sizes 1536 elements ?
I use MPLAB IDEV8.0 with a PIC16F886

368 bytes of RAM are available.

The data-sheet of the compileter says you can use the directive:
" #device ANSI" to set the pointer size to 16 bit ...
  Topic: how to declare a 1-dim-array that sizes 1536 elements ?
julien lochen

Replies: 5
Views: 5855

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 10:03 am   Subject: how to declare a 1-dim-array that sizes 1536 elements ?
Hello,

I am using CCS with MPLAB IDE.

I declared my own ASCII table which is a 1-dim-table which contents 1536 elements.

It says
"
*** Error 87 "D:\LCP_PIC16F886_CCS\LCP_font_8x1 ...
  Topic: ascii value of a character
julien lochen

Replies: 3
Views: 4821

PostForum: General CCS C Discussion   Posted: Mon Jun 23, 2008 7:52 am   Subject: ascii value of a character
Hello, what is the function to get the ascii value of a character, like

int get_ascii(A)

thanks, julien
  Topic: table to define the font
julien lochen

Replies: 1
Views: 3090

PostForum: General CCS C Discussion   Posted: Mon Jun 23, 2008 5:39 am   Subject: table to define the font
Hello,

My PIC16F is connected to a LCD driver thru a DDRAM.

The size of the LCD is 128 x 32 pix.

I am looking for a table for a table that would help me to code the shape of my letters and nu ...
  Topic: mic c and ASM
julien lochen

Replies: 1
Views: 3721

PostForum: General CCS C Discussion   Posted: Thu Jun 19, 2008 11:00 am   Subject: mic c and ASM
Hello,

I have an issue when I use a sticker in my ASM routine included in a c file:

////////////////////////////////////
#include <PIC_16F886.h>

#byte PORTC = 0x07
#byte TRISC = 0x87 ...
  Topic: assembler issue with "ANDLW" PIC16F886
julien lochen

Replies: 1
Views: 3046

PostForum: General CCS C Discussion   Posted: Tue May 27, 2008 10:03 am   Subject: assembler issue with "ANDLW" PIC16F886
Hello,

Is it correct to use a temp variable as parameter with "ANDLW" ?

My code is:

///////////////
variables UDATA 0x30 ;varibales data stored at locations starting at 0x30.
tem ...
  Topic: "Expecting an opcode mnemonic banksel"
julien lochen

Replies: 7
Views: 8581

PostForum: General CCS C Discussion   Posted: Fri May 16, 2008 11:06 am   Subject: "Expecting an opcode mnemonic banksel"
works fine, thank u veru much
  Topic: "Expecting an opcode mnemonic banksel"
julien lochen

Replies: 7
Views: 8581

PostForum: General CCS C Discussion   Posted: Fri May 16, 2008 8:11 am   Subject: "Expecting an opcode mnemonic banksel"
I stared coding in assembleur, I will continue using the C functions of CCS like output_b(X) ...

I just want to reuse the assembleur allready written.

I removed the line bankdel, now I have:
& ...
  Topic: "Expecting an opcode mnemonic banksel"
julien lochen

Replies: 7
Views: 8581

PostForum: General CCS C Discussion   Posted: Fri May 16, 2008 7:51 am   Subject: "Expecting an opcode mnemonic banksel"
Hello,

I work with MPLAB and CCS V4.

in my C program, I inserted a function in ASM between the keywords "#ASM" and "#ENDASM".

It works but when I use the opcode "ban ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group