I recently uploaded few project demos using USBUART for transmitting ASCII data to a PC terminal:
Try if any of those basic demos sends output to your PC (you will get some greeting like "This is encoder demo..")
First thank you for the fast answer. I download your files, but I can't test them because I can't find the way to program it... What I have to do after have a cartel with the two inside, and after have opened the workspace?
I assume that you followed installation instructions in readme.txt file and unzipped both demo and library into same folder, and that you can open some basic projects without errors. Now connect KIT-059 and plug second USB into kit micro- USB port (you don't need to attach encoder). Now build the project and program it into KIT-059. On startup you will see a greeting message in the terminal window (use Putty, RealTerm, TeraTerm, etc.).
This is the situation with your files.
And follow my code
while(USBUART_GetConfiguration() == 0u);
Timer_ReadStatusRegister(); //Serve per resettare l'interrupt
periodo = Timer_ReadCapture();
You opened wrong file (a library). Open one of the basic demo projects, like encoder_isr_ex1.cywrk. The goal is to see if your kit-059 is alive and able to communicate with PC by running a proven project.
Inspecting your code is pointless without seeing the entire project: File-> Create Archive Bundle-> minimal.
I opened 2 of your files. encoder_poll_ex2 andencoder_isr_ex1. On both I can obtain on the first trial the tera term serial port and the usb device was found. But it doesn't comunicate any ASCII.
On the other hand, somethimes, maybe after several changes in my code, I can obtain a connection and receive some data, I'm not sure if they are right, I'd like to do some changes but it's not possibile with the recognize problem that returns.
I followed your istructions: