Author |
Message |
Topic: Simple 18F4550 USB Communication |
Seaborgium
Replies: 9
Views: 21251
|
Forum: General CCS C Discussion Posted: Mon Aug 13, 2012 7:02 pm Subject: Simple 18F4550 USB Communication |
Oh, I understand now. Thanks for the info! |
Topic: I2C Master Ignoring Clock-Stretching/Bizarre Behavior |
Seaborgium
Replies: 7
Views: 14505
|
Forum: General CCS C Discussion Posted: Mon Aug 13, 2012 11:17 am Subject: I2C Master Ignoring Clock-Stretching/Bizarre Behavior |
I changed the clock back to the original (8 MHz), and it seems to be working fine so far (I'm still in the process of getting it back to its previous functionality).
However, this information is qu ... |
Topic: I2C Master Ignoring Clock-Stretching/Bizarre Behavior |
Seaborgium
Replies: 7
Views: 14505
|
Forum: General CCS C Discussion Posted: Fri Aug 10, 2012 6:45 pm Subject: I2C Master Ignoring Clock-Stretching/Bizarre Behavior |
Ah! Sorry, I lowered the speed when I was trying to test current draw vs. clock speed, and I forgot to raise it again.
Thanks for the help! I'll increase the speed, make those other modifications, an ... |
Topic: I2C Master Ignoring Clock-Stretching/Bizarre Behavior |
Seaborgium
Replies: 7
Views: 14505
|
Forum: General CCS C Discussion Posted: Fri Aug 10, 2012 10:58 am Subject: I2C Master Ignoring Clock-Stretching/Bizarre Behavior |
Hm, I see. However, the errata sheet says that the solution would be to prevent clock stretching. If I can't stretch the clock, how can I make sure the slave has enough time to retrieve data from the ... |
Topic: I2C Master Ignoring Clock-Stretching/Bizarre Behavior |
Seaborgium
Replies: 7
Views: 14505
|
Forum: General CCS C Discussion Posted: Thu Aug 09, 2012 8:03 pm Subject: I2C Master Ignoring Clock-Stretching/Bizarre Behavior |
I recently had 10-bit I2C communication working perfectly with a PIC16LF1503 master and PIC16F886 slave. The master sent the slave a data address, and the slave replied with the value stored in that d ... |
Topic: Simple 18F4550 USB Communication |
Seaborgium
Replies: 9
Views: 21251
|
Forum: General CCS C Discussion Posted: Thu Aug 09, 2012 11:10 am Subject: Simple 18F4550 USB Communication |
I ended up using the same settings that the board was built for - a 20 MHz crystal, but software specified to have a 48 MHz clock. It seems to work fine.
//Stalls until a target byte is received. ... |
Topic: Simple 18F4550 USB Communication |
Seaborgium
Replies: 9
Views: 21251
|
Forum: General CCS C Discussion Posted: Wed Aug 08, 2012 1:12 pm Subject: Simple 18F4550 USB Communication |
Oh, I see. I'll use a crystal for 6MHz/48MHz, examine the board some more, and see if that works. Thanks! |
Topic: Please help me to solve switch pressing function. |
Seaborgium
Replies: 3
Views: 6918
|
Forum: General CCS C Discussion Posted: Wed Aug 08, 2012 11:58 am Subject: Please help me to solve switch pressing function. |
Here is main() with fixed spacing.
Right now, uh... it just toggles bit 5 of switchstatus whenever you press and release the button. Doesn't seem to do anything else. Not sure what the point of thi ... |
Topic: Simple 18F4550 USB Communication |
Seaborgium
Replies: 9
Views: 21251
|
Forum: General CCS C Discussion Posted: Wed Aug 08, 2012 11:30 am Subject: Simple 18F4550 USB Communication |
Hi,
I'm working on getting USB CDC communication to work with an 18F4550, but I'm not really sure where to start. I haven't found any simple examples (most of them are very complex and seem more li ... |
Topic: I2C 10-bit Addressing |
Seaborgium
Replies: 2
Views: 7419
|
Forum: General CCS C Discussion Posted: Thu Jul 26, 2012 2:06 pm Subject: I2C 10-bit Addressing |
Ah, I see. I managed to get it working. Thank you! |
Topic: 10-bit I2C Communication |
Seaborgium
Replies: 0
Views: 25299
|
Forum: Code Library Posted: Thu Jul 26, 2012 2:06 pm Subject: 10-bit I2C Communication |
I have successful 10-bit I2C communication between a 16LF1503 master and 16F886 slave. I've included the relevant portions here.
Master.c:
#include <Master.h>
#use i2c(Master, Slow, s ... |
Topic: I2C 10-bit Addressing |
Seaborgium
Replies: 2
Views: 7419
|
Forum: General CCS C Discussion Posted: Wed Jul 25, 2012 6:02 pm Subject: I2C 10-bit Addressing |
Hi,
I'm trying to implement 10-bit I2C addressing with a PIC16LF1503 master and PIC16F886 slave, using CCS 4.133. I have a totally functional 7-bit addressing version. I've included the relevant pa ... |
Topic: Avoiding Overwriting Program in Program Memory |
Seaborgium
Replies: 2
Views: 5177
|
Forum: General CCS C Discussion Posted: Tue Jul 24, 2012 11:47 am Subject: Avoiding Overwriting Program in Program Memory |
Oh, I see. Thank you very much! |
Topic: Avoiding Overwriting Program in Program Memory |
Seaborgium
Replies: 2
Views: 5177
|
Forum: General CCS C Discussion Posted: Mon Jul 23, 2012 6:54 pm Subject: Avoiding Overwriting Program in Program Memory |
Hi, I'm working with the PIC16LF1503 and need to store an I2C slave address (just one or two bytes) in non-volatile memory, so that it isn't lost when the PIC powers down. Since this chip doesn't have ... |
|