EmbeddedRelated.com
The 2024 Embedded Online Conference

Saving in EEPROM without corruption?

Started by Mark Jordan in AVRclub19 years ago 18 replies

I have a circuit using an AT90S2313 working on a very noisy environment and subject to program 'crashes' sometimes. The Watchdog is...

I have a circuit using an AT90S2313 working on a very noisy environment and subject to program 'crashes' sometimes. The Watchdog is very efficient recovering from crashes, but I'm having a corruption on the EEPROM contents. What is the best method of saving some bytes (2) in the internal EEPROM and getting them back without corruption? Is there some sort


spi adc

Started by soheil zarrin in AVRclub19 years ago 1 reply

hi i'm using ad7705 - a serial adc- which u can commmunicate under SPI protocol the MCU is ATMEGA16 which support this protocol but i...

hi i'm using ad7705 - a serial adc- which u can commmunicate under SPI protocol the MCU is ATMEGA16 which support this protocol but i can not communicate with ADC the program is written in BASCOM and inst. spiin & spiout is used and configured in hard mode how can i test that: the problem is from ADC or MCU? & ho


Different between ATmega8535 and ATmega16

Started by Andrew Lim in AVRclub20 years ago 4 replies

Hi everyone, I'm currently using ATmega8535 to do my development. Apparently, I need more than 8k Flash memory for my code. Will...

Hi everyone, I'm currently using ATmega8535 to do my development. Apparently, I need more than 8k Flash memory for my code. Will there be any problem or precaution that I should take note if I switch to ATmega16 ? I have checked that the pin config and the functions are similar. Just want to be sure before I get this chip.


need crack

Started by sami saqqa in AVRclub20 years ago 3 replies

hi all I have the demo version of CODEVISION AVR 1.23.9b evaluation Dose any one have a crack for it I want to compile a...

hi all I have the demo version of CODEVISION AVR 1.23.9b evaluation Dose any one have a crack for it I want to compile a long code and the compiler show this massage (Evaluation version file size limit exceeded) ---------------------------------


Off Topic - PIC Programming HELP!!! PIC16C63A CHIP with ICSP & Programmer from JAYCAR

Started by Steven Chang-Lin Yu in AVRclub20 years ago 4 replies

I have recently purchased the portable PIC programmer from Jaycar, it works fine with the 16F84, however something wrong with the ICSP...

I have recently purchased the portable PIC programmer from Jaycar, it works fine with the 16F84, however something wrong with the ICSP support!!! I am currently using the 16C63A, it program ok first time using the ICSP connection, however it doesn't not allow me to reprogram the chip 2nd time, I don't understand why as the programmer's software did


Software serial port code for Tiny26?

Started by David L. Jones in AVRclub20 years ago 6 replies

Ok, I thought this one would be easy... I'm after some C code for a software serial port for the Tiny26, or any AVR for that matter. I...

Ok, I thought this one would be easy... I'm after some C code for a software serial port for the Tiny26, or any AVR for that matter. I thought such code would exist, but I can't seem to find it... I can't use the USI either, I want a pure software solution at low speed (300bps would be plenty) I could write one myself, but I'd rather not spend the time,


6 PWM, Serial Tx and Rx on Atmel ATmega8 or 16?

Started by macmen_seattle in AVRclub20 years ago 1 reply

I am struggling (newbie) with code that will do the following, say on an ATmega running at 8MHz: 1. PWM for six motors (not servos)...

I am struggling (newbie) with code that will do the following, say on an ATmega running at 8MHz: 1. PWM for six motors (not servos) running in one direction. 6-8 bit duty cycle resolution is fine. 2. Sample a few sensors. 3. Receive motor speed commands via serial. 4. Send sensor readings via serial. 5. Kill all motors if no commands a


connect 12 bit A/D (ad574) to avr

Started by m_juliat in AVRclub20 years ago 1 reply

Hello Plz help me for connect ad574 chip to avr for 12bit adc thanks

Hello Plz help me for connect ad574 chip to avr for 12bit adc thanks


POwer down mode and wake on INT0

Started by inpactmicro in AVRclub20 years ago 3 replies

I cant get my ATMEGA 128 to power down and wait for an interrupt on rising edge of d0 any ideas where I am going wrong? this is the code...

I cant get my ATMEGA 128 to power down and wait for an interrupt on rising edge of d0 any ideas where I am going wrong? this is the code Im using //enable PORTD:0 (INT0) as interrupt input level High EICRA = 0x03; //00000011 //rising edge on INT0 SREG = 1; //s-reg I flag EIMSK = 0x01; //00000001 // enables external interrupt //EIFR = 0x0


How to use /EA-Vpp pin?

Started by Srdjan Ridanovic in AVRclub20 years ago 1 reply

Hi, I'm working on a boot loader project with some SRAM, EEPROM and AT89C52 and I want to ask you guys some things that I coudn't find in any...

Hi, I'm working on a boot loader project with some SRAM, EEPROM and AT89C52 and I want to ask you guys some things that I coudn't find in any tehnical spacifications. For instance, if the /EA-Vpp pin is on "1", procesor will execute program from internal code memory ( in this case 8Kb ) and then countinu using external memory up to 64Kb ! If the /EA-Vpp is on "0" procesor


Ask a Question to the EmbeddedRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright


The 2024 Embedded Online Conference