Author |
Message |
Topic: usage of USB_HID_BOOT_PROTOCOL |
Ramey
Replies: 2
Views: 4065
|
Forum: General CCS C Discussion Posted: Sat Dec 04, 2010 4:11 pm Subject: usage of USB_HID_BOOT_PROTOCOL |
That's exactly what I did.
I can see that the variable hid_protocol is being set by and returned to the USB stream.
BUT in the example code the variable is not used in any other way. That is, t ... |
Topic: usage of USB_HID_BOOT_PROTOCOL |
Ramey
Replies: 2
Views: 4065
|
Forum: General CCS C Discussion Posted: Sat Dec 04, 2010 2:23 pm Subject: usage of USB_HID_BOOT_PROTOCOL |
I'm using the CCS compiler to implement a USB keyboard. I built the PIC application using information from the CCS examples. In general, things have gone well. But now I have a problem. I need the ... |
Topic: problem with write_program_memory on the PIC18F2450 |
Ramey
Replies: 2
Views: 5924
|
Forum: General CCS C Discussion Posted: Fri Feb 27, 2009 1:45 am Subject: problem with write_program_memory on the PIC18F2450 |
I've got a boot loader program which uses write_program_memory to update program code.
This program was originally developed and tested on the PIC18F4550 and and PIC18F2550 has worked flawlessly ... |
Topic: yet another bootloader question for pic 18 |
Ramey
Replies: 0
Views: 2051
|
Forum: General CCS C Discussion Posted: Fri Dec 05, 2008 2:39 am Subject: yet another bootloader question for pic 18 |
I'm tweaking my bootloader for a new project and I'm have some questions about the two interrupts.
In my boot loader I'm using #int_usb while in my application I'm polling a usb port - without out ... |
Topic: interrupt priority changed by compiler? |
Ramey
Replies: 5
Views: 12318
|
Forum: General CCS C Discussion Posted: Tue Apr 01, 2008 3:39 pm Subject: interrupt priority changed by compiler? |
In my program I have used
#int_timer0 high
When I do this - I get another warning. This suggests that now I have 2 high priority interrupts - timer0 + USB which I don't want as it is critical ... |
Topic: incorrect code generated for signed ints? |
Ramey
Replies: 2
Views: 4182
|
Forum: General CCS C Discussion Posted: Fri Mar 28, 2008 1:06 am Subject: incorrect code generated for signed ints? |
OK, I discovered the problem. int16 is by default unsigned. This was certainly a suprise to me - oh well. I wonder why CCS chose to do it differently than every other C compiler in the world - and ... |
Topic: incorrect code generated for signed ints? |
Ramey
Replies: 2
Views: 4182
|
Forum: General CCS C Discussion Posted: Fri Mar 28, 2008 12:49 am Subject: incorrect code generated for signed ints? |
Below is a small excerpt from a *.lst file generated by my PCH compiler. It looks to me that the code for the x < 0 branch is not being generated. Am I missing something? What should I do about t ... |
Topic: CCS USB CDC Firmware-Driver Problem |
Ramey
Replies: 7
Views: 14296
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2008 5:25 pm Subject: One more thing |
When I break into the executable after it hangs and check the INTCON register I find 0xc2 (1100 0010). The last bit suggests that its not responding to interrupts because they havent' been cleared.
... |
Topic: CCS USB CDC Firmware-Driver Problem |
Ramey
Replies: 7
Views: 14296
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2008 4:06 pm Subject: Same or Similar problem |
I've built the following aps to work with the PIC18F2455 seriies based on CCS examples.
Two different Keyboard HID implementations (low speed and full speed)
A usb boot loader application based on ... |
Topic: preprocessor token pasting |
Ramey
Replies: 1
Views: 2477
|
Forum: General CCS C Discussion Posted: Tue Jan 29, 2008 12:35 am Subject: preprocessor token pasting |
I've written
#define CODE(n, c, m, d, u) INDEX_CODE_ ## n,
which intended to expand the following
CODE(NULL, 0, 0, 0, 0)
to:
INDEX_CODE_NULL
but fails to do so. It seems that the AN ... |
Topic: problem with getenv("DEVICE) |
Ramey
Replies: 4
Views: 5953
|
Forum: General CCS C Discussion Posted: Thu Dec 20, 2007 5:22 pm Subject: version # |
pch Version 4.055 |
Topic: problem with getenv("DEVICE) |
Ramey
Replies: 4
Views: 5953
|
Forum: General CCS C Discussion Posted: Thu Dec 20, 2007 4:25 pm Subject: problem with getenv("DEVICE) |
I'm using the August '07 version of PCH. Compiling the following test program
[code]
#define __USB_PIC_PERIF__ 1
//#include
#include
#if getenv("DEVICE")=="PIC18F4450&quo ... |
Topic: PIC18F4450 and USB |
Ramey
Replies: 1
Views: 3286
|
Forum: General CCS C Discussion Posted: Tue Dec 18, 2007 5:58 pm Subject: PIC18F4450 and USB |
I can compile the CCS example ex_usb_kbmouse2.c out of the box without problem. When I make the following change:
replace
#include
with
#include
I get
Clean: Deleting in ... |
Topic: do write/read _configuration_memory work on the PIC18F2550 ? |
Ramey
Replies: 1
Views: 2982
|
Forum: General CCS C Discussion Posted: Sun Dec 16, 2007 12:58 am Subject: do write/read _configuration_memory work on the PIC18F2550 ? |
I'm trying to use
write_configuration_memory(ramaddress,count)
read_configuration_memory(ramaddress,count)
set program configuration bits - with no success.
Has anyone done this. Am I missi ... |
Topic: bootloader interrupt dispatch |
Ramey
Replies: 2
Views: 3953
|
Forum: General CCS C Discussion Posted: Fri Dec 14, 2007 12:58 pm Subject: close but no cigar? |
This would seem to be almost what I want. Here I forward to the default global_int located at 0xa0. The 0x009f was determined by inspection of the global_int automatically generated. Any other won' ... |
|