To configure the "CDC Serial emulator" example on demoboard PICDEM FSUSB

Closed Posted 6 years ago Paid on delivery
Closed Paid on delivery

Hello:

I have the MICROCHIP DEMOBOARD PICDEM FSUSB and I need to control the RTS and DTR pins state like a "general purpose" output pins from a PC host.

Im using the code example: "Device-CDC-Serial-Emulator" (extracted from the Microchip Library Applications MLAv2012-07-18). Until now I made the below modifications to the project and DTR its working perfect !!! when I tick into rts checkbox on the PC software, pin state of RTS change to low state and vise versa.

Now I need help to do the same with RTS.

Code modifications:

1. Uncommented:

#define USB_CDC_SUPPORT_HARDWARE_FLOW_CONTROL and #define USB_CDC_SUPPORT_ABSTRACT_CONTROL_MANAGEMENT_CAPABILITIES_D1 (in usb_config.h)

2. Added these code lines to: InitializeUSART(void) (in main.c), inside the #if defined(__18CXX) branch:

#if defined(USB_CDC_SUPPORT_HARDWARE_FLOW_CONTROL)

#if defined(UART_TRISDTR)

UART_TRISRTS = 0;

#endif

#if defined(UART_TRISDTR)

UART_TRISDTR = 0;

#endif

#endif

3. Uncommented: CONFIGURE_RTS(control_signal_bitmap.CARRIER_CONTROL); (in usb_function_cdc.c)

----------------------------------------------------------------------------------------------------------------------------------------------------------------

I send the attached project, and the reference links about microchip demoboard and X-CTU software to test the DTR and RTS pins.

][login to view URL]

[login to view URL]

Thanks in advance.

Electronics Embedded Software Microcontroller Programming

Project ID: #15028671

About the project

7 proposals Remote project Active 6 years ago

7 freelancers are bidding on average $197 for this job

seshupower

Hi, I am a post graduate power electronics engineer and having very good experience in product design and development. I am excellent in embedded design & programming using pic, dspic controllers and MATLAB codding fo More

$333 USD in 5 days
(51 Reviews)
6.7
arslanuet123

Micro controller's expert here to help u Relevant Skills and Experience Micro controller Proposed Milestones $122 USD - required work

$122 USD in 10 days
(35 Reviews)
5.8
zeshankhan43210

Dear Sir, I am a professional Electronics and embedded Engineer having expertise in Serial Simulators and Emulators designing. Contact me. Waiting for your response. Relevant Skills and Experience Embedded systems, S More

$277 USD in 7 days
(14 Reviews)
4.9
jinzhenzhu8691

I am electronic engineer, micro controller programmer My skills : - LabVIEW, MATLAB - PLC, Arduino, Pic series micro controller - PCB design, Protel, AltiumDesignr, Proteus - My Experience BLE, RF, Automat More

$150 USD in 10 days
(2 Reviews)
4.4
DesignIntellect

Ready to start. Please initiate chat session to discuss the details........................................................ Relevant Skills and Experience expert level Proposed Milestones $194 USD - cdc

$194 USD in 3 days
(0 Reviews)
0.0
BeautiCG

hello,sir. I'm a professional programmer with 6 years of experience. I've already done this kind of project before. If you award me, I'll implement all of your requirements in a short time. ProjectName:To configure th More

$150 USD in 1 day
(0 Reviews)
0.0
chyconsl

Hi, I have read and understood your project guideline and willing to provide an excellent services. Please reply and give me a chance. Thanks Relevant Skills and Experience We can discuss further and see how I can he More

$150 USD in 10 days
(0 Reviews)
0.0