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 11 matches
CCS Forum Index
Author Message
  Topic: PIC1826K42 T0
BrianC

Replies: 2
Views: 12059

PostForum: General CCS C Discussion   Posted: Mon May 02, 2022 3:06 am   Subject: PIC1826K42 T0
Hi,
Having a little problem with Timer_0,

If I set it up as
setup_timer_0(T0_INTERNAL | T0_DIV_1024 | T0_8_BIT);
and enabled the interrupt and it works fine, however if i change it to ...
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Mon Apr 25, 2022 6:24 am   Subject: 18F26K42 I2C
A very big thankyou ! I found a supply issue on the track going to the pull-ups.
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Mon Apr 25, 2022 5:20 am   Subject: 18F26K42 I2C
Many thanks for the help on this.

Before I go totally out of my mind, have I now got this correct? as it still fails at the same point, I can track it all the way through loading the array to it do ...
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2022 12:16 pm   Subject: 18F26K42 I2C
I missed the word 'nothing' out of the previous message.

Point taken, but the reality is there is nothing showing up on the i2c protocol analyser, not even a 'start' transition, so I doubt it is ge ...
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2022 12:15 pm   Subject: 18F26K42 I2C
Point taken, but the reality is there is showing up on the i2c protocol analyser, not even a 'start' transition, so I doubt it is getting that far. When you run the code under debug it stops in a tigh ...
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2022 11:08 am   Subject: 18F26K42 I2C
In case it is silly error my part I have attached the source for the piece of test code that I have been using to get the i2c running. This part of the project was written 10 years ago using Microchip ...
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2022 10:50 am   Subject: 18F26K42 I2C
I have just compiled it with exactly the same #use line and get the following assembler. The first part replicates yours, but then there is a second part, if that gives you any clue ????

Compiler 5 ...
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Sun Apr 24, 2022 3:52 am   Subject: 18F26K42 I2C
Many thanks,
I will have a look at this and see where it gets me.
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Sat Apr 23, 2022 4:24 pm   Subject: 18F26K42 I2C
Yes, they are both high. The compiler version is 5.107, updated it a couple of days a go to make sure I had the latest version.

The bit that bothers me is that this seems to be at the point where i ...
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Sat Apr 23, 2022 10:28 am   Subject: 18F26K42 I2C
Yes, pull-ups are on the board. and the commands are 'transfer' rather than 'start' ..... 'stop'. The old MSSP struff has worked well for years on this product, but had to redesign for the customer as ...
  Topic: 18F26K42 I2C [Solved]
BrianC

Replies: 20
Views: 50235

PostForum: General CCS C Discussion   Posted: Sat Apr 23, 2022 8:30 am   Subject: 18F26K42 I2C [Solved]
Hi,
I am trying to get the hardware I2C master working on the K42,

#pin_select SDA1OUT=PIN_C4
#pin_select SDA1IN=PIN_C4

#pin_select SCL1OUT=PIN_C3
#pin_select SCL1IN=PIN_C3

#use delay( ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group