Search results

  1. E

    Address bus and program instructions

    I have this doubt about pic 16 bit microcontrollers. Let us say it is 24 bit program instruction. The first address let us say starts with 0x01 and it stores 24 bit instruction. Then my next address is either 0x02 or 0x01 + 24 bits or 0x04. I am very confused.
  2. E

    Reading from Memory

    #define value_p (uint16_t *)(0x1002); int DataExtract(void) { uint16_t l_localvalue_u16=0; l_localvalue_u16 = *value_p; return l_localvalue_u16; } I have written some test code as above. I want to read from program memory at address 0x1002. But I have not specified that 0x1002 is...
  3. E

    Uart communication

    I have seen several instances where uart or serial communication is possible without max232 ic. How is it possible? This i have observed in pickit2 serial communication.
  4. E

    Microcontroller debugging

    I am facing run time issues while running the code. To trace such issues i developed one serial port program from which I can send data. Now my question is i want to receive this data on computer and display in the form of gui. What tools can I use for gui. Please suggest.
  5. E

    ADC program template

    I have configured the adc program in the following manner automatic conversion and interrupt based and i find that the interrupt is happening very frequently and i do not want at that rate. so i planned to use the following method only when i want the data i will enable the interrupts and in the...
  6. E

    Simulate the software before flashing

    I want to simulate my software before actually flashing into the hardware. I am looking into microchip controllers. External tools also ok for me. I want to test my logic since I am finding lots of issues like flags not properly reset and etc. I want to test all the loops. Please suggest.
  7. E

    Lin communication

    I read a statement in LIN communication saying by the nature of lin bus whatever the node is transmitting it also receives it. I am bit confused about this. What does it mean? Will i get both tx and rx interrupts at the same time?
  8. E

    Challenging task

    I want to take up a very challenging task of identifying at which point of main loop execution is the system getting interrupted. I want to know the exact point. As of now i want to go with single timer interrupt. Is it possible? Then plan to extend multiple interrupts and then interrupts within...
  9. E

    Volatile and interrupts

    Is it mandatory that a variable that i use in interrupt to copy microcontroller buffer data should be of type volatile? Because without it also my code seems to be working.
  10. E

    Confusion about oscilloscope setting

    I am very confused with oscilloscope time base setting. If i put 1ms as time base it means it shows 10ms of signal. Does it also means that the scope takes the samples at every 1ms of the input signal? If i want to see a signal of 10kz or 0.1ms do i need to change the time base to 0.1ms?
  11. E

    why not odd number microcontrollers

    I know we have 8 bit, 16 bit and 32 bit controllers. I know 9 bit micro controllers or all different size of micro controllers are not possible and wanted to know the exact reason why it is not possible?
  12. E

    capacitor plate voltages

    I was curious to know if it is possible to maintain the plates of a capacitor at different voltages, I mean to say one plate I will connect to one source and the other plate to other voltage say 5v and 3v. Stupid question but want to know.
  13. E

    Resistances of different lamps

    In automotives like cars trucks we have different kinds of lamps like 75W, 21W etc. I wanted to know if their resistance is same or different. Does a 21W has higher resistance compared to 75W? please help. Can it be modeled as fixed resistance?
  14. E

    power dissipation capability

    I very frequently hear the term power capability of an ic. what exactly is this? how an ic can dissipate its heat? suppose if it crosses the limits, does the bonds inside the ic gets separated? what exactly happens? on what factors does it depends like manufacturing etc. How heat sink is related...
  15. E

    Opamp Power Supply

    I have seen the power supply to op amp sometimes to positive/ negative and some cases Positive/ Ground. Please help me to understand when should i go for +/- Supply and when should I go for Positive/Ground supply. I know I am not asking very good question. But please tell me one instance to get...
Top