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 15 matches
CCS Forum Index
Author Message
  Topic: Global variable unchanged in main()
berel

Replies: 5
Views: 17252

PostForum: General CCS C Discussion   Posted: Wed Feb 10, 2021 11:04 am   Subject: Global variable unchanged in main()
I will do so Very Happy
  Topic: Global variable unchanged in main()
berel

Replies: 5
Views: 17252

PostForum: General CCS C Discussion   Posted: Wed Feb 10, 2021 10:19 am   Subject: Global variable unchanged in main()
Thanks for both hints.
#CASE was not used, the variable name is currentPosition which should be unique.
I wrote a small sample program with global variables (output pulses as often as the global var ...
  Topic: Global variable unchanged in main()
berel

Replies: 5
Views: 17252

PostForum: General CCS C Discussion   Posted: Tue Feb 09, 2021 10:00 am   Subject: Global variable unchanged in main()
I am running PCH 5.101, Linux version.

A variable is declared in an include file before main() and hence a global variable.
When modifying the variable in a function being in the same .c file, it ...
  Topic: #use spi with slow baud rates
berel

Replies: 3
Views: 12791

PostForum: General CCS C Discussion   Posted: Thu Jul 09, 2020 2:24 am   Subject: #use spi with slow baud rates
Thanks for further explanation.

It made also no difference if using the baud option or clock_high & clock_low options.
  Topic: #use spi with slow baud rates
berel

Replies: 3
Views: 12791

PostForum: General CCS C Discussion   Posted: Thu Jul 09, 2020 12:24 am   Subject: #use spi with slow baud rates
Hello,

In a circuit with a PIC18F45K50 (PCH 5.093) we have several parts with SPI interface.

The communication of one part needs a clock_high = clock_low = 50 µs.
When setting it in the SM str ...
  Topic: SSD1306 driver for use with less RAM
berel

Replies: 64
Views: 370181

PostForum: Code Library   Posted: Wed Jun 24, 2020 10:07 am   Subject: SSD1306 driver for use with less RAM
Hello Ttelmah,
thanks for adding additional explanations !!!
It makes fun using the OLEDS, even the small 128x32 one, also for debugging very helpful.
  Topic: SSD1306 driver for use with less RAM
berel

Replies: 64
Views: 370181

PostForum: Code Library   Posted: Wed Jun 24, 2020 2:42 am   Subject: SSD1306 driver for use with less RAM
Without '#define PSV' PCH compile errors are shown, starting from the Font_line function declaration.

-> this is caused by a typo in the code
void FONT_line(ROM byte * font_data, unsigned nt8 c ...
  Topic: SSD1306 driver for use with less RAM
berel

Replies: 64
Views: 370181

PostForum: Code Library   Posted: Tue Jun 23, 2020 4:59 am   Subject: SSD1306 driver for use with less RAM
Hello,

I am currently programming a PIC18F45K50 with PCH 5.093 for a 128x32 I2C OLED with integrated level shifters (Adafruit #4440) using Ttelmah's code (BIG thanks from me too).
Since SPI device ...
  Topic: Bootloader for 18F2xK50 HID
berel

Replies: 0
Views: 5583

PostForum: General CCS C Discussion   Posted: Fri Jul 29, 2016 9:01 am   Subject: Bootloader for 18F2xK50 HID
I have projects with 18F14K50, 18F25K50 and 18F45K50.
They are all USB HID devices and are programmed by a ICD3.

Is it possible to implement a bootloader?
I am asking since the bootloader uses a ...
  Topic: Output data simultaneously on a split Input/Output port
berel

Replies: 5
Views: 8911

PostForum: General CCS C Discussion   Posted: Thu Aug 15, 2013 2:27 am   Subject: Output data simultaneously on a split Input/Output port
Dear RF_Developer,

many thanks for the additional explanation why it will work.

And thanks for the hint regarding 16-bit ports.
I am currently using a PIC18F.

Regards
  Topic: Output data simultaneously on a split Input/Output port
berel

Replies: 5
Views: 8911

PostForum: General CCS C Discussion   Posted: Thu Aug 15, 2013 2:13 am   Subject: Output data simultaneously on a split Input/Output port
Dear Ttelmah,

many thanks for your quick response.

If there is no problem using output_d and input_d as explained, that will make life easier Smile

Regards
  Topic: Output data simultaneously on a split Input/Output port
berel

Replies: 5
Views: 8911

PostForum: General CCS C Discussion   Posted: Thu Aug 15, 2013 1:54 am   Subject: Output data simultaneously on a split Input/Output port
I have split a 8-bit port into lower 4 bits for input and higher 4 bits for output which will not be changed in the program.
#use fast_io(d)
...
set_tris_d( 0x0f );
The output_d an ...
  Topic: PIC18F14K50 slow output speed
berel

Replies: 4
Views: 7335

PostForum: General CCS C Discussion   Posted: Fri Oct 21, 2011 12:22 am   Subject: PIC18F14K50 slow output speed
PCH compiler version is 4.116, used within MPLAB 8.76

The code as posted is just a minimum code for testing. The target code is one for a HID USB device.

I am measuring the pulses with a Saleae ...
  Topic: PIC18F14K50 slow output speed
berel

Replies: 4
Views: 7335

PostForum: General CCS C Discussion   Posted: Thu Oct 20, 2011 3:44 am   Subject: PIC18F14K50 slow output speed
Hi n-squared,

thanks for the hint: I tried so, but it did not make a change.

berel
  Topic: PIC18F14K50 slow output speed
berel

Replies: 4
Views: 7335

PostForum: General CCS C Discussion   Posted: Thu Oct 20, 2011 2:56 am   Subject: PIC18F14K50 slow output speed
Hi,

I am using the 18F14K50 with a 12 MHz crystal. When using a minimal program like

#include <18F14K50.h>
#fuses HS,NOWDT,NOLVP,NODEBUG,CPUDIV2,PLLEN
#use delay(clock=12M, crystal&# ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group