Showing posts with label basics. Show all posts
Showing posts with label basics. Show all posts

Sunday, May 4, 2014

C code help / idea to debug whats happening !

Use online editor to test small codes and print the results before writing them onto the buffers on chip.

Simple print statements can end up letting you you know what is happening when.

One such online compiler is:

http://www.compileonline.com/compile_c_online.php

Some good online tutorials is as follows:

http://www.tutorialspoint.com/cprogramming/cprogramming_pdf_version.htm


Friday, April 11, 2014

BASICS: Concept of glEP0buff

One thing you have to understand is that,

In vendor requests - we send Setup Packets to chose the application direction.

Setup packets have wValue and wIndex bits free if you want to receive some immediate data.

wLength is the length of data dumped onto the endpoint in the EP0 buffers from the computer to the host or vice-versa. If you want to pick this data up or put data on the buffer you do something like this:

CyU3PUsbSendEP0Data(wLength,glEp0Buffer, NULL);
CyU3PUsbGetEP0Data(wLength,glEp0Buffer, NULL);

Questions:

1.So does this transaction has to happen to complete a loop of communication protocol of some sort?
2. Will the pin up and down function actually need / or why would it actually need the fake EP0 buffer transfer. 

Friday, April 4, 2014

How to USE Eclipse IDE for FX3

http://www.cypress.com/?rID=92670

or just google asking for the title of this post! :)

Lets hope for the best from this tutorial...

Or there is a great video tutorial by Cypress. look it up. 

Tuesday, March 25, 2014

what is DMA?

Direct memory access (DMA) is a feature of modern computers that allows certain hardware subsystems within the computer to access system memory independently of the central processing unit (CPU).
Without DMA, when the CPU is using programmed input/output, it is typically fully occupied for the entire duration of the read or write operation, and is thus unavailable to perform other work. With DMA, the CPU initiates the transfer, does other operations while the transfer is in progress, and receives an interrupt from the DMA controller when the operation is done. This feature is useful any time the CPU cannot keep up with the rate of data transfer, or where the CPU needs to perform useful work while waiting for a relatively slow I/O data transfer.