I am having some problems with the function getsUSBUSART from CDC firmware - Microchip. For example:
mUSBUSARTTxRam((byte *) input_buffer, 3);
In the HyperTerminal I press: 123 (ASCII = 0x31, 0x32, 0x33)
When I press the switch 3:
- In the first time the PIC send to PC this sequence: 1(ñ
- In the second time the PIC send to PC this sequence: 2(ñ
- In the third time the PIC send to PC this sequence: 3(ñ
I was waiting for the sequence 123 (ASCII = 0x31, 0x32, 0x33) for the first time when I press the switch 3 and "no sequence" when I press it again.
Are the any error in the code below? How does getsUSBUSART function work?