29-01-08

VGA Controller on SPARTAN3E starter board

You can download an example project for the SPARTAN3E starter board on this website: http://www.mobile-it.be/projects.php

 

Direct link: http://pwo.fpga.be/IP/Mobile_it_be_VGA_driver.rar

 

12-12-07

Program your Spartan 3E FPGA board with LabVIEW

Hi FPGA World,

ready for a new sensation that will in the next years rule the world of ESL (electronic system-level ) FPGA programming?

I just received my Academic Newsletter from NI.com (National Instruments the makers of LabVIEW and LabVIEW FPGA).

They introduced recently a driver for using LabVIEW to program your FPGA Silicon on the Xilinx Spartan 3E starter board.

 In this document they describe a way to program the FPGA boards LED's, LCD and a custom made Xilinx Spartan 3E LabVIEW project. They even show you how to integrate VHDL code into a Spartan 3E LabVIEW Project.

 

For people who can't wait and want to start graphically programming their FPGA's you can download everything here: http://digital.ni.com/express.nsf/bycode/spartan3e

Be sure that the people who download this driver and tutorial are all academic people .... read the license...

17:58 Gepost door Mobile blogger in Algemeen | Permalink | Commentaren (2) | Tags: esl, labview fpga, project, vhdl, lcd, silicon, xilinx, spartan3e |  Facebook |

26-04-07

2 blinking leds on my ATtiny2313 board

I have made an example of an blinking led (programmed in C) for getting someone started for a robot project.

 

I used PonyProg2000 for download the hex file to the ATTINY2313 Microcontroller and used CodeVisionAVR (evaluation version) as an IDE for the C programming.

 

Here is the code (you can consider this as an Hello world for the ATTINY2313 :

 

#include <tiny2313.h> 
#include <delay.h>

// Declare your global variables here

void main(void)
{
// Declare your local variables here

// Crystal Oscillator division factor: 1
#pragma optsize-
CLKPR=0x80;
CLKPR=0x00;
#ifdef _OPTIMIZE_SIZE_
#pragma optsize+
#endif

// Input/Output Ports initialization
// Port A initialization
// Func2=In Func1=In Func0=In
// State2=T State1=T State0=T
PORTA=0x00;
DDRA=0x00;

// Port B initialization
// Func7=Out Func6=Out Func5=Out Func4=Out Func3=Out Func2=Out Func1=Out Func0=Out
// State7=0 State6=0 State5=0 State4=0 State3=0 State2=0 State1=0 State0=0
PORTB=0x00;
DDRB=0xFF;

// Port D initialization
// Func6=In Func5=In Func4=In Func3=In Func2=In Func1=In Func0=In
// State6=T State5=T State4=T State3=T State2=T State1=T State0=T
PORTD=0x00;
DDRD=0x00;

// Timer/Counter 0 initialization
// Clock source: System Clock
// Clock value: Timer 0 Stopped
// Mode: Normal top=FFh
// OC0A output: Disconnected
// OC0B output: Disconnected
TCCR0A=0x00;
TCCR0B=0x00;
TCNT0=0x00;
OCR0A=0x00;
OCR0B=0x00;

// Timer/Counter 1 initialization
// Clock source: System Clock
// Clock value: Timer 1 Stopped
// Mode: Normal top=FFFFh
// OC1A output: Discon.
// OC1B output: Discon.
// Noise Canceler: Off
// Input Capture on Falling Edge
// Timer 1 Overflow Interrupt: Off
// Input Capture Interrupt: Off
// Compare A Match Interrupt: Off
// Compare B Match Interrupt: Off
TCCR1A=0x00;
TCCR1B=0x00;
TCNT1H=0x00;
TCNT1L=0x00;
ICR1H=0x00;
ICR1L=0x00;
OCR1AH=0x00;
OCR1AL=0x00;
OCR1BH=0x00;
OCR1BL=0x00;

// External Interrupt(s) initialization
// INT0: Off
// INT1: Off
// Interrupt on any change on pins PCINT0-7: Off
GIMSK=0x00;
MCUCR=0x00;

// Timer(s)/Counter(s) Interrupt(s) initialization
TIMSK=0x00;

// Universal Serial Interface initialization
// Mode: Disabled
// Clock source: Register & Counter=no clk.
// USI Counter Overflow Interrupt: Off
USICR=0x00;

// Analog Comparator initialization
// Analog Comparator: Off
// Analog Comparator Input Capture by Timer/Counter 1: Off
ACSR=0x80;

while (1)
      {
      // Place your code here
                PORTB=0x01;
                delay_ms(50);
                PORTB=0x02 ;
                delay_ms(50);


      };
}