Tab Content
  • Easyrider83's Avatar
    3rd September 2019, 16:37
    You have no understanding of pointers data_ID *dataID = (data_ID *)malloc(sizeof(data_ID ));// Allocate memory for struct data_ID After this txdata...
    1 replies | 232 view(s)
  • Easyrider83's Avatar
    29th August 2019, 20:03
    Easyrider83 replied to a thread [ARM] Enc28j60 with STM32F4 in Microcontrollers
    First you need to make ethernet working with static ip and working ping Next step is to process http request. Generate a simple html page is easy,...
    4 replies | 447 view(s)
  • Easyrider83's Avatar
    23rd August 2019, 18:30
    Easyrider83 replied to a thread [ARM] Enc28j60 with STM32F4 in Microcontrollers
    You need to add 'Network Interface' to FreeRTOS TPC and add a ENC28J60 driver. I did that before and can give you my codes. But! F4 has it's own...
    4 replies | 447 view(s)
No More Results
About alexxx

Basic Information

Optional Info
Biography:
Automatic Control Systems Engineer
Location:
Greece
Occupation:
Electronics Engineer

Statistics


Total Posts
Total Posts
1,013
Posts Per Day
0.33
General Information
Last Activity
18th May 2019 10:14
Join Date
17th April 2011
Helpful Postings
Has Rated
126
Post Rated
Rated helpful 273 out of 273 times

41 Friends

  1. 3000manXXXL  3000manXXXL is offline

    Newbie level 1

    3000manXXXL
  2. ahmed.elgamal  ahmed.elgamal is offline

    Newbie level 4

    ahmed.elgamal
  3. bigdogguru  bigdogguru is offline

    Administrator

    • Send a message via Yahoo to bigdogguru
    bigdogguru
  4. bobsun  bobsun is offline

    Full Member level 2

    bobsun
  5. Chullaa  Chullaa is offline

    Full Member level 1

    Chullaa
  6. Easyrider83  Easyrider83 is offline

    Advanced Member level 5

    • Send a message via ICQ to Easyrider83
    Easyrider83
  7. fawadbutt  fawadbutt is offline

    Member level 2

    fawadbutt
  8. fer_yana  fer_yana is offline

    Member level 1

    fer_yana
  9. fionawang  fionawang is offline

    Newbie level 1

    • Send a message via MSN to fionawang
    fionawang
  10. garuda.jsk  garuda.jsk is offline

    Newbie level 1

    garuda.jsk
Showing Friends 1 to 10 of 41
Page 1 of 5 1 2 3 ... LastLast
 

Experience


Points
Points
6,918
Level
19
Points: 6,918, Level: 19
 
Level up completed
Level up completed
82%
Points required
132

Activity


Activity
24.0%
Activity last 30 days
5.0%
Activity last 7 days
2.0%

Points


All Points for user
Points for User
2,229
Points for Reputation
558
Points for every day since registration
1,473
Points for Friends
123
Points for Albumpictures
75
All Points for threads
Points for threads
122
Points for Threads
29
Points for Social Group Discussions
16
Points for tagging threads
35
Points for replies
41
All Points for posts
Points for Posts
4,356
Points for Posts
2,931
Points for Social Group Messages
16
Helpful Answers
1,370
Solved Threads
39
All Points for miscellaneous
Points for Misc
210
Points for article in vBulletin Blog
30
Points for posting Calendar Event
180

Activities


12th May 2019
03:06 alexxx has earned 3 Points for Posts points
03:06 alexxx has earned 2 Points for threads points
03:06 alexxx has earned 1 Points for User points

11th May 2019
03:06 alexxx has earned 33 Points for User points
03:06 alexxx has earned 3 Points for threads points
03:06 alexxx has earned 3 Points for Posts points

Show Activities from all Users
View alexxx's Blog

Recent Entries

Swapping a byte's nibbles

by alexxx on 26th February 2012 at 11:52
For those compilers that do not have a built-in function for swapping a byte's nibbles, a simple user function can be created:

Code C - [expand]
1
2
3
4
unsigned char SwapNibbles (unsigned char x)
{
  return ((x >> 4) & 0x0F) | ((x << 4) & 0xF0);
}

And a couple of function call examples:

Code C - [expand]
1
2
3
unsigned char ch1, ch2;
ch1 = SwapNibbles(0xA3);  //ch1=0x3A
ch2 = SwapNibbles(ch1);   //ch2=0xA3

Read More

Categories
Uncategorized

BCD to decimal convertion and vice versa

by alexxx on 15th October 2011 at 08:54
Some compilers may have built in functions for these convertions, but others don't. Below are two functions for converting a BCD number to decimal and vice versa:

Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
#define uint8 unsigned char
 
uint8 BCDToDecimal (uint8 bcdByte)
{
  return (((bcdByte & 0xF0) >> 4) * 10) + (bcdByte & 0x0F);
}
 
uint8 DecimalToBCD (uint8 decimalByte)
{
  return (((decimalByte / 10) << 4) | (decimalByte % 10));
}

Read More

Updated 11th December 2011 at 18:46 by alexxx

Categories
Uncategorized