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 7 matches
CCS Forum Index
Author Message
  Topic: Problem with LIN communication
HARSHAL KHAJONE

Replies: 4
Views: 14377

PostForum: General CCS C Discussion   Posted: Fri Feb 16, 2018 10:41 pm   Subject: Problem with LIN communication
Most of these register addresses are wrong for the 18F46K22. Most
of them are for the 16F690.

// Special Function Registers
#byte BAUDCON1 = 0x9B //BAUDCTL= 0x9B
#bit WUE = BAUDCON1. ...
  Topic: Problem with LIN communication
HARSHAL KHAJONE

Replies: 4
Views: 14377

PostForum: General CCS C Discussion   Posted: Fri Feb 16, 2018 10:36 pm   Subject: Problem with LIN communication
from the LIN driver....
#byte PIR1 = 0x0C

that's NOT the PIR1 for an 18F46K22 according to my datasheet copy...
maybe others can confirm but I'm guessing that's part of your problem.
I didn't ...
  Topic: Problem with LIN communication
HARSHAL KHAJONE

Replies: 4
Views: 14377

PostForum: General CCS C Discussion   Posted: Fri Feb 16, 2018 9:24 am   Subject: Problem with LIN communication
Below are my code which I changed for PIC18f46k22 using PIC16F690 code in ccs example


///////////////////////////////////////////////////////////////////////////////////////////////////////////// ...
  Topic: Problem with LIN communication
HARSHAL KHAJONE

Replies: 6
Views: 16011

PostForum: General CCS C Discussion   Posted: Fri Feb 16, 2018 9:11 am   Subject: Problem with LIN communication
obvious question but which HW UART are you using for the slave ?


HW UART1
  Topic: Problem with LIN communication
HARSHAL KHAJONE

Replies: 6
Views: 16011

PostForum: General CCS C Discussion   Posted: Fri Feb 16, 2018 8:51 am   Subject: Problem with LIN communication
You posted your code in a PM to me. You should post it here.

But anyway, one big problem is this line:
#FUSES XINST //Extended set extension and Indexed Addressing mode enabled
CCS does not sup ...
  Topic: Problem with LIN communication
HARSHAL KHAJONE

Replies: 6
Views: 16011

PostForum: General CCS C Discussion   Posted: Fri Feb 16, 2018 8:34 am   Subject: Problem with LIN communication
temtronic

thanks temtronic for your valuable advice Smile
I'll try by giving your step by step procedure

  Topic: Problem with LIN communication
HARSHAL KHAJONE

Replies: 6
Views: 16011

PostForum: General CCS C Discussion   Posted: Fri Feb 16, 2018 5:03 am   Subject: Problem with LIN communication
hello everyone,

I'm going to learn LIN protocol for that i use uc PIC18f46k22 and LIN driver ic
MCP2021 and CCS PCH v5.008. I find LIN Bus sample example of PIC16F687/89/90 in CCS PCH v5.008 but ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group