Author |
Message |
Topic: HID Descriptor with 16Bit ints. |
uN_Eof
Replies: 0
Views: 4333
|
Forum: General CCS C Discussion Posted: Tue May 15, 2012 3:41 pm Subject: HID Descriptor with 16Bit ints. |
Hello everyone,
I must use this HID descriptor, but I don't know how to send the 16bit ints.
This is the descriptor:
const char USB_CLASS_SPECIFIC_DESC[] = {
0x05, 0x01, ... |
Topic: Converting signed 9 bit int to signed 8 bit int (question) |
uN_Eof
Replies: 7
Views: 14561
|
Forum: General CCS C Discussion Posted: Wed Nov 02, 2011 11:08 am Subject: Converting signed 9 bit int to signed 8 bit int (question) |
Hello,
I tried that code and the behaviour is quite similar, if not the same.
I'm starting to think that it can be the USB descriptor... maybe. I don't know.
0x05, 0x01, ... |
Topic: Converting signed 9 bit int to signed 8 bit int (question) |
uN_Eof
Replies: 7
Views: 14561
|
Forum: General CCS C Discussion Posted: Tue Nov 01, 2011 11:21 am Subject: Converting signed 9 bit int to signed 8 bit int (question) |
This actually suggests the value _isn't_ 2's complement.
This was what was worrying PCMprogrammer about the notes he had found.
A 2's complement 9bit value, can represent +255 to -256. However t ... |
Topic: Converting signed 9 bit int to signed 8 bit int (question) |
uN_Eof
Replies: 7
Views: 14561
|
Forum: General CCS C Discussion Posted: Tue Nov 01, 2011 10:30 am Subject: Converting signed 9 bit int to signed 8 bit int (question) |
Thank you very very much for your help PCM Programmer.
Thats similar to what I tried to do, but your program is correct, and mine didn't work correctly.
I still have one problem that I can't seem ... |
Topic: Converting signed 9 bit int to signed 8 bit int (question) |
uN_Eof
Replies: 7
Views: 14561
|
Forum: General CCS C Discussion Posted: Mon Oct 31, 2011 8:27 am Subject: Converting signed 9 bit int to signed 8 bit int (question) |
Hey all. I need to convert data. I'm not such a great C programmer so I don't know how to do this.
I'm working in a PS/2 mouse driver. The mouse sends the movement data in 9 bit 2's complement int ... |
Topic: PS/2 Mouse Driver (uses interrupts) |
uN_Eof
Replies: 9
Views: 69780
|
Forum: Code Library Posted: Mon Oct 24, 2011 2:49 pm Subject: PS/2 Mouse Driver (uses interrupts) |
Hello. I tested it today for a new project and it works for me. I'm using a f4550. Remember you have to use pullups in the data and clock lines, otherwise it wont work.
Assuming your hardware is corr ... |
Topic: delay_us(1200000); 7 segment do not run |
uN_Eof
Replies: 6
Views: 11278
|
Forum: General CCS C Discussion Posted: Thu Sep 29, 2011 8:22 am Subject: delay_us(1200000); 7 segment do not run |
Try using a DS1307.
It's great, it has a pin that changes its state each second, connect that one to an INT_EXT pin, and you're good to go. Also you can get full date and time info by I2C.
http:// ... |
Topic: Slave SPI out of sync |
uN_Eof
Replies: 7
Views: 8126
|
Forum: General CCS C Discussion Posted: Mon Sep 19, 2011 2:14 pm Subject: Slave SPI out of sync |
1. This one is one of the best and also the one in which I based my design: http://store.curiousinventor.com/guides/ps2
And I think I found the problem. The PS2 receives and sends data in the same ... |
Topic: Slave SPI out of sync |
uN_Eof
Replies: 7
Views: 8126
|
Forum: General CCS C Discussion Posted: Sun Sep 18, 2011 2:31 pm Subject: Slave SPI out of sync |
Still missing some info? Please tell me, I really need help.
Thanks in advance. |
Topic: Slave SPI out of sync |
uN_Eof
Replies: 7
Views: 8126
|
Forum: General CCS C Discussion Posted: Fri Sep 16, 2011 8:51 am Subject: Slave SPI out of sync |
The reason you didn't get a reply is because too many important things
are missing from your post. You didn't tell us what the Master is. Is
another PIC ? If so, where's the code for it ?
... |
Topic: Slave SPI out of sync |
uN_Eof
Replies: 7
Views: 8126
|
Forum: General CCS C Discussion Posted: Thu Sep 15, 2011 12:08 pm Subject: Slave SPI out of sync |
nobody?
I'm totally desperate. |
Topic: PS/2 Mouse Driver (uses interrupts) |
uN_Eof
Replies: 9
Views: 69780
|
Forum: Code Library Posted: Tue Aug 30, 2011 3:36 pm Subject: PS/2 Mouse Driver (uses interrupts) |
By the way soon I'll be posting a PS/2 Keyboard driver and a DualShock emulator, stay tuned. |
Topic: PS/2 Mouse Driver (uses interrupts) |
uN_Eof
Replies: 9
Views: 69780
|
Forum: Code Library Posted: Tue Aug 30, 2011 3:22 pm Subject: PS/2 Mouse Driver (uses interrupts) |
Here is a PS/2 mouse driver I just wrote.
Works great with all of my PS/2 mouses.
Very easy to use, some variables you can access in your main(); store the data the mouse sends.
The variables are:
... |
Topic: Slave SPI out of sync |
uN_Eof
Replies: 7
Views: 8126
|
Forum: General CCS C Discussion Posted: Tue Aug 30, 2011 2:11 pm Subject: Slave SPI out of sync |
Hello all.
I am trying to both send and receive data from an SPI interface but the data I send is always out of sync. Here is the code:
#ifndef _libds
#define _libds
#endif
unsigned int com ... |
Topic: Slave SPI Inhibits SCK |
uN_Eof
Replies: 2
Views: 4478
|
Forum: General CCS C Discussion Posted: Tue Aug 30, 2011 6:14 am Subject: Slave SPI Inhibits SCK |
I'm pretty sure setup_spi() doesn't work incrementally. In your code only the values in the last setup_spi will have any effect. Instead you have to or the values together in one setup_spi:
setup_ ... |
|