Google

Oct 13, 2009

C Programming Options in AVR

I am new to AVRs
I want to know what all programming options are there for C.
I know about BASCOM, but dont personally like BASIC that much.

ans:

* hey try codvisionavr c compiler .....it good and easy to learn and when u become pro use
WinAVR GCC

* I think you should see the page http://www.lancos.com and everthing will be clear! U will be able to make ur own circuit to program downloader circuit! as well as software to download for free!
U should use IAR Embedded C Compiler! It is widely supported by C Libraries and Evaluation version if free and sufficient for new users!

One of the International Journal Paper of mine for Your Use
http://www.convergencepromotions.com/atmelonline/v_9/pdf/AtmelJournal_V9_ConstructingA16-Channel.pdf

Similar ones u could find at http://www.atmel.com web site

* You may try AVRstudio from http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725 along with WINAVR from winavr.sourceforge.net/ . AVRstudio serves as the IDE and Debugger/Simulator and WINAVR the C compiler. Both complement each other.

For the hardware part you could try the JTAG emulator described in this site.
http://www.scienceprog.com/build-your-own-avr-jtagice-clone/

I have made the emulator using GP board and it works perfectly.

* i recommend you to use C Language for programming AVR microcontroller
C is quite commonly used for programming microcontrollers and a lot of help is
available on programming microcontroller in C
you can design your own programmer for AVR because AVR microcontroller has SPI & other ports for In-Circuit programming

Oct 5, 2009

How To to build an ISP for Atmega 128

You can check out Electronics For You Vol 31 nov 2005 edition

or

First of all ATMEGA 128 supports ISP. One can use the same ISP programmer used for ATMEGA 16/32 to burn a ATMEGA 128. In your target platform just take out the connections for SPI, (MISO, MOSI, SCK, and RESET) and connect those line to your ISP programmer. For schematic and PCB layout mail me : nibir.chakraborty@gmail.com. You can mention the details of the target board like what other things you want in the platform.

Jun 8, 2009

ADC on LPC2129

Here goes the second post on " How to program the onboard adc in LPC2129"
As said earlier LPC2129 has 4 onboard 10-bit ADC. Also these ADC's are internally multiplexed. So here i give out a snippet of how you could access the ADC's on LPC21xx.

At the time of writing this post,i dnt believe that any further explanation is needed . In case you need please refer to the end of line comment or feel free to comment ont he post.


#include "LPC21xx.H" // LPC21xx definitions



static unsigned short ADC_Config(unsigned char channel)
{
unsigned int i;
ADCR = 0x00200300 | ch; // Init ADC (Pclk = 12MHz) and select channel
ADCR |= 0x01000000; // Start A/D Conversion
do
{
i = ADDR; // Read A/D Data Register
} while ((i & 0x80000000) == 0); // Wait for end of A/D Conversion
return (i >> 6) & 0x03FF; // bit 6:15 is 10 bit AD value
}

int main(void)
{
while (1)
{
ADC_Config(2); // Access adc corresponding to the port
ADC_Config(4);

}
}

May 28, 2009

hola ! ARM

ARM-7 LPC2129

*MCU-> Microcontroller unit

This post is meant to introduce readers to a new platform. Presented here are few of the features of LPC2129. LPC2129 is a 32 bit MCU dev by the NXP semiconductors. It’s based on ARM 7 TDMI-s architecture. LPC 2129 is a very good tool for student projects coz it is readily available, and also costs reasonable.

Here are a few features of this MCU

· High-performance 32-bit RISC Microcontroller

· Thumb extensions

· 256KB on-chip Flash ROM

· In-System Programming (ISP) and In-Application Programming (IAP)

· 16KB RAM, Vectored Interrupt Controller,

· Two UARTs,

· I2C serial interface,

· 2 SPI serial interfaces

· Two timers (7 capture/compare channels),

· PWM unit with up to 6 PWM outputs,

· 4-channels 10bit ADC,

· 2 CAN channels.

· Real Time Clock,

· Watchdog Timer,

· General purpose I/O pins.

· CPU clock up to 60 MHz,

· On-chip crystal oscillator and

· On-chip PLL.

Mar 16, 2009

Few microprocessor tools you might be interested in

jSimDOP
This project is application based on NetBeans api providing simulation of DOP microprocessor.

Microprocessor USB Firmware
USB Firmware and Drivers for Microprocessor and 8/16 Bit Home computer.

PIC Microprocessor Simulator on Linux
Microprocessor simulator for the PIC16F84A on Linux using a GUI to allow for easier programming and debugging of PIC applications.
Features :
  • memory viewer,
  • browser
  • register editor and mapping PIC pins to parallel port for real world interfacing.
Find more microprocessor related tools here

Mar 13, 2009

Microprocessor Simulator on Linux [ Screenshot tour ]

Microprocessor Simulator on Linux

Features:

  • Easy-to-use graphical interface.
  • You may use your regular IBM PC to run simulation software that controls real hardware in real time, through the parallel port on Linux.
  • An open source (for non-commercial products)and easy-to-use IDE that uses the Qt graphics library to help users build effective designs.




Download the software on sourceforge.net @ Microprocessor Simulator on Linux.

[Source ]