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: Create bin file with MPLAB X/CCS
GL82

Replies: 1
Views: 8760

PostForum: General CCS C Discussion   Posted: Tue Jan 03, 2023 9:33 am   Subject: Create bin file with MPLAB X/CCS
Hi all,
I want to create a .bin file from a MPLAB X/CCS project but I do not find the way to do it, it only generates the .hex file. The only way I find at the moment is to import the project with t ...
  Topic: i2c_transfer(), i2c restart, i2c stop
GL82

Replies: 8
Views: 21752

PostForum: General CCS C Discussion   Posted: Tue Jun 07, 2022 2:48 am   Subject: i2c_transfer(), i2c restart, i2c stop
Thanks both of you.
However I still have not solve the issue
With the following code (the old one)
int16 readDataBQ(int8 cmd)
{
int8 byteMS;
int8 byteLS;

i2c_sta ...
  Topic: i2c_transfer(), i2c restart, i2c stop
GL82

Replies: 8
Views: 21752

PostForum: General CCS C Discussion   Posted: Wed Jun 01, 2022 11:48 pm   Subject: i2c_transfer(), i2c restart, i2c stop
Hi again Ttelmah,
I understand what you are saying but I do not find how to implement this with i2c_transfer() function. I have my function written as shown below

int16 readDataBQ(int8 cmd ...
  Topic: i2c_transfer(), i2c restart, i2c stop
GL82

Replies: 8
Views: 21752

PostForum: General CCS C Discussion   Posted: Tue May 31, 2022 1:48 am   Subject: i2c_transfer(), i2c restart, i2c stop
Hi Ttelmah,
Thanks for you reply!
I show you below the transaction required to communicated with a Texas Instrument fuel gauge. As you can see the restart condition (Sr) is not needed between write ...
  Topic: i2c_transfer(), i2c restart, i2c stop
GL82

Replies: 8
Views: 21752

PostForum: General CCS C Discussion   Posted: Mon May 30, 2022 8:00 am   Subject: i2c_transfer(), i2c restart, i2c stop
Hi all,
I have some doubts with the new i2c_transfer() function used in the i2c dedicated modules implemented in family K42 PICs.

This i2c_transfer() function excute the complete sequence of an ...
  Topic: PIC18F46K42 I2C
GL82

Replies: 9
Views: 22609

PostForum: General CCS C Discussion   Posted: Mon May 30, 2022 6:35 am   Subject: PIC18F46K42 I2C
Hi all,
I have solved the issue. It was about the i2c configuration module. It seems that using fast/slow (and not setting the clock source) is not correct with the new i2c specific module. I have d ...
  Topic: PIC18F46K42 I2C
GL82

Replies: 9
Views: 22609

PostForum: General CCS C Discussion   Posted: Sat May 28, 2022 1:05 am   Subject: PIC18F46K42 I2C
Thanks for the advice temtronic.
However, as I said in my last post, if I try with lower speed (see the code below) the result is the same

#use i2c(STREAM=DAC, master, SLOW,SCL=PIN_C3,SDA = P ...
  Topic: PIC18F46K42 I2C
GL82

Replies: 9
Views: 22609

PostForum: General CCS C Discussion   Posted: Fri May 27, 2022 8:36 am   Subject: PIC18F46K42 I2C
Thanks for the reply Ttelmah!
The #pin select is the same in both PICs
#pin_select SCL1OUT = PIN_C3
#pin_select SCL1IN = PIN_C3
#pin_select SDA1OUT = PIN_C4
#pin_select SDA1IN = PIN_C4

I ha ...
  Topic: PIC18F46K42 I2C
GL82

Replies: 9
Views: 22609

PostForum: General CCS C Discussion   Posted: Fri May 27, 2022 8:11 am   Subject: PIC18F46K42 I2C
Hi all!
I have to change from PIC18F46Q10 to PIC18F46K42 and now I2C old functions do not work in this micro so I must use the i2c_transfer() function.

I had this code working on the PIC18F46Q10
...
  Topic: Change UART setup at run time
GL82

Replies: 9
Views: 17487

PostForum: General CCS C Discussion   Posted: Tue Oct 08, 2019 5:23 am   Subject: Change UART setup at run time
Thanks for this, really very useful information
"You should not leave PPS 'unlocked'. It's not made clear in the data sheets,
but on some chips, the PPS selections, are only actually applied, w ...
  Topic: Change UART setup at run time
GL82

Replies: 9
Views: 17487

PostForum: General CCS C Discussion   Posted: Tue Oct 08, 2019 12:23 am   Subject: Change UART setup at run time
I think I do not understand well the function pin_select().
As I can read in CCS help

pin_select(peripheral_pin, pin,

I understand of this explanation that lock/unlock sequences are made by C ...
  Topic: Change UART setup at run time
GL82

Replies: 9
Views: 17487

PostForum: General CCS C Discussion   Posted: Mon Oct 07, 2019 7:49 am   Subject: Change UART setup at run time
The compiler version is v5.070.

I have added the code you said and know I can stop the program and check PPSLOCKED=0 (before this I always saw PPSLOCKED=1).

However the program still does not wo ...
  Topic: Change UART setup at run time
GL82

Replies: 9
Views: 17487

PostForum: General CCS C Discussion   Posted: Mon Oct 07, 2019 5:09 am   Subject: Change UART setup at run time
Yes, B and C ports can be used for UART in this PIC.
There should not be problems with voltage.
I am already using the other UART for another serial communication.

Rereading the datasheet I thi ...
  Topic: Change UART setup at run time
GL82

Replies: 9
Views: 17487

PostForum: General CCS C Discussion   Posted: Mon Oct 07, 2019 2:09 am   Subject: Change UART setup at run time
Hi,
I am doing a project with PIC18F26K40 and I want to change uart setup (pins location and baud rate) at run time.

I have written this code but it is not working

if ((bufInRS232Aress ...
  Topic: 18F67K40. Fail Safe Clock Monitor
GL82

Replies: 1
Views: 8087

PostForum: General CCS C Discussion   Posted: Wed Jun 12, 2019 2:26 am   Subject: 18F67K40. Fail Safe Clock Monitor
Hi everybody,

I am having problems in my new project with the configuration of the fail safe clock monitor frequency of the PIC18F67K40.

I am using external quartz of 8Mhz with PLL so I configur ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group