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 179 matches
CCS Forum Index
Author Message
  Topic: using itoa() to show numbers in LCD display
artohautala

Replies: 9
Views: 23894

PostForum: General CCS C Discussion   Posted: Tue Sep 06, 2022 2:58 am   Subject: using itoa() to show numbers in LCD display
Doesn't matter.

The point is that CCS supports using standard printf formatting to _any_
output function. It will do it to any LCD, serial, network output, etc. etc..

printf(your_output_functi ...
  Topic: using itoa() to show numbers in LCD display
artohautala

Replies: 9
Views: 23894

PostForum: General CCS C Discussion   Posted: Mon Sep 05, 2022 8:40 pm   Subject: using itoa() to show numbers in LCD display
something else you can do is if you have a function that sends a single byte to display on the LCD, normally called lcd_putc or similar:


#define lcd_prntf(format,...) printf(lcd_putc, ...
  Topic: using itoa() to show numbers in LCD display
artohautala

Replies: 9
Views: 23894

PostForum: General CCS C Discussion   Posted: Mon Sep 05, 2022 1:21 am   Subject: using itoa() to show numbers in LCD display
and the bit that makes the return not work, is the *.

G_numtext is a pointer to the string.

*G_numtext, is the contents of the first character of this array.

So you are writing the returned ...
  Topic: using itoa() to show numbers in LCD display
artohautala

Replies: 9
Views: 23894

PostForum: General CCS C Discussion   Posted: Sun Sep 04, 2022 11:35 pm   Subject: using itoa() to show numbers in LCD display
Delete the part shown in bold below:

*G_numtext = itoa(G_test_number, 10, G_numtext);

so it looks like this:
itoa(G_test_number, 10, G_numtext);
Thank you, now it works fine !
  Topic: using itoa() to show numbers in LCD display
artohautala

Replies: 9
Views: 23894

PostForum: General CCS C Discussion   Posted: Sun Sep 04, 2022 10:46 pm   Subject: using itoa() to show numbers in LCD display
hello,

I have problem to show number in 2x16 standard LCD display...
I'm happy if you can help me to solve this problem ...




why my LCD display show .256789 NOT 1256789 like it should ?
a ...
  Topic: how to write and read 16bit variable to 16f628A chip?
artohautala

Replies: 7
Views: 23335

PostForum: General CCS C Discussion   Posted: Sun Sep 05, 2021 4:51 am   Subject: how to write and read 16bit variable to 16f628A chip?

write_eeprom(lower_8bits,0);
delay_ms(50);
write_eeprom(upper_8bits,1);
delay_ms(50);

Look in the CCS manual at the order of parameters for the
write_eeprom() function. See page 610 in the ...
  Topic: how to write and read 16bit variable to 16f628A chip?
artohautala

Replies: 7
Views: 23335

PostForum: General CCS C Discussion   Posted: Sun Sep 05, 2021 4:19 am   Subject: how to write and read 16bit variable to 16f628A chip?
hello,

I'm trying to store my variable "time" to eeprom and get it back from eeprom ... but no success ...

I'll be very pleased if you can advise how to do that Smile

have fun


...
  Topic: how to generate pulse train to A4988 stepper driver module
artohautala

Replies: 10
Views: 29149

PostForum: General CCS C Discussion   Posted: Fri Aug 20, 2021 3:39 am   Subject: how to generate pulse train to A4988 stepper driver module
So you have an 11.05920MHz crystal.
Get rid of INTRC. You are currently trying to select two clocks.... Sad

Your calculation is wrong.
11059200Hz/4 = 2764800Hz.
Clock period = 0.361689mSec
...
  Topic: how to generate pulse train to A4988 stepper driver module
artohautala

Replies: 10
Views: 29149

PostForum: General CCS C Discussion   Posted: Thu Aug 19, 2021 8:00 am   Subject: how to generate pulse train to A4988 stepper driver module
I have to make a comment that the 628A, is quite an 'old' chip.
It does not offer much speed, or space.
The' INTOSC' oscillator is only 4MHz. Now you should comfortably be able
to do what you wan ...
  Topic: how to generate pulse train to A4988 stepper driver module
artohautala

Replies: 10
Views: 29149

PostForum: General CCS C Discussion   Posted: Wed Aug 18, 2021 12:32 pm   Subject: how to generate pulse train to A4988 stepper driver module
Can find anything on an A488 stepper control module but lots on A4988...
If it is A488 can you provide a link?

Thank you for your answer ... sure my module is 4988
  Topic: how to generate pulse train to A4988 stepper driver module
artohautala

Replies: 10
Views: 29149

PostForum: General CCS C Discussion   Posted: Wed Aug 18, 2021 10:54 am   Subject: how to generate pulse train to A4988 stepper driver module
At the end of the day, you need to start yourself. Look at the CCS examples
and try some basic programming.
However to just generate a pulse train, need almost nothing. Your
chip has a PWM, and t ...
  Topic: how to generate pulse train to A4988 stepper driver module
artohautala

Replies: 10
Views: 29149

PostForum: General CCS C Discussion   Posted: Wed Aug 18, 2021 10:51 am   Subject: how to generate pulse train to A4988 stepper driver module
this...

http://www.ccsinfo.com/forum/viewtopic.php?t=58715

might help ???

BTW there's a typo in your post 'A488' should be' A4988'...
kinda confused this old guy for a bit...... Smile

There ...
  Topic: how to generate pulse train to A4988 stepper driver module
artohautala

Replies: 10
Views: 29149

PostForum: General CCS C Discussion   Posted: Wed Aug 18, 2021 6:06 am   Subject: how to generate pulse train to A4988 stepper driver module
Hello everybody,

I'm Arto from Finland Europe. Good afternoon. Clock is here now 3 PM.

I'm trying to get my stepper motor to run 2ms ... 20 ms pulses, 200 pulses /rev. so
stepper runs 400ms ... ...
  Topic: How to change AD channel "in fly" ??
artohautala

Replies: 2
Views: 8787

PostForum: General CCS C Discussion   Posted: Mon Oct 07, 2019 7:37 am   Subject: How to change AD channel "in fly" ??
Two things:

First you only need to do the actual 'setup', once. So just have:

setup_adc_ports(sAN0 | sAN1 | VREF_VREF);
setup_adc(ADC_CLOCK_DIV_16);

Once at the start of the code. This is n ...
  Topic: How to change AD channel "in fly" ??
artohautala

Replies: 2
Views: 8787

PostForum: General CCS C Discussion   Posted: Mon Oct 07, 2019 5:52 am   Subject: How to change AD channel "in fly" ??
Hello,
I'm trying to change AD-channel from channel 0 to channel 1 but I can't make it work.
Please help me... I'm tried it about three hours today and nothing seems to help.

#include <16F88. ...
 
Page 1 of 12 Goto page 1, 2, 3 ... 10, 11, 12  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group