Click here to Skip to main content
15,890,825 members
Everything / Microcontroller

Microcontroller

microcontroller

Great Reads

by Sacha Barber
A look at an excellent WinRT MVVM framework.
by jurhas
A small simulator for a 6 axis articulated robot
by Mike Hankey
Part 2 in an on going series of article featuring an Autonomus Rover
by GProssliner
cobj is a preprocessor based generator for interface based polymorphism

Latest Articles

by Richard Chambers
An introduction and a first walkthrough of using STM32CubeIDE with the ST32F3DISCOVERY board.
by André Marcos (Advisor), Gabriel Trepak, Vinícius Barauna Santana
Automating the Residential Lighting Activation Process Using Arduino
by Haily Swift
This article shows how to collect analog signal through the ADC module.
by Jan Dolinay
This article shows how to set up VS Code to debug your Arduino program.

All Articles

Sort by Updated

Microcontroller 

6 Jan 2011 by Adnan Merter
hi all,i have an exam next week in microprocessors courseand i have learn all about old 8080 micro. and how to program by using assemble language.can you advise me a book or some source explaining this,especially i need example codes?thankx
14 Apr 2015 by Ahmed Attiya
I need your help in my graduation project It is a smart home project in which i am using two PIC micro-controllers PIC16f877A for LCD & Keypad which is a way of devices control connected to the main micro PIC18f4550 i have problems in main micro code could you help me pleaseI am trying to...
12 Jul 2021 by Ahmet Furkan Sahin
write this program in MSP430 language : a- there is an array containing the average grades of 32 students which starts at the address 0x200 write a main program that converts the average grades to the letter grades using a LETTER...
6 Jun 2016 by Alexandr Surkov
How to build and run .Net Micro Framework 4.4 on STM32F4Discovery board.
20 Feb 2016 by Alexandr Surkov
How to build .Net Micro Framework 4.4 repo and create simple "Hello World" samle with .Net Micro Framework Emulator for Windows.
29 Feb 2016 by Alexandr Surkov
My experience of using C++ with microcontrollers
17 Aug 2011 by ali2012
can i implement a high pass FIR filter with 0.3hz transition band width on AVR micro?
23 Mar 2013 by ALNAJJARALI
Welcome all ,I need a help about interfacing pic16f877a micro-controller with a CRT or LCD screen via VGA cable.I just want to display only a colored text from the pic on the screen.any help is appreciated.thx in advance.
29 Aug 2014 by Andres Cassagnes
A simple serial communication library, with a serial ports enumerator
9 Dec 2020 by André Marcos (Advisor), Gabriel Trepak, Vinícius Barauna Santana
Automating the Residential Lighting Activation Process Using Arduino
2 Apr 2015 by Anirudha Mahadik
Hello,Need help about connecting micro controller to the internet webpage. Here the micro controller, on button click it should send request to the server webpage and in response, the LED on the embedded system must glow.Need suggestions and reference.
27 Oct 2010 by Ankur\m/
Well, I have no idea about the project you are working on, but I can help you with AT Commands and sending receiving SMS part.Introduction to AT Commands[^]Read the whole tutorial from the above site. It explains AT commands and it's use in sending and receiving SMS very well.This...
20 Mar 2016 by Arthur V. Ratz
Here's how to create S19 files:S-Record Generation with gcc for ARM/Kinetis | MCU on Eclipse[^]andConverting S19 Files into Binary Files with GNU objcopy | MCU on Eclipse[^]
16 Oct 2013 by AshakiranBhatter
Reading the contents of a floppy disk using BIOS interrupts and Services.
20 Apr 2015 by AshakiranBhatter
How to boot a floppy image with your own hand written code in C and Assembly
18 Mar 2010 by Avi Berger
You seem to be responding to this article[^]. You should post you questions about an article in the forum at the bottom of that article.As far as your question goes, each bit in the register refers to a port pin. Which pin and what a value of the bit for that pin represents is something you...
19 Mar 2010 by Avi Berger
bhai_kaju wrote:I couldn't find any kind of port number assignment or HEX equivalent. So, how do I know what to write in the code, and if anyone could tell me the meaning of this code :" #byte port_b=6 // IC =16c84 "why port_b = 6, not 4 or 5 or anything else.bhai_kaju also...
21 Jan 2018 by Avni Salhotra
#include // library of functions for this chip #include // library containing printf() function #include "configureUSART.h" // library for configureUSART(baud) #include "configuration_bits.h" void printCharAsBinary(unsigned char number); void WaitOneSecond(void);...
21 Jan 2018 by Avni Salhotra
I have solved this thank you all for help
27 Oct 2010 by Be Yourself
I am totally new to these commands and am going to start a project which is as follows:I am going to work on a project that will turn on or off the electrical equipments in your home by sending "sms" from your personal cellphone to the home cellphone.For this I require two modems .One...
9 Mar 2018 by BetaEngineer
Hello, I want to know if there is a really good (yet free) software tool which can analyse my C code (which i have written based on PIC and 8051/52 controllers), can find possible coding mistakes and also check MISRA Compliance... What I have tried: I know about PC_LINT, LINT, SPLINT.. but...
18 Mar 2010 by bhai_kaju
Hello, I have read your program for the LED ON/OFF & found it to be pretty simple to understand. The only thing I am confused with is this command :" TRISB=0xF0; // RB4:RB7 are input ; 11110000 in binary "I want to know how did you find out that 0xF0 is the right value for the ports...
18 Mar 2010 by bhai_kaju
I have the complete datasheet of the CHIP but I couldn't find any kind of port number assignment or HEX equivalent. So, how do I know what to write in the code, and if anyone could tell me the meaning of this code :" #byte port_b=6 // IC =16c84 " why port_b = 6, not 4 or 5 or anything...
18 Mar 2010 by bhai_kaju
Many many thanks to all of you who spared some time from you busy schedule to clarify my doubts. I am clear now and my concepts just got better upon reading the answers, hats off to you guys !! :thumbsup: :-DOne thing I found out in the memory organisation of PIC16C84 in relation to this...
20 Mar 2010 by bhai_kaju
Can anyone please tell me, how to take the output of the internal oscillator in PIC ICs to the output port so that I can view the waveform in an oscilloscope, using C language ( coz m using C compiler :-D )
21 Mar 2010 by bhai_kaju
Its an R/C oscillator and the chip is PIC16F72. I just want to check the waveform in the oscilloscope for my own experimentation. :)
1 Apr 2010 by bhai_kaju
Hello, can anyone please tell me how to program a PIC16F72 chip to output a text like "HELLO" to a LCD DISPLAY. I am using CCS compiler to compile the code.here is a sample of my code :#include#USE DELAY(Clock=4000000)#FUSES XT,NOWDT,NOPROTECT#USE...
1 Apr 2010 by bhai_kaju
Thanks for your help, but that wasn't of much help to me. Can someone please tell me how to communicate with the LCD like displaying a text. I am using the CCS Compiler and not HI-TECH C Compiler ..Thanks a lot in advance :-D
7 Feb 2013 by Borstenhorst
Hello World.Preamble:I'm a electrical engineering student and I'm going to write my thesis in a few month.My topic will be the development of a web based Microcontroller programmer.This means that students can develop their programs for the µC on any PC(with the installed SDK) and...
22 Mar 2013 by C-P-User-3
This is not my area of expertise, so if I am being misled by a syntax that I don't really understand, please ignore me.With that in mind, my question is: Where does this line take you ?bl Exponentiate
13 Apr 2020 by Cake chan
Hello everybody. I need to transmit through UART a fixed number in the data block through the command. But it's not working... What I have tried: I did this : void USART2_IRQHandler(void) { if ( USART_GetITStatus(USART2, USART_IT_RXNE) ) ...
13 Apr 2023 by Charan Kumar Oct2022
Hi All, Just wanted to know if any driver update has happened for ATSAME70Q20 after 2016? What I have tried: Tried searching in microchip website didn't find anything.
6 Jul 2023 by Charan Kumar Oct2022
ATSAME70Q20 Microcontroller using freeRTOS in Atmel Studio IDE, need to implement openssl feature. What I have tried: Have an idea that I need to include all the openssl related files into my project but stuck in the libraries needed and how to...
9 Nov 2014 by charankumar516
Absolute Beginner's Guide to Arduino
4 Sep 2017 by Chris Boss
BASIC is one of the most misunderstood programming languages! Mention BASIC to a current software developer and one quickly finds out that it is not viewed favorably by most programmers.
26 Aug 2015 by Christophe Duparquet
This article introduces a hardware abstraction tool for microcontroller programming.
3 Jul 2017 by coarist
This part of VR Karthikeyan's code: //printing the read data string str = BitConverter.ToString(e.Data); txtData.AppendText(str);//txtData is a TextBox To get the desirable output 00 00 e2 00 ......, change the above block to use string formatter "X" like this: foreach (byte i in e.Data) { ...
1 Apr 2010 by CPallini
It really depends on the hardware involved. There are a lot of different LCD displays around and you say nothing about the one you have to deal with.As a general rule, reading the documentation should help.BTW: please add further details to your original question, don't post fake answers. :)
14 Dec 2011 by CPallini
You'll probably better ask at Microchip forums. Anyway it looks like you don't even switch ON the ADC (ADCON0 bit 0: ADON).BTW: I strongly doubt 'C++' is the appropriate TAG for your question.
6 Feb 2012 by CPallini
Probably you meant: "how to measure, using a microcontroller, the AC analog input voltage and report it on a LCD display connected to the microcontroller itself?".Even posted this way the question is too broad, you have to be more specific (after all this is 'Quick' Answers) and detail your...
10 Apr 2012 by CPallini
Well you may use graphical controls for that. Of course it depends also on the information you transmit on the RS232 line. For instance, if the microcontroller sends you temperature data, then would be nice to represent that info with a nice graphical thermometer control.
19 Nov 2012 by CPallini
OK, that makes sense provided PORTD1 = 1;You should be able to find #define PORTD1 1 in one of the included header files (I suppose in avr/pinports.h).This way (as Ed already showed)PORTD |= (1
14 Sep 2013 by CPallini
On PIC side you probably have to use interrupts (or a better polling technique) to avoid loosing characters.
24 Jul 2016 by CPallini
Quote:please help me in providing a better layout of the given 8051 microcontroller and steps regarding how to code for its designing in verilog language.You know this smells of homework.Anyway please read again your question: you ask for help in 'providing better layout'. What layout? You did...
7 Jul 2018 by CPallini
Programming Microchip PIC32MM microcontrollers in C++ and assembly
6 Mar 2018 by CPallini
It depends on the communication medium between the raspberry and the microcontroller. For instance if you are using the UART (serial communication) then you have to implement a (very simple) protocol for transferring binary data.
6 Nov 2018 by CPallini
You should declare your variable extern in the header and define it in the source file (without the static keywork: static in source file provides internal linkage). See, for instance: Internal linkage with static keyword in C - Stack Overflow[^].
12 Dec 2019 by CPallini
There are many LIN transreceivers available, coming from different manufactures (Texas Instruments included). Choose the one having the best documentation (for instance application notes) and go on.
12 Jul 2021 by CPallini
Start reading the MSP430 family documentation, with particular focus on the instruction set reference and assembler manual. Once you know the details of the chip assembly then the task becomes pretty trivial.
6 Jul 2022 by CPallini
Those are linker errors, not compiler ones. You did include the proper headers but failed to link with the library. We cannot help further without more details about your scenario.
6 Jul 2023 by CPallini
Have you had a look at this: Building OpenSSL Library on ARM Cortex M4 based STM32F4 controller in an RTOS environment[^]?
23 Aug 2016 by Cryptonite
I recommend the Raspy Pi for what you're trying to do. Spoiler alert! You will have fun tinkering with this board.Best Voice Recognition Software for Raspberry Pi - DIY Hacking[^]And this one is compiled using GCC (which is a C compiler):Adding speech recognition to your embedded...
20 Oct 2010 by cs101000
I am working on a windows forms application project. I have a serious problem in communicating with my avr microcontroller: at90usb1287. I have designed a form using vc# And according to the input from the user, am going to send data to eeprom of the avr micro. I want to send data into its...
12 Jan 2015 by Dan Thyer
I built my own Internet of Things, IoT, home automation system that is controlling 30 different things with 4 different types of microcontrollers with nearly 150 commands. This article talks about IoT design patterns and the lessons learned from the design patterns that I have used.
14 May 2012 by Dave Kreskowiak
On top of what has already been said, there is no way you're going to get 1,000 frames a second updating a textbox.Your textbox should be painted on a "snapshot" schedule. Nobody can read 1,000 frames a second, so why are you trying to update at that rate? Update the textbox with the...
30 Mar 2013 by Dave Kreskowiak
First, you've got no code in here that tells the borwser to not cache the page and to refresh it every so often.Second, your code will only fill one textbox, out of TextBox1 and TextBox2, and not the other, depending on the one character position you look at in the string. Just follow the...
30 Mar 2016 by Dave Kreskowiak
Umm....no. Your micro DOES have serial ports and you'll be using serial communication to talk to it from your PC. Plug your micro into the PC over USB and go into the Device Manager in Windows. You'll find it connected under Ports using a COM port (serial).If it isn't obvious already, you'll...
23 Aug 2016 by Dave Kreskowiak
You're going to have to do you're own research on this, possible even go as far as implementing some of this in hardware yourself.Start reading these[^].
18 Mar 2010 by DaveyM69
In a PIC uC, TRISX means Tristate-Port.When a TRIS bit is set to 0 it's port pin is set to be an output, when 1 it is set to be an input.So if you have for example portB which has pins RB0:RB7 you can set the individual pins as inputs or outputs by either writing a complete value to the...
19 Mar 2010 by DaveyM69
Yes, in that case it is referring to the actual address of the port as listed in the register file map in the datasheet[^] on page 12.Normally you wouldn't define this yourself but instead include the file for the device that Microchip provide (installed along with MPLAB IDE) as everything...
6 Jul 2022 by Denesh Neupane
i want to read and write the SD card using Renesas RX62N microcontroller.i got a lots of error related to library file E0562310:Undefined external symbol "_R_tfat_f_open" E0562310:Undefined external symbol "_write" E0562310:Undefined external...
21 Jun 2016 by Dharmateja Challa
Tip on how to simulate external interrupts using Atmel Studio 7 for AVR Atmega MCUs
19 Jun 2021 by Divya B 2021
I am not getting the algorithm , flow chart for this program plss What I have tried: I have tried to understand the logic behind this topic
29 Apr 2013 by dmitryponv
Good evening,The device under test is MicroChip USB Starter Kit 2.The problem began appearing after adding some SPI initialization code to HID - Custom Demo program from 10-15-2012 microchip solutions framework.Before the code was added everything in the demo worked...
29 Apr 2013 by dmitryponv
I found a solution to the problem, I don't know if it's a bug to the Microchip USB stack But I added a line inside USBDeviceAttach(void) IEC0CLR=0x03800000; // // disable all interrupts Right before USBEnableInterrupts(); //Modifies global interrupt settings which...
24 Apr 2014 by Duaa7
i have PortB(pins RB0 through RB7)of the pic16 defined as an input with a dip switch connected to it PortD(pins RD0 through RD7)as output each connected to a LED,also each pin of PORT B corresponds to one from PORT D how can i configure that this port is the input and output in the...
2 May 2014 by Duaa7
can i write a byte to the serial port and then read the values it 'll send me ?i want to be able to write to the serial port "1"and when my pic micro controller receives this "1" it will sends me the values of portD in which i want to use laterbut i 'm not able to communicate correctly...
30 Jul 2010 by E.F. Nijboer
Honestly... OriginalGriff's answer has a good point. If you would want it all handed to you on a plate you should have got a kit. You could also change the schematic and use a LS7220 Digital Lock IC for example so no actual programming has to be done (except kinda programming in the 4 digit...
31 Jul 2010 by E.F. Nijboer
Well, thanks for the vote of 1 but I cannot help you if you have no idea of what you expect for an answer. In my opinion my answer fits exactly to your question.I am also a little shocked by your statement that as far as you understand there aren't if then statements in assembly. Well, do you...
3 Aug 2015 by EasyHero
i'm a c# programmer for close to 3 years now, i want to know if c# can be used for microcontroller programming
19 Nov 2012 by Ed Nutting
Hi there,Same as my comment but as suggested, now posted as a solution (so that this stops showing as an "Unanswered question":"PORTD OrEquals 1 left shifted the number of times of the value of PORTD1" i.e. PORTD = PORTD | (1
14 May 2012 by El_Codero
14 Dec 2011 by eng saraz
may you delete this Qu plz ??i can not delete it ,, i do not want to get more answers ,until i specify the problem and write it again in la proper way thanks in previous
20 Feb 2014 by enhzflep
In the interests of removing this question from the unanswered-questions queue, I'll repeat my comment.See here: Adafruit: Medium 16x32 RGB LED matrix panel
7 Aug 2014 by Erloic
Hi all,I'm a computer developper , i've been strugling lately for a month now, trying to install all necesary packages to get my Xtion camera to work on my Quad core(Arm) Udoo board with Ubuntu 12.04 with any given sample.Does anybody knows a good tutorial of Xtion + Udoo(ARM) on Ubuntu...
11 Apr 2012 by Espen Harlinn
Here is a nice set of controls that you could use:http://dashboarding.codeplex.com/[^]Best regardsEspen Harlinn
11 Jun 2010 by f_siddiqui
How can I take input from serial port of PC using Matlab? Can I do encoding and modulation in C? If yes then how? If I have a C program, can it be dumped by means of Keil into microcontroller 805?Thank you.
12 Aug 2016 by Florian Rappl
We utilize the Microsoft Bot Framework in conjunction with LUIS to make a Node.js powered bot available online via an ASP.NET Web API proxy. A software mock for the smart home system is supplied. Likewise a tutorial for a hardware mock using the CC3200 and / or sensor tags is provided.
7 Feb 2013 by Furno Gianluca
HiIntegration of a complete Ajax system into a little microcontroller could be really difficult, this due limited resources and processor power.In the network you can find a lot of projects of µC-based HTTP servers, let's say, the major µC manufaturers offer free demo projects for their...
7 Feb 2013 by Furno Gianluca
So you mean that the microcontroller is an "hardware extension" of your server/pc right?You want to control this hardware passing through the server from any connected client? Is this what you need?Gianluca
17 Feb 2016 by GaneshRfromSpace
I am using Kinetis Design Studio IDE and the Processor on which am programming is MKE02Z64VLD2 (Kinetis E series). The Flash memory area of this processor is 0X0000_0000 to 0X07FF_FFFF . My code is in C language. I need to put a piece of code into the flash memory space of this processor. If its...
7 Mar 2016 by GaneshRfromSpace
I know conceptually how to build a bootloader. Like I know there are 2 versions of code, one is bootloader code and application code. I should program in such a way that if I press a push button, my bootloader code in the flash should get loaded and executed. If the key is not pressed the...
21 Mar 2016 by GaneshRfromSpace
I am a beginner to Embedded Systems. I am working on Freescale Kinetis E series controllers. I use Kinetis Design Studio IDE. I wrote a project to blink the LEDS in a customized board. Now I want to make it as a S19 file which I would load to my other project using Terminal Application. Is it...
21 Mar 2016 by GaneshRfromSpace
I arrived at the solution after the help I obtained from code project answer is posted in my blog as I don"T know how to post pictures in answers in this site.Check this link [^]How do I convert an embedded C project file into a S19 file in Kinetis Design Studio ? | oscarganesh[^]
23 Mar 2016 by GaneshRfromSpace
I need to clock all port pins in my MKE02Z64VLD2 Controller. What is the Syntax to clock all port pins in a freescale's KE-02Z series controller ?What I have tried:SIM_SCGC5 |= SIM_SCGC5_PORTA_MASK | SIM_SCGC5_PORTB_MASK | SIM_SCGC5_PORTC_MASK | ...
7 Feb 2013 by Garth J Lancaster
dude - everyone has their own bent on what's 'easier' - that depends on their experience etc - so you're always going to get Quote:"With XXXXX it had been much easier/simple/effective/whatever". I think you need to 'doodle' on paper and write the functions you need - egWeb Layer ...
14 May 2010 by govi90
himy project is voice comparator.using microcontrollerin this project i take one person voice and store it.then i will store some persons voices ,and compare it next it to different persons ,the out put get this person voice is available or not ......\how to do is project pleace send me...
7 Jun 2016 by GProssliner
cobj is a preprocessor based generator for interface based polymorphism
11 Jun 2011 by grilialex
A Round-Robin OS (without pre-emptive multitasking) allowing rapid application development
28 May 2011 by grilialex
Flow and tools to convert Xilinx bitstreams to C source code for programming FPGA/CPLD
8 Nov 2011 by grilialex
Bug fixes and enhancements on AVRILOS SysTick module
9 Sep 2019 by Haily Swift
This article shows how to collect analog signal through the ADC module.
11 Jun 2010 by Henry Minute
Have you searched/asked in the MatLab forums. You are far more likely to get suitable answers there than here.
6 Jan 2011 by HimanshuJoshi
There are plenty. Search google for 8080 microprocessor programming books and you will find dozens. Take this[^] for e.g. They will even give you student discounts. Best of luck for your exams.
23 Aug 2016 by hor_313
HelloI like to build a simple system with voice recognition, when user says "GO" system runs, and when he says "OPEN" it opens something, etc.How can I do that in C with ARM microcontrollers? Is it possible to have a system with small dictionary (20 to 50 words)? Is there simple way and...
27 Sep 2021 by ilary_tecnimed
I am programming a microcontroller that obtained the string of a QRcode decodes the information without using external files to save the information. the language used is C. Thanks What I have tried: for now they are in the process of...
1 May 2015 by Intel
As one of the interfaces on mobile devices and tablets, the key function of the audio jack is to play music. However, its other usage cannot be ignored—the audio jack can also be used to transmit data.