Author |
Message |
Topic: PIC18F46K20 and INT_EXT1_L2H / INT_EXT1_H2L |
soundscu
Replies: 4
Views: 6423
|
Forum: General CCS C Discussion Posted: Fri Dec 21, 2012 2:40 pm Subject: PIC18F46K20 and INT_EXT1_L2H / INT_EXT1_H2L |
I need to respond to interrupts very fast (as close to realtime as possible) for both polarities. It's likely that I will bypass CCS's interrupt handling entirely, and write the whole thing in ASM.
... |
Topic: PIC18F46K20 and INT_EXT1_L2H / INT_EXT1_H2L |
soundscu
Replies: 4
Views: 6423
|
Forum: General CCS C Discussion Posted: Fri Dec 21, 2012 12:40 pm Subject: PIC18F46K20 and INT_EXT1_L2H / INT_EXT1_H2L |
I'm writing code for a PIC18F46K20.
The datasheet indicates that I have hardware interrupt pins for INT0, INT1, and INT2. To set the edge polarity of these interrupts, there are INTEDGx bits in ... |
Topic: dspic33 i2c slave resets on bad i2c address |
soundscu
Replies: 6
Views: 12373
|
Forum: General CCS C Discussion Posted: Sat Aug 18, 2012 9:24 am Subject: dspic33 i2c slave resets on bad i2c address |
Thanks, jeremiah.
I fully agree with you; in another instance I would be the guy saying the same thing in a reply.
I've already gone down the road you suggest, checking and watching the hardwa ... |
Topic: dspic33 i2c slave resets on bad i2c address |
soundscu
Replies: 6
Views: 12373
|
Forum: General CCS C Discussion Posted: Fri Aug 17, 2012 3:56 pm Subject: dspic33 i2c slave resets on bad i2c address |
Sorry, the i2c address is being set near the beginning of Main. Here are some additional code snippets to eliminate ambiguity:
unsigned int8 i2cAddr = 0xa8;
I2C_SlaveAddr(sI2C,i2cAd ... |
Topic: dspic33 i2c slave resets on bad i2c address |
soundscu
Replies: 6
Views: 12373
|
Forum: General CCS C Discussion Posted: Fri Aug 17, 2012 9:25 am Subject: dspic33 i2c slave resets on bad i2c address |
I'm using a dsPIC33FJ128MC804 as an i2c slave. To test it, I'm using a pickit serial analyzer. The application is simple, it emulates eeprom: write a 16-bit address, read as many bytes back as neede ... |
Topic: odd number of ram variables hangs lcd.c on pic33 |
soundscu
Replies: 0
Views: 3207
|
Forum: General CCS C Discussion Posted: Wed Apr 27, 2011 9:51 am Subject: odd number of ram variables hangs lcd.c on pic33 |
I'm using a PIC33FJ128GP804 with a standard 2-line LCD and the CCS lcd.c driver. It has been working fine during initial code setup/test/development, there are no hardware issues.
As I add code to ... |
Topic: Is the Load-n-Go working for ANYONE? |
soundscu
Replies: 5
Views: 46614
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Fri Jun 11, 2010 12:12 pm Subject: other handheld programmers |
In the past I've used portable programmers from Kanda.com, which were problematic for various reasons but generally ended up working when I needed them.
more recently I've been using the Microchip ... |
Topic: Trap Conflict Reset on dsPIC33 |
soundscu
Replies: 1
Views: 6016
|
Forum: General CCS C Discussion Posted: Sun Dec 13, 2009 1:27 pm Subject: Trap Conflict Reset on dsPIC33 |
Hi everyone. I'm embarrassed to have to ask this, but...
What is a Trap Conflict Reset?
I've been developing an application on the DSPIC33FJ128MC804 using CCS C 4.103. A Trap Conflict Reset ... |
Topic: macro syntax to set parameters that must be constants? |
soundscu
Replies: 2
Views: 3906
|
Forum: General CCS C Discussion Posted: Sun Dec 06, 2009 10:08 am Subject: macro syntax to set parameters that must be constants? |
For now, I've written a function with the same syntax as set_pwm_duty(), and used switch to call set_pwm_duty() with the required constant inserted. Perhaps this is the best workaround?
Jim |
Topic: macro syntax to set parameters that must be constants? |
soundscu
Replies: 2
Views: 3906
|
Forum: General CCS C Discussion Posted: Sun Dec 06, 2009 10:02 am Subject: macro syntax to set parameters that must be constants? |
Using PCD compiler version 4.101, target dsPIC33.
I have written a fairly complex function utilizing set_pwm-duty(). It was my hope to use this function for 4 different pwm outputs using a variabl ... |
Topic: dsPIC33 works when ICD programmed, but not when ICD debugged |
soundscu
Replies: 2
Views: 5095
|
Forum: General CCS C Discussion Posted: Thu Dec 03, 2009 11:48 am Subject: dsPIC33 works when ICD programmed, but not when ICD debugged |
Even more strange:
I can debug successfully with an ICD2. So the problem seems to rest with the ICD3. |
Topic: dsPIC33 works when ICD programmed, but not when ICD debugged |
soundscu
Replies: 2
Views: 5095
|
Forum: General CCS C Discussion Posted: Thu Dec 03, 2009 10:09 am Subject: dsPIC33 works when ICD programmed, but not when ICD debugged |
This one has me stumped. I have code that works when programmed into the dsPIC33 with an ICD3. But the same code does not work when trying to debug using the ICD3. The environment is MPLAB 8.40, an ... |
Topic: register and bit names as they appear in the datasheet |
soundscu
Replies: 6
Views: 9436
|
Forum: General CCS C Discussion Posted: Wed Dec 02, 2009 1:32 pm Subject: register and bit names as they appear in the datasheet |
Spectacular! Creating an include file of registers and bits is easy. :)
Thank you, ckielstra. Very very very much appreciated!
Jim |
Topic: register and bit names as they appear in the datasheet |
soundscu
Replies: 6
Views: 9436
|
Forum: General CCS C Discussion Posted: Wed Dec 02, 2009 12:24 pm Subject: register and bit names as they appear in the datasheet |
I'm running the most current versions of everything for the dsPIC33. Compiler/IDE version 4.101. Also have the most recent release of Microchip stuff: MPLAB 8.40, and ICD firmware bundled with that ... |
Topic: register and bit names as they appear in the datasheet |
soundscu
Replies: 6
Views: 9436
|
Forum: General CCS C Discussion Posted: Wed Dec 02, 2009 11:43 am Subject: register and bit names as they appear in the datasheet |
I have the CCS IDE, and will look closer at the device editor. I didn't realize it would be helpful in this case. Can you elaborate just a bit more?
Unfortunately, though, debugging stopped worki ... |
|