I think it's the routine of the usblyzer! but I think there should be no difference between multiple times of pressing a specific button on the hid-demo.exe....
2- yeah!
3- yes, you are right.
3a- really?! ooooooooooooohh
There is an ERROR in my code - should be ToSendDataBuffer[2+i] = packet_num;
Please correct this first if you not already did and see what happens.
Of course there should be no difference.
case CID_EEREAD: //data from eeprom to pc
for (int packet_num = 0; packet_num < max_packet_num ; packet_num++)
{
io_result = hid_read(connected_device, inBuffer, 65);
for (long int count = 0; count < 65; count++){
long int numm = count + packet_num * 64;
my_store[numm] = inBuffer[count];
}
}
myfile.open("file.txt", ios::out | ios::binary);
for (int ii=0 ; ii < 600 ; ii++)
myfile << " " << hex << int(my_store[ii]) << endl;
myfile.close();
break;
Jitz04 wrote:I was wondering if it is possible to use and send more than one ADC value from multiple ports and how?
Microchip MPLAB XC8 C Compiler (PRO Mode) V1.37
Build date: Mar 10 2016
Part Support Version: 1.37
Copyright (C) 2016 Microchip Technology Inc.
License type: Node Configuration
:: advisory: (1233) Employing 18F4550 errata work-arounds:
:: advisory: (1234) * Corrupted fast interrupt shadow registers
make[2]: *** [dist/PDFSUSB_4550_XC8/production/LPC_FSUSB-HID-X.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
C:\Program Files (x86)\Microchip\xc8\v1.37\include\pic18f4550.h:9211: error: (1098) conflicting declarations for variable "_INTCONbits" (C:\Program Files (x86)\Microchip\xc8\v1.37\include\pic18f4550.h:8963)
(908) exit status = 1
nbproject/Makefile-PDFSUSB_4550_XC8.mk:215: recipe for target 'dist/PDFSUSB_4550_XC8/production/LPC_FSUSB-HID-X.X.production.hex' failed
make[2]: Leaving directory 'D:/Libraries/Travail/PIC Microcontrollers/18f2550/LPC_FSUSB-HID-X-r4a/LPC_FSUSB-HID-X.X'
nbproject/Makefile-PDFSUSB_4550_XC8.mk:78: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/Libraries/Travail/PIC Microcontrollers/18f2550/LPC_FSUSB-HID-X-r4a/LPC_FSUSB-HID-X.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
BUILD FAILED (exit value 2, total time: 955ms)
Users browsing this forum: No registered users and 0 guests