Author |
Message |
Topic: USB definition |
SuperDave
Replies: 3
Views: 7282
|
Forum: General CCS C Discussion Posted: Fri Jul 24, 2015 9:22 pm Subject: USB definition |
One would think that that was the case. I did and I searched previously.
Here what one finds in usb_desc_hid.h searching on USB_CLASS_SPECIFIC_DESC_LOOKUP_SIZE at line 186
const int8 USB_CLASS ... |
Topic: USB definition |
SuperDave
Replies: 3
Views: 7282
|
Forum: General CCS C Discussion Posted: Fri Jul 24, 2015 12:06 pm Subject: USB definition |
Where is
USB_CLASS_SPECIFIC_DESC_LOOKUP_SIZE[0][0]
defined?
It's used in class descriptor 1 (HID). |
Topic: Possible Baud Rate Tolerance Issue |
SuperDave
Replies: 28
Views: 43285
|
Forum: General CCS C Discussion Posted: Sun Dec 14, 2014 7:28 pm Subject: Possible Baud Rate Tolerance Issue |
Another thought. Fix it in firmware.
At start up have one unit output a "known" but perhaps inaccurate frequency on the line and have the other unit measure that frequency and adjust the ... |
Topic: Possible Baud Rate Tolerance Issue |
SuperDave
Replies: 28
Views: 43285
|
Forum: General CCS C Discussion Posted: Sun Dec 14, 2014 7:20 pm Subject: Possible Baud Rate Tolerance Issue |
Here's a piece that I didn't see in the discussion.
I've learned the hard way to "wire it right". You talk about 1 wire but there must be two, one of which is obviously ground and so obv ... |
Topic: EEProm questions |
SuperDave
Replies: 1
Views: 4795
|
Forum: General CCS C Discussion Posted: Fri Nov 28, 2014 6:00 pm Subject: EEProm questions |
Placing multiple configuration values into eeprom storage during programming I use
//For the PIC16LF1828 the eeprom start address is 191h
int16 const PromStart = getenv("eeprom_address");
... |
Topic: Error "#DEVICE required before this line" |
SuperDave
Replies: 6
Views: 19580
|
Forum: General CCS C Discussion Posted: Fri Nov 28, 2014 5:47 pm Subject: Error "#DEVICE required before this line" |
If you right click on the <12F683.h> and select 'Open file at cursor', does the file open? If it doesn't then you really haven't specified a device.
It's a 10 bit adc so that line is superflu ... |
Topic: Counting Pulses Method 'Tachometer' |
SuperDave
Replies: 21
Views: 30538
|
Forum: General CCS C Discussion Posted: Fri Nov 21, 2014 5:09 pm Subject: Counting Pulses Method 'Tachometer' |
#int_TIMER2
void TIMER2_isr(void)
{
if(loops)
{loops--;}
else
{meas_done=true; }
}
could be better written
#int_TIMER2
vo ... |
Topic: PIC24 Trap conflict restart in simple routine... help?? |
SuperDave
Replies: 12
Views: 19131
|
Forum: General CCS C Discussion Posted: Wed Nov 05, 2014 8:29 am Subject: PIC24 Trap conflict restart in simple routine... help?? |
Small points.
If the only reason for the calculation is to see if it's working then the only output needed is the raw ADC reading. The tech can know the reading should be between x and y. Think of ... |
Topic: USB HID Descriptor for two IN endpoints |
SuperDave
Replies: 0
Views: 3380
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 5:37 pm Subject: USB HID Descriptor for two IN endpoints |
This is a restatement of a problem with significantly more detail that I ran into about a week and half ago and still can't find the answer. Very frustrating.
I use Delphi 2010 and a TJvHidDeviceCo ... |
Topic: PIC24 Trap conflict restart in simple routine... help?? |
SuperDave
Replies: 12
Views: 19131
|
Forum: General CCS C Discussion Posted: Sat Nov 01, 2014 11:14 am Subject: PIC24 Trap conflict restart in simple routine... help?? |
My soapbox.
WorkingVoltage = 0.0002197265*TempValue;
There's a difference between accuracy and precision. I'm not sure how accurate your sensor is but the precision of calculation is limited b ... |
Topic: Phase delay in PWM generated using the setup_power_pwm() api |
SuperDave
Replies: 1
Views: 4003
|
Forum: General CCS C Discussion Posted: Fri Oct 31, 2014 2:41 pm Subject: Phase delay in PWM generated using the setup_power_pwm() api |
What processor? How fast? How accurate? This could be done in a processor without pwm if that's all it's going to do and the accuracy were not critical. |
Topic: SPI issue on PIC24FJ64GA004 |
SuperDave
Replies: 3
Views: 7839
|
Forum: General CCS C Discussion Posted: Fri Oct 31, 2014 2:15 pm Subject: SPI issue on PIC24FJ64GA004 |
Two quick thoughts:
1. Both ext_flash_write and ext_flash_read return values which you are neither testing nor even viewing. At the debug level I'd be inclined to write a loop at each call, for exa ... |
Topic: Varying Battery Loads |
SuperDave
Replies: 8
Views: 10489
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2014 10:53 am Subject: Varying Battery Loads |
I'm not sure how you "reduce the maximum load supplied " but I can offer some other thoughts.
The data sheet on the DL123, available here
http://ww2.duracell.com/en-US/Global-Technical-C ... |
Topic: Problem with programming 18F67K22 |
SuperDave
Replies: 1
Views: 4615
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2014 9:57 am Subject: Problem with programming 18F67K22 |
This is probably a little late but your statement "The power supply is OK." leads to questions, specifically when and where? Did you measure with both test leads at the chip? Assuming ground ... |
Topic: Most powerful pic that PCWHD support.. |
SuperDave
Replies: 20
Views: 22111
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2014 9:41 am Subject: Most powerful pic that PCWHD support.. |
"5v operation and huge 25ma sink/source per pin!!! "
Quick caution. Since the Pics read/modify/write I/O pins, connecting a led directly to a pin to get the full 25mA (and maybe more) wil ... |
|