Author |
Message |
Topic: 16F1824 clock setup |
dsaari
Replies: 2
Views: 6339
|
Forum: General CCS C Discussion Posted: Wed Jul 17, 2013 7:26 pm Subject: 16F1824 clock setup |
Hello all,
I'm trying to simply understand what I might be doing wrong. I've recently started programming a new PIC that I'm not too familiar with. It's the 16F1824 MCU. I wrote a "hello world&q ... |
Topic: Serial or count? |
dsaari
Replies: 11
Views: 15643
|
Forum: General CCS C Discussion Posted: Mon Jun 17, 2013 7:48 pm Subject: Serial or count? |
Not real pretty or elegant but functional.... for (x=0;x<8;x++)
{
Byte1 <<=1;
Byte1 += Buffer[x];
}
... |
Topic: Serial or count? |
dsaari
Replies: 11
Views: 15643
|
Forum: General CCS C Discussion Posted: Mon Jun 17, 2013 6:15 pm Subject: Serial or count? |
Ok, I suspected I needed to do that, just hoping for an easy way out. Anyway, I got it working, I've populated an array of 40 shorts (one for each channel). Now I need to serial out the information to ... |
Topic: Serial or count? |
dsaari
Replies: 11
Views: 15643
|
Forum: General CCS C Discussion Posted: Sun Jun 16, 2013 12:40 pm Subject: Serial or count? |
Hello all,
I've been trying to utilize a pic to receive some input data from a light bar, and I'm struggling. The light bar (array of 40 send/receive pairs) outputs data in the following way; one lon ... |
Topic: write_eeprom data corruption issue |
dsaari
Replies: 11
Views: 12231
|
Forum: General CCS C Discussion Posted: Tue May 21, 2013 3:36 pm Subject: write_eeprom data corruption issue |
I think I've gotten to the bottom of my issue with corrupt data EEPROM writes. I did re-enable BROWNOUT also. I feel that the issue was in the button debounce which I simply overlooked when I wrote th ... |
Topic: write_eeprom data corruption issue |
dsaari
Replies: 11
Views: 12231
|
Forum: General CCS C Discussion Posted: Mon May 20, 2013 9:15 pm Subject: write_eeprom data corruption issue |
I've tried the fuse settings in every possible combination and still had the issue. I'm not putting it to sleep or anything. Can you direct me on how to do corruption tests if I enable brownout? I onl ... |
Topic: write_eeprom data corruption issue |
dsaari
Replies: 11
Views: 12231
|
Forum: General CCS C Discussion Posted: Mon May 20, 2013 8:48 pm Subject: write_eeprom data corruption issue |
For the tests I have run today; I just changed the starting location to address zero from a different memory area. I had the same thought as you and I am forever conscious of this limitation. These wr ... |
Topic: write_eeprom data corruption issue |
dsaari
Replies: 11
Views: 12231
|
Forum: General CCS C Discussion Posted: Mon May 20, 2013 7:59 pm Subject: write_eeprom data corruption issue |
Ok, I've been cycling two of these timers with the corrected code, as pointed out, for about two hours. They have each turned on, counted down from 10, and turned off, more that 300 times each. There ... |
Topic: write_eeprom data corruption issue |
dsaari
Replies: 11
Views: 12231
|
Forum: General CCS C Discussion Posted: Mon May 20, 2013 5:28 pm Subject: write_eeprom data corruption issue |
My intention with the for loop was implemented today as a final surrender attempt. It was intended to limit what is written to EEPROM to be between 1 and 99. Since an int can hold 255, I wanted to rul ... |
Topic: write_eeprom data corruption issue |
dsaari
Replies: 11
Views: 12231
|
Forum: General CCS C Discussion Posted: Mon May 20, 2013 4:49 pm Subject: write_eeprom data corruption issue |
Hi,
I'm having a problem with the onboard eeprom data becoming corrupt on my Pic. It is very intermittent but I can recreate it. The device is 16F876. I have scoured the forums and reviewed many rela ... |
Topic: Optical Mouse Chip |
dsaari
Replies: 7
Views: 8961
|
Forum: General CCS C Discussion Posted: Sun Apr 12, 2009 6:23 am Subject: Optical Mouse Sensor |
Thank you asmallri! I added the 1kohm and now I got data. I don't know what it means yet but I've got it. When I move, the numbers seem to increase and decrease depending on direction. I get zeros if ... |
Topic: Optical Mouse Chip |
dsaari
Replies: 7
Views: 8961
|
Forum: General CCS C Discussion Posted: Sat Apr 11, 2009 11:12 pm Subject: Optical Mouse Sensor |
Alright, I tried your recommendation but am still having troubles. I know that I am able to write to the sensor because I can get it to react as I'd expect using power down and reset configurations. I ... |
Topic: Optical Mouse Chip |
dsaari
Replies: 7
Views: 8961
|
Forum: General CCS C Discussion Posted: Sat Apr 11, 2009 5:21 pm Subject: Optical Mouse Sensor |
Ok,
I think I've got thinks talking a bit. I can send configuration data to the chip to take it out of power savings mode. I know this is working because the LED goes from dim to bright when I send t ... |
Topic: Optical Mouse Chip |
dsaari
Replies: 7
Views: 8961
|
Forum: General CCS C Discussion Posted: Sat Apr 11, 2009 10:29 am Subject: Optical Mouse Chip |
I'm trying interface a PIC16F876 @20MHz to a ADSN-2610 optical mouse sensor. I just want to spit out the positional information to my debug screen for now. The question I have is setting up for the SP ... |
Topic: Load Cell A/D Issue |
dsaari
Replies: 7
Views: 6100
|
Forum: General CCS C Discussion Posted: Thu Dec 04, 2008 5:49 pm Subject: Load Cell A/D Issues |
Ok, I'm an idiot. I can't bring myself to leave you kind folks without closure so I'm eating a little crow. I changed the TAD divisor to ADC_CLOCK_DIV_32 and then ADC_CLOCK_DIV_64 and both those setti ... |
|