Search results

  1. V

    Uart communication protocoals

    Hello I know that the use of the Uart Protocol is used to send or receive data from one device to another. For example, if I want to send data from Microcontrlloer to PC. I can send data using uart protocol. Suppose that my name vead is store in 8051 and I want send data "vead" to PC so that I...
  2. V

    SKM53 GPS Datasheet

    As I know whenever we need to develop program for device. we just need to read datasheet of device. there is complete information about the device that how does it work. I had to use GPS in my project. So i found the GPS module on internet after that I downloaded datasheet and I read that...
  3. V

    SKM53 GPS Datasheet

    Hello I need help to understand datasheet. I am trying to understand logic of SKM53 GPS. I have attached datasheet . I have been reading this datasheet but I don't understand how to find information in datasheet that is require to develop program.
  4. V

    Bitwise AND assignment

    OK I am telling you what I want. I was trying to understand the program in this link https://www.8051projects.net/keypad-interfacing/8051-programming.php I don't have much understanding about whole program so that's why I am trying to understand in small part #include <AT89X51.H>...
  5. V

    Bitwise AND assignment

    i = 3 Now data = 1000 1111 data &=~( 0x80 >> i) data &=~ (1000 0000 >> 0000 0011) data &=~ (0001 0000) data &= 1110 1111 data = data & 1110 1111 data = 1000 1111 & 1110 1111 data = 1000 1111 data |= 0x80>>i data |= 1000 0000 >> 0000 0011 data |= 0001 0000 data = data | 0001 0000 data...
  6. V

    Bitwise AND assignment

    data = 1110 1111 0x0F = 0000 1111 data &= 0x0F data = data & 0x0F data = 1110 1111 & 0000 1111 data = 0000 1111 i = 0 data &=~( 0x80 >> i) data &=~ (1000 0000 >> 0) data &=~ (1000 0000) data &= 0111 1111 data = data & 0111 1111 data = 0000 1111 & 0111 1111 data = 0000 1111 data |=...
  7. V

    Bitwise AND assignment

    How to solve this data &=~( 0x80 >> i); my attempt 0000 1111 ~ 0 0000 0000 1000 000 0000 0000 1111 0000 data &= means 0000 1111 ( 0x80 >> i) means ox80 =0000 0000 1000 0000 >> 1 = 0 0000 0000 1000 000 I don't understand how does this operation work?
  8. V

    Bitwise AND assignment

    Hello What is meaning of this data &= 0x0F. does it equal data = data & 0x0F ? data &= 0x0F; for(i = 0; i < 4; i++) { data &=~( 0x80 >> i); data |= 0x80>>i; } data = 11101111 data =...
  9. V

    What Is List In Program

    Hello This code is source file of list. generally List means the number of items. I want to understand what is use of this program ? why do we need this source file ? #include <stdlib.h> #include "FreeRTOS.h" #include "list.h" void vListInitialise( xList * const pxList ) { /* The list...
  10. V

    How to find out delay time for ISR

    generally we know the delay time and we need to find out how many time loop will run to achieve delay time. For example how do we know that how many time loop will run for 10 ms delay ?
  11. V

    How to find out delay time for ISR

    how did you calculate this value 200 per seconds is 5ms time delay = machine cycles * 1.085uS does it mans 200 times is machine cycles
  12. V

    How to find out delay time for ISR

    Hello If Interrupt service routine run 200 per seconds how to calculate timer higher value TH0 and timer lower value TL0 v ? #include<reg51.h> /*AT89c51*/ sbit led1 = P1^0; //LED connected to P0 of port 1 sbit led2 = P1^1; //LED connected to P1 of port 1 void timer(void)...
  13. V

    Programming starting point

    Its all depend on how do you apply logic's. my best advice write on paper what you want and how do you achieve via program. These two things should be always run in your mind. think which condition may be apply. programming is simple instructions which we can write in any language to run on...
  14. V

    function to send data

    trying to understand what the meaning of this condition if ((Data & 0x80) == 0) This is the bitwise & operator. It does an and-operation of these two Data , 0x80 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 x x x x x x x x x mean 0 or 1 digit Data = xxxx xxxx; 0x80 = 1000...
  15. V

    function to send data

    I have gone throw little search. https://en.wikipedia.org/wiki/Bit_banging there is c program , // set line high if bit is 1, low if bit is 0 if (data & 0x80) I didn't understand what is the 0x80. is it address of low bit?
  16. V

    function to send data

    I am asking for this hex value 0x80. why there is 0x80?
  17. V

    function to send data

    Hello I need help to understand this function. This function is use to send 8 bit serial data (8051 MCU, embedded c, I2C) unsigned char I2CSend(unsigned char Data) { unsigned char i, ack_bit; for (i = 0; i < 8; i++) { if ((Data & 0x80) == 0) SDA = 0; else...
  18. V

    Switch button reading function

    Sorry but I am too long to write program. I am just looking for logical explanation. Than I will try to implement that logic with programming something like this 1. If switch is not pressed, return switch not pressed 2. if switch is pressed, wait for denounce period than if switch is no...
  19. V

    Switch button reading function

    I will use LCD display 16x2. its like that , when we dial number on mobile, we press keypad buttons. if We press "1" we see number "1" on mobile screen. if We press "2" we see number "2" on mobile screen ....and so on. display will show only four digits 1 to 4 digits xxxx it can be any...
  20. V

    Switch button reading function

    Hello Everyone I want to learn keypad interfacing programming. I am starting with very simple example. suppose keypad is made by arranging four push button. Than I have to find out which one switch has been pressed and how many time it has been pressed. how do we read the inputs of four...
Top