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 159 matches
CCS Forum Index
Author Message
  Topic: Is possible to read, write bit by bit from internal EEPROM?
nailuy

Replies: 9
Views: 9580

PostForum: General CCS C Discussion   Posted: Tue Nov 14, 2023 5:35 am   Subject: Is possible to read, write bit by bit from internal EEPROM?
oky, thank you.
I do not find anithing...
I know the wite is distroing the eeprom device .
that I was asking special for single bit...

How to close the subject or solve?
  Topic: Is possible to read, write bit by bit from internal EEPROM?
nailuy

Replies: 9
Views: 9580

PostForum: General CCS C Discussion   Posted: Mon Nov 13, 2023 10:09 pm   Subject: Is possible to read, write bit by bit from internal EEPROM?
dyeatman thank you for reply.
Before I post this question ... I search on google.
I find something but is applied to Arduino or other platform for developing.
If nobody know, mabe it isn't possible ...
  Topic: Is possible to read, write bit by bit from internal EEPROM?
nailuy

Replies: 9
Views: 9580

PostForum: General CCS C Discussion   Posted: Mon Nov 13, 2023 2:09 pm   Subject: Is possible to read, write bit by bit from internal EEPROM?
Hy.
Can I read a single bit from EEPROM, or write without affect other bit's from the same addres? To wear less eeprom...

I'm refer bit like int1, (not byte, I already know).
  Topic: I can not move the brushless motor with 50 Hz
nailuy

Replies: 9
Views: 24397

PostForum: General CCS C Discussion   Posted: Wed May 17, 2023 2:13 pm   Subject: I can not move the brushless motor with 50 Hz
mabe is to late now, but mabe it help somewone.
you cannot make and electric engine (asincroic engine) to work in simple square wave at 50Hz. You must generate alternating sinusoid, by PWM of one mic ...
  Topic: printf int32
nailuy

Replies: 3
Views: 10606

PostForum: General CCS C Discussion   Posted: Wed Feb 22, 2023 3:37 pm   Subject: printf int32
my version is 5.101
  Topic: printf int32
nailuy

Replies: 3
Views: 10606

PostForum: General CCS C Discussion   Posted: Tue Feb 21, 2023 5:38 pm   Subject: printf int32
how to print long long (double) or int32?

int32 test = 16777215

printf("%Lu", test);

resoult is 65535.

how to print value larger than 65535?

not help %9Lu
and
is n ...
  Topic: how to use printf for use ascii code
nailuy

Replies: 4
Views: 11764

PostForum: General CCS C Discussion   Posted: Tue Feb 21, 2023 5:28 pm   Subject: how to use printf for use ascii code
my solution is:

#define code putc(68), putc(55), putc(1), putc(2), putc(38), putc(54);

...
code;
...
  Topic: how to use printf for use ascii code
nailuy

Replies: 4
Views: 11764

PostForum: General CCS C Discussion   Posted: Mon Feb 20, 2023 3:33 pm   Subject: how to use printf for use ascii code
Thank you for reply Ttelmah
but code
printf("%02x%02x%02x",1, 2, 3);
result is

30 31 30 32 30 33 and so on. (ascii code)

I need result like

1 2 3

or something like
...
  Topic: how to use printf for use ascii code
nailuy

Replies: 4
Views: 11764

PostForum: General CCS C Discussion   Posted: Mon Feb 20, 2023 9:51 am   Subject: how to use printf for use ascii code
I want to send on UART code in hex like:
printf(1,2,3)
result to be in hex:
0x01 0X02 0X03
or
1 2 3
I can use command putc()
putc (1);
putc (2);
putc (3);

and result is:
123 (is okay bu ...
  Topic: capture time period with ccp3
nailuy

Replies: 2
Views: 8946

PostForum: General CCS C Discussion   Posted: Sun Jan 29, 2023 2:36 pm   Subject: capture time period with ccp3
Dear mr. Ttelmah your example code is perfect, is explained and now I understand how to build this project using CCPx, also many guys beginers like me will understand better using capture function of ...
  Topic: capture time period with ccp3
nailuy

Replies: 2
Views: 8946

PostForum: General CCS C Discussion   Posted: Fri Jan 27, 2023 3:57 pm   Subject: capture time period with ccp3
Dear guys.
I wan to use PIC16F1824 to capture time period (like IR receiver).
hardware setup is input IR to A2.
from data sheet on this pin is T0CLKY and CCP3.
T0CLKY will not help me.
CCP3 have ...
  Topic: Serial communication on 12F509
nailuy

Replies: 42
Views: 91012

PostForum: General CCS C Discussion   Posted: Mon Jul 04, 2022 7:58 am   Subject: Serial communication on 12F509
Hi,
Thank you for reply.
Yes code is working, I found the problem, was from IC 78L05
and Cap from 5V... (component's was old used on other PCB).

img for testing PIC16F1826
https://ibb.co/MDrH ...
  Topic: Serial communication on 12F509
nailuy

Replies: 42
Views: 91012

PostForum: General CCS C Discussion   Posted: Mon Jun 27, 2022 4:52 am   Subject: Serial communication on 12F509
Compiler version is 5.104

lst is:

CCS PCM C Compiler, Version 5.104, 26-iun.-22 17:50

*
0000: MOVLP 00
0001: GOTO 00A
0002: NOP
.................... #inclu ...
  Topic: Serial communication on 12F509
nailuy

Replies: 42
Views: 91012

PostForum: General CCS C Discussion   Posted: Sun Jun 26, 2022 9:05 am   Subject: Serial communication on 12F509
Almost certainly you are sending the wrong thing.

Do you really want to send the code 1?. In RS232 comms this is the code
for Start of header.
I suspect you actually want to send '1' (the ASCII c ...
  Topic: Serial communication on 12F509
nailuy

Replies: 42
Views: 91012

PostForum: General CCS C Discussion   Posted: Sun Jun 26, 2022 8:58 am   Subject: Serial communication on 12F509
question:
If this pin TX (B2) is okay I must have 0V (or some digital oscillation 0-5V).
Why on this pin I have tristate ? voltage between 0-5V. When I put my hand I have 4V not steady value. So out ...
 
Page 1 of 11 Goto page 1, 2, 3 ... 9, 10, 11  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group