View RSS Feed

Most Popular Blogs

  1. Write/read the internal EEPROM in AVR using avrgcc (winAVR)

    The following macro can be used to simplify the process of using the internal AVR EEPROM

    #include <avr/eeprom.h>
    // defines for eeprom access	
    #define read_eeprom_byte(address) eeprom_read_byte ((const uint8_t*)address)
    #define write_eeprom_byte(address,value) eeprom_write_byte ((uint8_t*)address,(uint8_t)value)
    #define read_eeprom_word(address) eeprom_read_word ((const uint16_t*)address)
    #define write_eeprom_word(address,value) eeprom_write_word

    Updated 3rd August 2014 at 18:24 by alexan_e (Added float)

  2. Some cool sites that you should know


    This is an awesome site for DSP. (Make sure you switch on the speaker)

    He also has applets for electronics

    This guy also has applets for maths and physics too.

    See his home page for some cool stuffs

    Hope this helps.

    And please do leave ...
  3. Modalities Of Using The ADC Module Of PIC 16F877A - Part 2

    Acquisition Time

    Before an analogue to digital conversion is to be started, a small amount of time must be allowed for the holding capacitor of the PIC ADC module to fully charge to the input level. This is how the ADC works and unless this minimum time is allowed, the ADC will give an incorrect result. This time is known as the acquisition time.

    The datasheet provides the equation for calculating the minimum acquisition time. If you want, you may check it out, but ...

    Updated 25th March 2012 at 19:20 by Tahmid

  4. Modalities Of Using The ADC Module Of PIC 16F877A - Part 3

    Right/Left Justification continued

    When you have a 10-bit number (range is 0 to 1023), if you divide the number by 4, you effectively just converted the 10-bit number to an 8-bit number. The new range is 0 to 255.

    You should already know that bit-shifting a number to the right once is equivalent to dividing the number by 2 and bit-shifting the number to the right twice is equivalent to dividing the number by 4. If you don't know about this, this should help you understand. ...

    Updated 25th March 2012 at 19:34 by Tahmid

  5. Modalities Of Using The ADC Module Of PIC 16F877A - Part 4

    ADC pinout of PIC 16F877A

    PIC16F877A has 8 ADC input channels. That means that 8 pins are multiplexed (connected) to the PIC ADC module. So, you can use the ADC module to convert analogue input from 8 inputs. PIC16F877A cannot do the conversions simultaneously, so it must be done one by one. This will be shown later on. The 8 ADC input pins are PORTA0, PORTA1, PORTA2, PORTA3, PORTA5, PORTE0, PORTE1, PORTE2. Each ...

    Updated 25th March 2012 at 19:27 by Tahmid

Page 1 of 13 1 2 3 11 ... LastLast