Showing posts with label notes. Show all posts
Showing posts with label notes. Show all posts

Thursday, May 8, 2014

SOLVED!!! Mystery of PINs 0-20 configurations.

Just add this to the GPIOinit() function :

apiRetStatus = CyU3PDeviceGpioOverride(18, CyTrue);
apiRetStatus = CyU3PGpioSetSimpleConfig(18, &gpioConfig);

Make sure you DONOT add anything in the main matrix mapping for the GPIOs else the USB fails to re-enumerate!

 io_cfg.gpioSimpleEn[0]  = 0x00000000; << KEEP THIS ZERO io_cfg.gpioSimpleEn[1]  = DAC_PORTS | 0x00002000 ;
 io_cfg.gpioComplexEn[0] = 0;
 io_cfg.gpioComplexEn[1] = 0; 

Sunday, May 4, 2014

Truncation of Unsigned char byte!

Note that 

#include <stdio.h>
#include <string.h>
main()
{
   unsigned char index=0xABC;
   printf("%x",index);
}

Compiling the source code....
$gcc main.c -o demo -lm -pthread -lgmp -lreadline 2>&1
main.c: In function ‘main’:
main.c:6:4: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    unsigned char index=0xABC;
    ^

Executing the program....
$demo
bc 

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


Saturday, April 5, 2014

Next step: Playing with Tie's code

Now I know how to set up the Eclipse and burn the image file :) Looks good. Now I can get down to some business and start experiment with his board.


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. 

IMP: How to setup the IMG file creation other settings before starting of with Eclipse!

Open the programmers manual, and then go to the topic which says :

12.2.2.4: Creating New Eclipse Projects
This will provide the setup steps for you to use Eclipse successfully!

Going ahead and setting up the process!
 

Tuesday, March 25, 2014

Getting hands on with the USB3.0 EZ FX3 firmware...


The main website can be found @ http://www.cypress.com/?id=3526&tabID=60939



Note: Step 3 takes a simple registration process and it does not come with the SDK. GPIF 2 designer is like the smartest thing done by Cypress as a great tool to reduce the effort in interfacing the EZFX3.

You can download it from :
Other References: 


Grazing through the data sheets...

Grazing through the datasheets (my first time looking at them from an application POV) gave me an overview of what the ICs could be doing in Run's design.

NOTE: To mark/highlight the datasheet, mark out only those things which answer "What can be done" and not "How it can be done"- cause the later always follows the former and is always almost never going to be memorized.

Getting an overview of all the chips except the ADCs (since I havent really been with an ADC before), I think I should be diving into programming one chip just to get the hang of the USB FX3 interface.

Run's old is available to work on. He has suggested to try and program the DDS using the USB3.0 because one can directly pick out the output of the DDS without connecting the input signal.

He says there might be some error in the amplitude of the DDS output, but the frequency should manifest the functionality of the firmware interface.