Author |
Message |
Topic: I2C Slave problem |
rightbak
Replies: 9
Views: 18317
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2017 8:45 am Subject: I2C Slave problem |
Problem resolved...
I still had the interrupt enabled for INT_SSP rather than INT_SSP2!
Once changed over, all working ok! Thanks for all your prompting... |
Topic: I2C Slave problem |
rightbak
Replies: 9
Views: 18317
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2017 7:17 am Subject: I2C Slave problem |
MSSP2's default location is RB1 and RB2 anyway so perhaps I don't need to re-map it at all? I did try without the #PIN_SELECT statements but it didn't compile.. |
Topic: I2C Slave problem |
rightbak
Replies: 9
Views: 18317
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2017 7:00 am Subject: I2C Slave problem |
The physical I2C lines come in to RB1 (Clock) and RB2 (Data) and I'm using the pin select #use statement to redefine which MSSP module is 'connected'. MSSP1 appears to work but MSSP2 doesn't - see cod ... |
Topic: I2C Slave problem |
rightbak
Replies: 9
Views: 18317
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2017 5:28 am Subject: I2C Slave problem |
I'm using a 16F15376 with compiler version v5.070.
I'm having problems setting up the device to configure the I2C module as a slave. The problem I am seeing is that it works correctly if I use MSSP ... |
Topic: Bootloader and #rom |
rightbak
Replies: 3
Views: 10128
|
Forum: General CCS C Discussion Posted: Wed Jun 07, 2017 2:54 am Subject: Bootloader and #rom |
PIC18F18325
MPLAB X v3.40
CCS v5.070
I am using the #rom command in my code to predefine some eeprom locations with data that that I want to use later.
#rom getenv ("EEPROM_ADDRESS& ... |
Topic: PIC16F18325 and #pin_select |
rightbak
Replies: 6
Views: 15029
|
Forum: General CCS C Discussion Posted: Wed Jun 07, 2017 2:27 am Subject: PIC16F18325 and #pin_select |
Thanks for the warning - I've now moved the I2C Address away from one of the reserved ones. All seems to be working fine. |
Topic: PIC16F18325 and #pin_select |
rightbak
Replies: 6
Views: 15029
|
Forum: General CCS C Discussion Posted: Tue Jun 06, 2017 2:37 am Subject: PIC16F18325 and #pin_select |
I've made the following change to the WDT as suggested
#fuses RSTOSC_HFINTRC,NOWDT,NOPUT,NOPROTECT,NOBROWNOUT,NOPPS1WAY
#use delay(clock=2000000, restart_wdt)
I was previously fin ... |
Topic: PIC16F18325 and #pin_select |
rightbak
Replies: 6
Views: 15029
|
Forum: General CCS C Discussion Posted: Mon Jun 05, 2017 2:57 am Subject: PIC16F18325 and #pin_select |
MPLAB X IDE v3.40
CCS Version 5.070
PIC16F18325
I'm trying to write some code to bootload the device via RS232, but then once in the application, change those pins to use the I2C functions.
I ... |
Topic: Application uses bootloader #fuses settings |
rightbak
Replies: 13
Views: 27286
|
Forum: General CCS C Discussion Posted: Mon Sep 19, 2011 6:32 am Subject: Application uses bootloader #fuses settings |
Many thanks for your reply |
Topic: Application uses bootloader #fuses settings |
rightbak
Replies: 13
Views: 27286
|
Forum: General CCS C Discussion Posted: Fri Sep 16, 2011 4:37 am Subject: Application uses bootloader #fuses settings |
Hi
I'm using a PIC18F46J50, CCS V4.119 with a 12MHz crystal.
I am using a slightly modified version of the CCS USB bootloader to program the PIC with my application code. The bootloader has the ... |
|