Baud 1200

Started by terry in comp.arch.embedded15 years ago 6 replies

Hi, I used ATMega16 UART to communicate with a target device which is of baud 1200 but failed. I then tried to communicate the UART with PC...

Hi, I used ATMega16 UART to communicate with a target device which is of baud 1200 but failed. I then tried to communicate the UART with PC COM Port and terminal software. I found the communication is OK when the baud is from 115200 down to 2400. But straight characters appear when the baud rate turns to 1200. My baud setting function is: void uartSetBaudRate(u32 baudrate) { u16 b...


Reading EEPROM data, ATMEGA16, with imagecraft c-compiler

Started by fabrizio in comp.arch.embedded15 years ago 2 replies

Hei all, The intension is to read out a table located in EEPROM using the imagecraft C-compiler version 6.31A Definition in...

Hei all, The intension is to read out a table located in EEPROM using the imagecraft C-compiler version 6.31A Definition in C --------------- #pragma data:eeprom char Output_Ports_Table[] = { 0x38, 0x02}; #pragma data:data .. .. In the program i write following code ... ... unsigned char Table_Contents; EEPROM_READ((int)&Output_Ports_Table[0], Table_Contents); Tab...


ADS8344 and AVR mega16

Started by Frida in comp.arch.embedded15 years ago 1 reply

Hi, I am about to create connection between an ADS8344 and a ATmega16, using the SPI interface. Is there someone that can give me any tip??...

Hi, I am about to create connection between an ADS8344 and a ATmega16, using the SPI interface. Is there someone that can give me any tip?? Should I have separate ground planes?? And if so, which of the pins on the A/D-converter should be connected to the analog GND (AGND) and which should be connected to just GND?? And the GND-pins on the mega16, they are all digital, arn't they?? For the...


Basic circuit

Started by eden in comp.arch.embedded14 years ago 10 replies

Hello I am not sure is this the right group to post this kind of question, I hope I am not too much out off topic. I am quite new to...

Hello I am not sure is this the right group to post this kind of question, I hope I am not too much out off topic. I am quite new to electronics, although I am programming software already for many years. I understand very basic circuit's schematics, but for this http://www.captain.at/electronics/atmel-programmer/atmega16-programmer.png particular one (I saw it on other places also), I ...


Internal eeprom acces with Atmega16

Started by Yannick in comp.arch.embedded14 years ago 6 replies

I have a problem with using the internal eeprom of the atmega16. I am using codevision C and in the help file they say to do something like this...

I have a problem with using the internal eeprom of the atmega16. I am using codevision C and in the help file they say to do something like this : //declare global eeprom a=0; then then you can write the eeprom with changing the value for a , the eeprom adress is the adress the compiler has given soo you should not worry about that. but this doesnt work, in my opinion due that ever...


AVR ATMega16

Started by clark in comp.arch.embedded14 years ago 3 replies

Greetings all, In trying to assist an associate with problems developing code for an RF comb filter board designed around a Mega16, things...

Greetings all, In trying to assist an associate with problems developing code for an RF comb filter board designed around a Mega16, things are, well, actting really weird, to say the least. It almost seems to be a development tool problem, but I am really baffled. I am using ICCAVR (6.28C), AVR Studio (4.11, build 10, SP3), and a JTAGICE mk II emulator. This is a fairly small program,...


FM0 (bi-phase space) decoding!

Started by Ali in comp.arch.embedded14 years ago 37 replies

Hey everyOne! I'm having problems to decode the FM0 [ http://www.grantronics.com.au/serialformats.html ] data , the...

Hey everyOne! I'm having problems to decode the FM0 [ http://www.grantronics.com.au/serialformats.html ] data , the data rate is 40 kbps and my atmega16 is using 16 Mhz clock. MCU = atmega16 CPUclk = 16 Mhz Prescaler Value = 8 Datarate = 40 kbps Bit rate = 25 micro second I have tried to use external interrupt pin for one edge and as well as for both edges ...


MMC LCD Interfacing in ATMega16

Started by tech...@gmail.com in comp.arch.embedded13 years ago 6 replies

Hi Can someone lead me to some tutorial or some sample codes to write data into my MMC, read & display onto LCD. I'm using an ATMega16 MCU &...

Hi Can someone lead me to some tutorial or some sample codes to write data into my MMC, read & display onto LCD. I'm using an ATMega16 MCU & my compiler is WinAVR. thanks heaps. techie.


external reset circuit

Started by Anonymous in comp.arch.embedded13 years ago 1 reply

Hi All I use atmega16 microcontroller, STK500 development board and codevision compiler. Does anyone know the steps for setting up the...

Hi All I use atmega16 microcontroller, STK500 development board and codevision compiler. Does anyone know the steps for setting up the external reset circuit for atmega16? I tried to follow the reset circuit in the STK500 user manual (p3-20) http://atmel.com/dyn/resources/prod_doc ... oc1925.pdf I connected my 5V VTG pin from STK500 to one end of resistor. I connect one end of the capac...


Camera module with fast wakeup time

Started by Sal P. in comp.arch.embedded13 years ago

I am currently using a C328-7640 camera module controlled via a ATmega16 micro. The camera takes VGA color pictures and formats them into...

I am currently using a C328-7640 camera module controlled via a ATmega16 micro. The camera takes VGA color pictures and formats them into JPEG, its a nice little unit except that I need to put it into sleep mode and trigger it only when I need a picture. The issue is that after I place the camera into sleep mode it takes 2 to 3 seconds for it to be awakened and be ready to take the nex...


Recommendations for a Quadrature Decoder IC or MicroController

Started by benn in comp.arch.embedded12 years ago 13 replies

I have an atmega16 that interfaces to a motor with a quadrature encoder sensor. Turns out the frequency of the pulses are much more than my...

I have an atmega16 that interfaces to a motor with a quadrature encoder sensor. Turns out the frequency of the pulses are much more than my little 4Mhz can handle (the micro does other things as well!) As a result, the motor control isn't very accurate, nor does it react very fast. SO.. I'm looking for either a quadrature decoder IC that can take the load off (will calculate position/vel...


Examples of different types of ADC converter chips?

Started by Hyperian in comp.arch.embedded11 years ago 3 replies

There are chips like PCF8591 that are 4 channel ADC converter that sends the 8bit digital Analog signal out through I2C. But are there ones...

There are chips like PCF8591 that are 4 channel ADC converter that sends the 8bit digital Analog signal out through I2C. But are there ones with more channels? Are there multi channel ADC converters that converts to 8 bit digital output that can be hooked up to, for example, an atmega16's I/O port?


control several accelerometers

Started by mahsayeh in comp.arch.embedded11 years ago 7 replies

hi to all i am trying to control several accelerometers(LIS3LV02DQ) with one microcontroler(atmega16) using I2C interface and my problem is...

hi to all i am trying to control several accelerometers(LIS3LV02DQ) with one microcontroler(atmega16) using I2C interface and my problem is how to adress the slaves(accelerometers).all of the slaves have the same adress in Who Am I register in other words i dont know what must be written in SLA+R/W section, Thank you for any help best regards


Problems with simulation of amforth in VMLAB...

Started by wzab in comp.arch.embedded10 years ago 1 reply

Hi, I'd like to know if anybody has succeeded to simulate the AVR running amforth ( http://amforth.sf.net ) in VMLAB (...

Hi, I'd like to know if anybody has succeeded to simulate the AVR running amforth ( http://amforth.sf.net ) in VMLAB ( http://www.amctools.com/vmlab.htm ). I'd like to use this setup for simple tests without using the real hardware. Unfortunately, even though VMLAB worked perfectly with my C or Assembly programs, and even though amforth works perfectly on real ATmega32 or ATmega16, they do ...


General Idea for a USB related proyect

Started by jarguello in comp.arch.embedded11 years ago

Hello there. I´m new working with microcontroller, at the moment never try using USB. I´planning to develop a interface PC-USB proyect...

Hello there. I´m new working with microcontroller, at the moment never try using USB. I´planning to develop a interface PC-USB proyect (using atmel ATMEGA16), where a infrared-led acts as a light analog sensor, depending on the leght of hte light disturbance the microcontroler has to distinguish between two posible paths, i was thinking on sending this signal to a PC-host software where the ...


Image processing using microcontroller

Started by anex in comp.arch.embedded10 years ago 6 replies

hi.. i want to develop an embedded system using a micro controller and a cmos sensor.. i have chosen atmega16 and c3088 sensor.. however I...

hi.. i want to develop an embedded system using a micro controller and a cmos sensor.. i have chosen atmega16 and c3088 sensor.. however I am certain that memory constraints will be a problem for storing the images..i am aware of avrcam and cmucam and realize that such a system is possible..however i cannot find a way around the memory problem..can someone please suggest some way to solve this pro...


sccb(I2C) for ov7670

Started by spman in comp.arch.embedded10 years ago 4 replies

hello friends i want to implement an Omnivision OV7670 image sensor with ATMEGA16. but encountered to a problem i can't write in ov7670...

hello friends i want to implement an Omnivision OV7670 image sensor with ATMEGA16. but encountered to a problem i can't write in ov7670 registers ! when i try to communicate via I2C, i get NACK! i send start and give rep_start from OV7670. then i send the write address (0x42 according to datasheet) but no ACK is detected !! i doubt to these : 1- according to datasheet, the address...


Ethernet on AVR

Started by Meindert Sprang in comp.arch.embedded16 years ago 6 replies

Just a quick question: what would be a good choice of ehternet chip to attach to an AVR? My first thought is a Crystal, but maybe there are...

Just a quick question: what would be a good choice of ehternet chip to attach to an AVR? My first thought is a Crystal, but maybe there are better option? My AVr of choice would be a ATmega162. Meindert


AVR studio Watch window giving unbelievable result.

Started by Denis Gleeson in comp.arch.embedded16 years ago 6 replies

Hello all Im new to using Atmel devices and AVR studio. We have built a project with avr-gcc and Im using AVR studio version 4.08 to debug....

Hello all Im new to using Atmel devices and AVR studio. We have built a project with avr-gcc and Im using AVR studio version 4.08 to debug. the device is the ATMEGA162. My problem is that we have an array of structures declared in C and when I place a watch in the watch window the SRAM address is given as 0x051E which is outside the SRAM space of the device which has 1k of SRAM starti...


SPI: speed calculation

Started by Roman Mashak in comp.arch.embedded15 years ago 5 replies

Hello, All! I'd like to get speed of 500 Kbit/sec by SPI communication. I don't quite understand how can I calculate the clock frequency to...

Hello, All! I'd like to get speed of 500 Kbit/sec by SPI communication. I don't quite understand how can I calculate the clock frequency to adjust to this value? Could you please explain. I'm using ATmega162. Thank you. With best regards, Roman Mashak. E-mail: mrv@tusur.ru