Questions tagged as 'microcontrolador'

2
answers

Difference between local variable VS global variable

In my micro controller classes the variables are always defined globally and very rarely locally and I would like to know why, because in my head it makes a difference between being global or local. 1. 2. Both the local variable an...
asked by 28.09.2018 / 16:49
0
answers

Interrupt per timer - PIC18F4550

Hello, I am a student of the Mechatronics Technician course. My teacher passed a project to show the speed of a DC motor with reduction, in RPM, in Hyper Terminal. He said we need to use the timer interrupt, however, I did not understand how to...
asked by 05.11.2017 / 00:02
0
answers

Serial Communication Error ttyS0

I am using a TTL serial communication via the terminal with an Orange Pi One and a PIC16F628A. The program that is in the microcontroller is simple: if it receives the character '1' puts a bit in high logic level, thus turning on the LED and rec...
asked by 17.04.2017 / 21:04
0
answers

18F45K22 - external interruption

A led flashing every half a second, while the other will only be accessed when I send a low level signal to RB0 in the microcontroller, I wanted to know if something is missing, since I did exactly as they asked me and even then, only the pollin...
asked by 30.09.2016 / 03:09
0
answers

What is the maximum frequency supported by the PIC 16F877A microcontroller on the analog ports?

I am developing a project where data is sent to the analog ports of the PIC, but I would like to know how often the PIC can handle without losing data or end up having this data corrupted. PIC: 16F877A Crystal oscillator: 20 MHz     
asked by 28.10.2015 / 00:31
0
answers

problems with PIC + SD + Excel

I'm having some problems here, what's happening is the following, I have a project that I need to simulate a school call on the PIC and make it save in Excel, the project requires that I can change the students' entrance and exit times , and als...
asked by 25.11.2018 / 05:30
0
answers

USB Connection with Microcontroller in Visual Studio C #

I have a microcontroller programmed to send data in Visual Studio c # through class USB Hid Net Class . I have the license to use the class already and the application has run normally on several computers. The data is passed through the...
asked by 03.09.2018 / 13:26
1
answer

How to store a word within a vector with a size larger than the word

I declare a char SendDataCmd[256] variable that will store commands sent from the computer to the microcontroller via UART . The commands have different sizes such as RST, ADV ON e SET SNAME=BC118 among others. I have a funct...
asked by 19.07.2018 / 14:31
0
answers

dsPIC - How to receive a UART string only when calling a function?

I need to receive a string via UART on dsPIC30F4013 only when calling a function. The device connected to the RX sends information without stopping, but I need this information only a few times, so I need this information to be received only whe...
asked by 10.07.2018 / 16:13
0
answers

HardFault_Handler in STM32

Currently I am facing some problems with STM32F4, the process "hangs" and I am not able to understand at what point it "crashed". When this happened, I collected the following values for the following variables (I created the variable stepError...
asked by 28.06.2018 / 16:15