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: Problems with ROM and LCD font
nickdc

Replies: 6
Views: 15951

PostForum: General CCS C Discussion   Posted: Mon Jun 29, 2020 5:10 am   Subject: Problems with ROM and LCD font
Hello Ttelmah,

Thanks for your clues.
I changed 'const' to 'rom' and removed the memcpy.
If you are in the vicinity of Westvleteren, we will offer you a Trappist beer Smile
  Topic: Problems with ROM and LCD font
nickdc

Replies: 6
Views: 15951

PostForum: General CCS C Discussion   Posted: Mon Jun 29, 2020 2:56 am   Subject: Problems with ROM and LCD font
I have a problem with printing certain characters to my LCD, after I added a symbol to my font set.

I use CCS compiler 5.078, PIC18F57K42, I use opt compress because else it doesn't fit into memory ...
  Topic: PIC16F1828 WDT and I2C write behaviour
nickdc

Replies: 6
Views: 15753

PostForum: General CCS C Discussion   Posted: Mon Dec 02, 2019 11:49 am   Subject: PIC16F1828 WDT and I2C write behaviour
Thanks temtronic and PCM programmer for looking into this.
Sorry, I looked at a wrong pair of resistors.
I also see a pair of 4k7 resistors in my schematic connected to 5V.
The MCP4725 is an IC o ...
  Topic: PIC16F1828 WDT and I2C write behaviour
nickdc

Replies: 6
Views: 15753

PostForum: General CCS C Discussion   Posted: Mon Dec 02, 2019 10:41 am   Subject: PIC16F1828 WDT and I2C write behaviour
The I2C device is the MCP4725 DAC.
Connected to the SDA and SCL are two 22 ohm resistors. Vdd is 5 V.
  Topic: PIC16F1828 WDT and I2C write behaviour
nickdc

Replies: 6
Views: 15753

PostForum: General CCS C Discussion   Posted: Mon Dec 02, 2019 9:55 am   Subject: PIC16F1828 WDT and I2C write behaviour
Hi,

My device is a PIC16F1828 and I use compiler version 5.076.
When I block PIC and then send something using I2C, the processor will freeze, causing another watchdog timeout.

These are my set ...
  Topic: Receiving a string from terminal
nickdc

Replies: 11
Views: 20316

PostForum: General CCS C Discussion   Posted: Mon Nov 18, 2019 1:51 pm   Subject: Receiving a string from terminal
Sorry, I made a mistake in my first post. I meant sending from the PC to the PIC, not from the PIC to the PC. I had overlooked the "I".
For example, writing a string via broadcast command i ...
  Topic: Receiving a string from terminal
nickdc

Replies: 11
Views: 20316

PostForum: General CCS C Discussion   Posted: Mon Nov 18, 2019 12:30 pm   Subject: Receiving a string from terminal
I want to send a string from the PC to the UART of the PIC, via the terminal.
I searched the forums and ex_sisr.c in the examples folder was recommended as good start. I have searched the forums for ...
  Topic: Reading MCP4725, rotating and concatenating two bytes
nickdc

Replies: 10
Views: 18349

PostForum: General CCS C Discussion   Posted: Mon Nov 18, 2019 2:13 am   Subject: Reading MCP4725, rotating and concatenating two bytes
This is my (shortened) program:

#include <16F1828.h>
#fuses HS,NOWDT,PROTECT,NOLVP,BROWNOUT
#use delay(clock=18.432M, CRYSTAL) // xtal-frequency
#use rs232(STREAM = UART_Displ ...
  Topic: Reading MCP4725, rotating and concatenating two bytes
nickdc

Replies: 10
Views: 18349

PostForum: General CCS C Discussion   Posted: Mon Nov 18, 2019 1:44 am   Subject: Reading MCP4725, rotating and concatenating two bytes
When I try the optimized method, I get for 4095 (decimal) the following:

upper8bits: 00ff
lower8bits: 00f0
output: 00ff

When I try:
output = ((int16)upper8bits<<4) |  ...
  Topic: Reading MCP4725, rotating and concatenating two bytes
nickdc

Replies: 10
Views: 18349

PostForum: General CCS C Discussion   Posted: Sat Nov 16, 2019 12:59 pm   Subject: Reading MCP4725, rotating and concatenating two bytes
It is the MCP4725. I made a typo, sorry.
I will try the suggesting when I have access to my hardware.
  Topic: Reading MCP4725, rotating and concatenating two bytes
nickdc

Replies: 10
Views: 18349

PostForum: General CCS C Discussion   Posted: Sat Nov 16, 2019 3:40 am   Subject: Reading MCP4725, rotating and concatenating two bytes
Hi,

My compiler version is 5.076 and I'm working on a PIC16F1828.
I'm converting the following code from XC8 to CCS.
I want to read the data bits of a MCP4725 DAC device.

I want to convert the ...
  Topic: Determining WDT timeout period
nickdc

Replies: 4
Views: 14430

PostForum: General CCS C Discussion   Posted: Thu Dec 06, 2018 1:35 pm   Subject: Determining WDT timeout period
Thanks for your replies. I'm always very impressed by the level of knowledge on this forum. As a programmer that recently joined the workforce, it makes me wonder how one assimilates that kind of faci ...
  Topic: Determining WDT timeout period
nickdc

Replies: 4
Views: 14430

PostForum: General CCS C Discussion   Posted: Thu Dec 06, 2018 4:05 am   Subject: Determining WDT timeout period
I'm using the CCS compiler v5.081 with the PIC1857K42.

I use the following instruction:

setup_wdt(WDT_ON);


How can I determine what the time out period with this specific instructio ...
  Topic: Casting void pointer: a numeric expression must appear here
nickdc

Replies: 3
Views: 12959

PostForum: General CCS C Discussion   Posted: Mon Nov 19, 2018 12:03 pm   Subject: Casting void pointer: a numeric expression must appear here
Thanks. The #case was indeed the cause of the problem.
  Topic: Casting void pointer: a numeric expression must appear here
nickdc

Replies: 3
Views: 12959

PostForum: General CCS C Discussion   Posted: Sat Nov 17, 2018 6:53 am   Subject: Casting void pointer: a numeric expression must appear here
I use a PIC18F47K42 and the CCS compiler v5.081. I'm in the process of porting the following code from XC8 to CCS.

https://www.studentcompanion.co.za/interfacing-sd-card-with-pic-microcontroller-x ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group