(editor’s note: Intrigued by the problem? Have a question or optional solution? Then click the “Read more” link and follow the conversation on EDAboard.com or log in to EDAboard and participate in the microcontroller forum thread.)
Stack underflow when the array number is increased – I have an array defined in my code included in this post. When I add one more element in it, it gives stack underflow error on both Proteus and also in real simulation. Why? Read more
Where are constant string literals stored? – I have microcontroller flash memory divided into
code segment // to store the code itself
.rodata segment
startup segment // to store the startup code. My question is where are the locations of the literal string like if i define char array[100]= ” hello every one “; Also where the constant variables like const int var=100. Read more
Best compiler for PIC controllers – At this time I am working with C18 compiler for PIC8f series controllers. When I wrote some complicated mathematical calculation and/or USART string (string comparison, transmit ROM string, transmit RAM strings) it always fails. Why? Read more
How to generate 3 PWM signals from PIC13f – I want to generate three PWM signals with the cheapest and the smallest PIC UC (like 10f, 12f or 16f). Should I use timers and interruptions or doing something else? Read more
How to write this function using C – I would like the solution for the following:
1)array has repeated numbers the numbers are scattered how to make it without repeated number using only one for loop
2)write a function to take a byte like this 101100011 and then reverse the byte 110001101
Read more
How do I perform multiple tasks in MikroBASIC basic for PIC 12 series – I am trying to make a simple project in MikroBASIC using PIC12F1840. This includes to toggle on and off an LED in Port RA0 at a frequency of 1Hz (led blinking), at the same time recording ADC values from a potentiometer from 0 to 5v max in Port RA1 at 10 bits and simultaneously sending those values to the computer via RS232 to be read through hyperterminal. I don’t know how to use these in MikroBASIC. Would anyone mind anyone sharing a code or an example on how I can solve this problem? Read more
SPI interface question – I am working on a home automation controller and want to use a display with an ILI9341 controller. My question is there anyone who has experience with this SPI based display and can you help me identifying the cs, _dc, _rst, _sclk signals at the yellow header of this blue display? Read more
PIC18F45K22 digital controller design – I have PIC18F45k22 with DAC MCP4922, I need to design a feedback controller for my inverter 12V Dc to output of max 9v peak AC 50Hz, sinewave. I use LC filters and at the output to make read by PICMICROPIC 18f45k22 at AN2 channel and I use feedback gain of =0.1 and a noninverting level shifter. In my code. I generate an err signal, and then I need to implement the controller in C code. Read more
Is it reasonable to learn ARM assembly? – I writing AVR and PIC codes by Assembly. Is it reasonable to learn ARM by Assembly? Please recommend me a good source to learning how to write code in stm32 cortex-m3 by Assembly. Read more
Boot loader and startup code – What is the difference between boot loader and startup code? Read more
Leave a Reply