Links to Microchip Forum
Link2
Link3
Thursday, January 26, 2017
Monday, January 16, 2017
Thursday, December 22, 2016
Sunday, December 11, 2016
USB HID Host PICkit Bridge - PIC32MX
1(OK). Check Configuration Words for CPU/Peripheral System Frequency 48MHz in HardwareProfile.h
Osc: 20 MHz
try 48MHz first, if not stable, try 40MHz...(TCHIP-USB-MX250F128B is 40MHz)
2(OK). Check Baud Rate: 38400 first, then 921600. in HardwareProfile.h
#define BAUDRATE2 38400UL //57600UL
#define BRG_DIV2 4
#define BRGH2 1
3(OK). Modify usbTPL[] in usb_config.c, in usb_config.h
#define NUM_TPL_ENTRIES 1
4(OK). usb_host_local.h
#define USB_SOF_THRESHOLD_64 0x5A //0x4A will cause frame error
7. Test Timer/SYSCLK setup Blink LED
8. ERRATA Don't turn cache and ... on due to Double Write on Peripheral
Implement DMA (done)
9. Latency of the HC-06 bluetooth module is about 40ms. The latency of a regulator PIC18F2550 USB Serial COM Port is about 1.4ms.
10. Implement Circular Buffer (Queue) for Commands. It can only improve the regular write command, but not read command due to the latency of the bluetooth module.
================
modify usb_config.h usb_config.c
modify usb_host_local.h
Osc: 20 MHz
try 48MHz first, if not stable, try 40MHz...(TCHIP-USB-MX250F128B is 40MHz)
2(OK). Check Baud Rate: 38400 first, then 921600. in HardwareProfile.h
#define BAUDRATE2 38400UL //57600UL
#define BRG_DIV2 4
#define BRGH2 1
#define NUM_TPL_ENTRIES 1
4(OK). usb_host_local.h
#define USB_SOF_THRESHOLD_64 0x5A //0x4A will cause frame error
5. change io_mapping
in HardwareProfile.h
6(OK). modify timer in InitializeTimer()
8. ERRATA Don't turn cache and ... on due to Double Write on Peripheral
Implement DMA (done)
9. Latency of the HC-06 bluetooth module is about 40ms. The latency of a regulator PIC18F2550 USB Serial COM Port is about 1.4ms.
10. Implement Circular Buffer (Queue) for Commands. It can only improve the regular write command, but not read command due to the latency of the bluetooth module.
================
modify usb_config.h usb_config.c
modify usb_host_local.h
Subscribe to:
Posts (Atom)