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 109 matches
CCS Forum Index
Author Message
  Topic: PIC16F1779 UART PROBLEM - Garbage when sending data
jaikumar

Replies: 10
Views: 12830

PostForum: General CCS C Discussion   Posted: Mon Jul 31, 2023 11:45 am   Subject: PIC16F1779 UART PROBLEM - Garbage when sending data
Understood.

Regards.
  Topic: PIC16F1779 UART PROBLEM - Garbage when sending data
jaikumar

Replies: 10
Views: 12830

PostForum: General CCS C Discussion   Posted: Sun Jul 30, 2023 10:33 am   Subject: PIC16F1779 UART PROBLEM - Garbage when sending data
Yes Ttelmah, I did change the fuse to HS and made the alteration that you said regarding the UART. But the software was asking for PIN setting(PPS). and once that was chosen it is working now. Once a ...
  Topic: PIC16F1779 UART PROBLEM - Garbage when sending data
jaikumar

Replies: 10
Views: 12830

PostForum: General CCS C Discussion   Posted: Sat Jul 29, 2023 11:24 pm   Subject: PIC16F1779 UART PROBLEM - Garbage when sending data
The actual problem was the crystal in the board. It is marked 8Mhz but it
produces about 10.21 or something like that Mhz. Used the internal oscillator and everything is fine.
I would like to thank ...
  Topic: PIC16F1779 UART PROBLEM - Garbage when sending data
jaikumar

Replies: 10
Views: 12830

PostForum: General CCS C Discussion   Posted: Sat Jul 29, 2023 7:59 am   Subject: PIC16F1779 UART PROBLEM - Garbage when sending data
This is the data sent:
31 32 33 34 35 36 37 38 39 30 31 32 33 34 35

data received back in terminal
71 7E 74 8F 77 79 71 7E 74 0F
  Topic: PIC16F1779 UART PROBLEM - Garbage when sending data
jaikumar

Replies: 10
Views: 12830

PostForum: General CCS C Discussion   Posted: Sat Jul 29, 2023 7:58 am   Subject: PIC16F1779 UART PROBLEM - Garbage when sending data
Hi,

I am working on a simple UART code with RX interrupt. I am getting garbage when sending read data back. Here is my code. any help would be great.
ccs version 5.115

main.h file

#include & ...
  Topic: PIC18F27J53 - Need to run both spi and i2c - Help
jaikumar

Replies: 5
Views: 13302

PostForum: General CCS C Discussion   Posted: Mon May 13, 2019 11:49 pm   Subject: PIC18F27J53 - Need to run both spi and i2c - Help
Thanks Ttelmah.

I changed all those things you said. and moved PIN_B1 to some other pin and it worked thanks for your help once again.
  Topic: PIC18F27J53 - Need to run both spi and i2c - Help
jaikumar

Replies: 5
Views: 13302

PostForum: General CCS C Discussion   Posted: Mon May 13, 2019 5:26 am   Subject: PIC18F27J53 - Need to run both spi and i2c - Help
Thanks temtronic for your reply.
The spi device is 23lc1024 and it is mode 0.
actually it was working when i had the spi device in default pins namely PIN_B5 SDI1,
PIN_B4 SCK1,
PIN_C7 SDO1.

I ...
  Topic: PIC18F27J53 - Need to run both spi and i2c - Help
jaikumar

Replies: 5
Views: 13302

PostForum: General CCS C Discussion   Posted: Mon May 13, 2019 4:55 am   Subject: PIC18F27J53 - Need to run both spi and i2c - Help
Hi,

Compiler ver - 5.081
Microcontroller - PIC18F27J53

Below i have written a program. I only get zero from the return data from
spi eeprom. My application requires both spi and i2c functions. ...
  Topic: Clarification required on RTC programming
jaikumar

Replies: 4
Views: 12682

PostForum: General CCS C Discussion   Posted: Fri May 11, 2018 6:49 am   Subject: Clarification required on RTC programming
Ttelmah you nailed it. The return value from the function did convert the value to BCD2BIN.

Thanks for pointing it out.
  Topic: Clarification required on RTC programming
jaikumar

Replies: 4
Views: 12682

PostForum: General CCS C Discussion   Posted: Fri May 11, 2018 12:43 am   Subject: Clarification required on RTC programming
Hi,

CCS compiler version: 5.078
PIC microcontroller: 16F18325

I have a i2c connected RTC and the weekday changes of the rtc chip are as follows:
01,02,04,08,10,20,40 in hex (Sun..Sat)

This ...
  Topic: 16F18325 - UART and I2C pins
jaikumar

Replies: 3
Views: 11208

PostForum: General CCS C Discussion   Posted: Fri Apr 13, 2018 4:02 am   Subject: 16F18325 - UART and I2C pins
Thanks PCM programmer.

This post below from Ttelmah helped to make it work.

#fuses MCLR, NOCLKOUT, PUT, BROWNOUT
#fuses LPBOR, BORV27, NOLVP
#fuses NOEXTOSC, RSTOSC_HFINTRC, NOWDT
#fuses NOP ...
  Topic: 16F18325 - UART and I2C pins
jaikumar

Replies: 3
Views: 11208

PostForum: General CCS C Discussion   Posted: Fri Apr 13, 2018 3:38 am   Subject: 16F18325 - UART and I2C pins
Compiler version: 5.078
  Topic: 16F18325 - UART and I2C pins
jaikumar

Replies: 3
Views: 11208

PostForum: General CCS C Discussion   Posted: Fri Apr 13, 2018 1:11 am   Subject: 16F18325 - UART and I2C pins
Hi all,

I have a existing 16F1825 project board. and would like to change to chip 16F18325.
I have the uart connected to PIN_C4(Tx) and PIN_C5(Rx) and I2C connected pins PIN_C0(SCL) and PIN_C1(SDA ...
  Topic: internal eeprom initialize. problem
jaikumar

Replies: 5
Views: 14315

PostForum: General CCS C Discussion   Posted: Fri Jul 14, 2017 7:30 am   Subject: internal eeprom initialize. problem
yes newguy it works when i do it like below:


for (loop=0; loop < (int16)256; loop++)
{
data = read_eeprom((int8)loop);
printf("Data: ...
  Topic: internal eeprom initialize. problem
jaikumar

Replies: 5
Views: 14315

PostForum: General CCS C Discussion   Posted: Fri Jul 14, 2017 6:59 am   Subject: internal eeprom initialize. problem
I figured it out.
for some reason for loop is not working. i try a while loop and it works just
fine. is it a bug or am i not doing the for loop properly.

Some one can please clarify.

thanks
 
Page 1 of 8 Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group