Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Recent content by kunal5959

  1. K

    [SOLVED] EEPROM equality function

    I have a situation where i have to write a code in C for ATMEGA128 in AVR studio, so as to compare 5 integers that are being saved in the EEPROM and then to see which ones are equal and choose atleast 3 equal numbers of the 5 nrs. :- e.g. a=0,b=0,c=0,d=2,c=3 then Valid_nr=0...
  2. K

    ADC SPI and AVR MKII connection problem

    I am trying to connect my ATMEGA128 board with ADC128s102 for my prj. The board is already functioning with programming interface ISP AVR MKII. AS shown in the diag the MISO and MOSI are connected as shown . Since the ADC uses SPI i have connected the MISO MOSI and SCK to corresponding pins on...
  3. K

    Generate SYS_CLK/20 on a PINA6 of my microcontroller atmega128

    cannot use SPI interface because i am using it as programming interface....
  4. K

    Generate SYS_CLK/20 on a PINA6 of my microcontroller atmega128

    I am using LTC1799 IC to generate a sys_clock signal of 1.83200 MHz for my project. In my project i have to use all channels of TIMER 1 and TIMER3 and TIMER0 to generate PWM cycles. Now i need to interface ADC128s102 to my microcontroller. This ADC runs on SPI protocol and my goal is to generate...
  5. K

    _delay_us() function is incorrect for ATMEGA128 connected to LTC1799 External clock

    I am using LTC1799 IC to generate a clock signal of 1.832 MHz for my project. The fuse settings seem to be right . when i use following code for test i get inaccurate value of delay # define F_CPU 1843200UL # define SCLK_ON PORTA|=(1<<PORTA0) # define SCLK_OFF PORTA&=~(1<<PORTA0) #define...
  6. K

    Not able to ENter Programming Mode error AVR..aTMEGA128 and AVR MKII

    LT oscillator is actually quite adjustable and precise for the project i need: ..It is wierd That the MKII is reading device ID if the supply vooltage to microocntrtoller is below 4v. Above 4 V it shows an error..the operating voltage for ATMEGA128 MCU is 4.5v t0 5.5v..i have no idea what to...
  7. K

    Not able to ENter Programming Mode error AVR..aTMEGA128 and AVR MKII

    Actually the RXD and TXD and CLk remains low all the time, but goes to high and returns to low. when read signature is clicked. I read somewhere on forum that mosi and miso should be high all the time but go from high to low to high. Does it mean the microcontroller is damaged if the the miso...
  8. K

    Not able to ENter Programming Mode error AVR..aTMEGA128 and AVR MKII

    Thank you for your reply. Actually in my previous design the atmega128L was getting a supply of 4,9v which i did not change because the basic design remained the same. I rechecked my present design and the power suply to Microcontroller is 4.9v which i think is in valid range..morever my...
  9. K

    Not able to ENter Programming Mode error AVR..aTMEGA128 and AVR MKII

    Here is the setup image of AVR MKII and ATMEGA128 ...
  10. K

    Not able to ENter Programming Mode error AVR..aTMEGA128 and AVR MKII

    I made an identical working PCB (with ATMEga128L) but replaced the ATMEga128L with ATmega128. THe ISP serial Programming was designed using the the same connections between MCU and AVR MKII as in previous PCB. MKII///MCU Pins MISO- TXD(PE1) MOSI- RXD(PE0) SCK- CLK(PB1) RST- REset(nRESET)...
  11. K

    How to read the External Oscillator Frequency in ATMEGA128A?

    For my purpose I need to report to Hyperterminal what is the value of the frequency generated by the external Oscillator attached to my microcontroller.The main reason being reporting proper health of the oscillator and to calculate the frequency in runtime in the software..I initially thought...
  12. K

    Why OCR1A=0x00; still generates a PWM?

    I am getting a small Duty cycle generated when i set OCR1A to zero and ICR1=3667(which is 500Hz) for TIMER1 of ATMEGA128A.. According to my understanding if i set all the COM1A1, CS and WGM registers correctly for FAS PWM mode OCR1A =0x00; should generate a PWM such that Dutycycle =0/3667...
  13. K

    Multi threading and timers in ATmega128

    This is an example of my Multithreading application program. Since the actual code is too big i have attached here a small part of the code.. Actaully i am controlling three threads through TIMER0 Interrupt such that each thread is called for t=70 that is 10ms approx. everytime,.. But i have to...
  14. K

    [General] Problem with multithreading

    Thanks for the information FvM. i will read more articles on Task scheduling. It seems a major use of Task scheduling in implementing RTOS.. I hope i get some idea how to implement my idea there...Thanks again.
  15. K

    [General] Problem with multithreading

    Actually my main aim was to write a code where i can control 4 threads such that each thread has a timeout.. After a defined amount of time the a TIMING handler skips to another thread even if the thread takes more time than the defined one. I thought timer interrupt are the only...

Part and Inventory Search

Back
Top