Tab Content
More Activity
About alexan_e

Basic Information

Optional Info
Location:
Greece
Interests:
electronics, atmel AVR, VHDL CPLD/FPGA, programming delphi, c

Signature


Please don't make requests for help in private using PM. Create a thread in the forum so that other members can benefit from the posted answers.

Consider reading this before posting : How To Ask Questions The Smart Way

Statistics


Total Posts
Total Posts
11,889
Posts Per Day
3.36
General Information
Last Activity
8th November 2017 13:12
Join Date
17th March 2008
Home Page
http://alexan.edaboard.eu
Helpful Postings
Has Rated
146
Post Rated
Rated helpful 4294969307 out of 4294969307 times

178 Friends

  1. 0killingsoul0  0killingsoul0 is offline

    Junior Member level 2

    0killingsoul0
  2. :pH  :pH is offline

    Full Member level 1

    :pH
  3. Abdul Razak  Abdul Razak is offline

    Newbie level 6

    Abdul Razak
  4. abdul samad arif  abdul samad arif is offline

    Newbie level 3

    abdul samad arif
  5. aditya.ietstp  aditya.ietstp is offline

    Junior Member level 1

    aditya.ietstp
  6. ahmedzoom99  ahmedzoom99 is offline

    Newbie level 4

    ahmedzoom99
  7. aliraza786  aliraza786 is offline

    Full Member level 4

    aliraza786
  8. amirtafrishi  amirtafrishi is offline

    Junior Member level 1

    amirtafrishi
  9. amisin  amisin is offline

    Junior Member level 1

    amisin
  10. amit24  amit24 is offline

    Newbie level 2

    amit24
Showing Friends 1 to 10 of 178
Page 1 of 18 1 2 3 11 ... LastLast
 

Experience


Points
Points
37,895
Level
47
Points: 37,895, Level: 47
 
Level up completed
Level up completed
60%
Points required
655

Activity


Activity
0%
Activity last 30 days
0%
Activity last 7 days
0%

Points


All Points for user
Points for User
6,823
Points for Reputation
4,211
Points for every day since registration
1,917
Points for Friends
544
Points for Albumpictures
150
Points for filling profile
1
All Points for threads
Points for threads
304
Points for Threads
66
Points for Social Group Discussions
8
Points for tagging threads
83
Points for replies
147
All Points for posts
Points for Posts
30,657
Points for Posts
20,535
Points for Social Group Messages
10
Points for uploading Attachments
10
Average Posts per Day
2.00
Helpful Answers
10,090
Solved Threads
12
All Points for miscellaneous
Points for Misc
110
Points for article in vBulletin Blog
90
Points for posting Calendar Event
20

Activities


19th October 2017
03:07 alexan_e has earned 13 Points for User points

22nd September 2017
03:07 alexan_e has earned 23 Points for User points

7th August 2017
03:06 alexan_e has earned 12 Points for User points

15th July 2017
03:07 alexan_e has earned 8 Points for User points

28th June 2017
03:07 alexan_e has earned 15 Points for User points

29th May 2017
03:06 alexan_e has earned 1 Points for User points

Show Activities from all Users
View alexan_e's Blog

Recent Entries

How to program your mbed board using Keil uVision instead of the online compiler

by alexan_e on 17th May 2012 at 22:45
-
Create a new project in Uvision and then open the project properties

write fromelf --bin -o @L.bin !L in the "run user program after build" command.
This command generates the bin file from the elf file


Create a MBED_Flash.bat with the following content and place it in the project folder
Code:
:Batch file for copying to MBed
:argument 1: .bin output file
:argument

Read More

Categories
Uncategorized

Long integer to string function

by alexan_e on 13th October 2011 at 18:25
This is a custom function to convert a number to the ASCII representation

Code C - [expand]
1
2
3
4
5
6
7
8
/*****************************************************************************
** Function name:   ULongToStr
**
** Descriptions:    converts an unsigned long to ASCII characters and stores the result to a char array
**                  
** parameters:      unsigned long value : number to be converted
**                  char *str : pointer to the first char of the array
**                  char leading_zero

Read More

Updated 1st November 2012 at 11:14 by alexan_e (added function comment)

Categories
AVR

8/16 bit value reverting function (11000000 to 00000011)

by alexan_e on 13th October 2011 at 18:19
Fast value reverting function for 8-bit char and 16-bit integer, it uses a lookup table for each nibble (4-bits).

Code C - [expand]
1
2
3
4
5
6
7
/*****************************************************************************
** Function name:   reverse_byte    
**
** Descriptions:    reverts the bits of a byte b0->b7, b1->b6, b2->b5 etc
**                  
** parameters:      unsigned char input_byte : the values that will be inverted 
** Returned value:  unsigned char : the reverted

Read More

Updated 1st November 2012 at 11:21 by alexan_e (added function comment)

Categories
AVR

PWM in ATMEGA

by alexan_e on 22nd August 2011 at 09:31
The atmega has a few different PWM modes, the frequency and duty ratio depend on the mode and values used, this is a description of the way to calculate them.

In fast PWM top=ICR1, the output PWM frequency=timer clock/(ICR1+1) and the duty=OCR1A(B)/ICR1
In fast PWM top=0h00ff, the output PWM frequency=timer clock/256 and the duty=OCR1A(B)/256
In fast PWM top=0h01ff, the output PWM frequency=timer clock/512 and the duty=OCR1A(B)/512
In fast PWM top=0h03ff, the

Read More

Categories
AVR

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

by alexan_e on 15th July 2011 at 14:18
The following macro can be used to simplify the process of using the internal AVR EEPROM

Code:
#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

Read More

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

Categories
AVR